Merge pull request #1764 from antdanchenko/tests/create-jenkins-job#1702
tests/create jenkins job#1702
This commit is contained in:
commit
8bef81c325
|
@ -1,8 +1,8 @@
|
||||||
node {sauce('6269510b-13f3-4019-b156-c2c835f3a408') {
|
node {sauce('b9aded57-5cc1-4f6b-b5ea-42d989987852') {
|
||||||
try {sh '/usr/local/bin/python3 -m pytest -m sanity -v --dist=loadscope -n3 --build ${JOB_NAME}__${BUILD_NUMBER}'
|
try {sh 'cd test/appium/tests && /usr/local/bin/python3 -m pytest -m sanity --build ${JOB_NAME}__${BUILD_NUMBER} -v --dist=loadscope -n3'
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
saucePublisher()
|
saucePublisher()
|
||||||
junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: '*.xml' }
|
junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/appium/tests/*.xml' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,14 +40,13 @@ class BaseElement(object):
|
||||||
.until(expected_conditions.presence_of_element_located((self.locator.by, self.locator.value)))
|
.until(expected_conditions.presence_of_element_located((self.locator.by, self.locator.value)))
|
||||||
|
|
||||||
def scroll_to_element(self):
|
def scroll_to_element(self):
|
||||||
for x in range(10):
|
for _ in range(5):
|
||||||
action = TouchAction(self.driver)
|
|
||||||
action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform()
|
|
||||||
try:
|
try:
|
||||||
self.find_element()
|
self.find_element()
|
||||||
break
|
break
|
||||||
except NoSuchElementException:
|
except NoSuchElementException:
|
||||||
pass
|
action = TouchAction(self.driver)
|
||||||
|
action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform()
|
||||||
|
|
||||||
|
|
||||||
class BaseEditBox(BaseElement):
|
class BaseEditBox(BaseElement):
|
||||||
|
|
Loading…
Reference in New Issue