From 24ffed751fea999417b6f2128b51bc35b52ff2ed Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 9 Jun 2021 08:33:22 +0800 Subject: [PATCH 1/3] Jenkinsfile: correct command line argument. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c213a3f..f3151d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { sh 'sudo docker run -d -p 4444:4444 selenium/standalone-chrome' sh 'pip3 install pytest -U -q' sh 'pip3 install selenium -U -q' - sh 'pytest -v -s –html=EnglishPalTestReport.html ./app/test' + sh 'pytest -v -s -–html=EnglishPalTestReport.html ./app/test' } } stage('DeployIt') { From 3ef96ae447fc31655533ccf993b708f109626532 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 9 Jun 2021 08:43:50 +0800 Subject: [PATCH 2/3] Jenkinsfile: correct command line argument 2. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f3151d7..434c00f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { sh 'sudo docker run -d -p 4444:4444 selenium/standalone-chrome' sh 'pip3 install pytest -U -q' sh 'pip3 install selenium -U -q' - sh 'pytest -v -s -–html=EnglishPalTestReport.html ./app/test' + sh 'pytest -v -s --html=EnglishPalTestReport.html ./app/test' } } stage('DeployIt') { From 90ab0be3d6582f369fe4e747dcc323ecd8299887 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 9 Jun 2021 09:17:19 +0800 Subject: [PATCH 3/3] app/test/test_next_essay.py: click Next 5 times. --- app/test/test_next_essay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_next_essay.py b/app/test/test_next_essay.py index 75a06d4..98d748c 100644 --- a/app/test/test_next_essay.py +++ b/app/test/test_next_essay.py @@ -42,7 +42,7 @@ def test_next(): # click Next diff = 0 - for i in range(3): + for i in range(5): elem = driver.find_element_by_link_text('下一篇') elem.click() driver.save_screenshot('./app/test/test_next_essay_pic1.png')