(1) test_page_position.py: reduce the number of click_by_random. (2) Jenkinsfile: trigger build after each push.

pull/1/head
Hui Lan 2021-07-14 21:22:56 +08:00
parent cfb8dc6c78
commit b13df92bf7
2 changed files with 6 additions and 7 deletions

4
Jenkinsfile vendored
View File

@ -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 {

View File

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