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

Lanhui-add-articles
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 {
agent any
triggers {
pollSCM('') // Enabling being build on Push
}
stages {
stage('MakeDatabasefile') {
steps {

View File

@ -48,15 +48,10 @@ def test_page_position():
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('熟悉')
finally: