Jenkinsfile updated for jenkins setup

This commit is contained in:
Anton Danchenko 2017-09-06 12:24:09 +03:00
parent de9905a14e
commit a02ef4af0f
2 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,8 @@
node {sauce('6269510b-13f3-4019-b156-c2c835f3a408') {
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 {
saucePublisher()
junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: '*.xml' }
junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/appium/tests/*.xml' }
}
}

View File

@ -40,14 +40,13 @@ class BaseElement(object):
.until(expected_conditions.presence_of_element_located((self.locator.by, self.locator.value)))
def scroll_to_element(self):
for x in range(10):
action = TouchAction(self.driver)
action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform()
for _ in range(5):
try:
self.find_element()
break
except NoSuchElementException:
pass
action = TouchAction(self.driver)
action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform()
class BaseEditBox(BaseElement):