Jenkinsfile updated for jenkins setup
This commit is contained in:
parent
de9905a14e
commit
a02ef4af0f
|
@ -1,8 +1,8 @@
|
||||||
node {sauce('6269510b-13f3-4019-b156-c2c835f3a408') {
|
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 {
|
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