(1) test_page_position.py: reduce the number of click_by_random. (2) Jenkinsfile: trigger build after each push.
parent
cfb8dc6c78
commit
b13df92bf7
|
@ -1,6 +1,10 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
triggers {
|
||||||
|
pollSCM('') // Enabling being build on Push
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('MakeDatabasefile') {
|
stage('MakeDatabasefile') {
|
||||||
steps {
|
steps {
|
||||||
|
|
|
@ -48,15 +48,10 @@ def test_page_position():
|
||||||
driver.find_element_by_xpath('//form[1]/p[3]/input[1]').click() # 找到登录按钮
|
driver.find_element_by_xpath('//form[1]/p[3]/input[1]').click() # 找到登录按钮
|
||||||
|
|
||||||
|
|
||||||
# 这里随机测试三个单词,点击不熟悉
|
# 这里随机测试一个单词,点击不熟悉
|
||||||
click_by_random('不熟悉')
|
click_by_random('不熟悉')
|
||||||
click_by_random('不熟悉')
|
|
||||||
click_by_random('不熟悉')
|
|
||||||
|
|
||||||
|
|
||||||
# 这里随机测试三个单词,点击熟悉
|
# 这里随机测试一个单词,点击熟悉
|
||||||
click_by_random('熟悉')
|
|
||||||
click_by_random('熟悉')
|
|
||||||
click_by_random('熟悉')
|
click_by_random('熟悉')
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue