Merge pull request #1764 from antdanchenko/tests/create-jenkins-job#1702

tests/create jenkins job#1702
This commit is contained in:
antdanchenko 2017-09-06 12:39:08 +03:00 committed by GitHub
commit 8bef81c325
2 changed files with 6 additions and 7 deletions

View File

@ -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' }
} }
} }

View File

@ -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):