Add API Test setup and fix Add Member button verify (#5548)

This commit is contained in:
stonezdj(Daojun Zhang) 2018-08-08 10:40:35 +08:00 committed by Yan
parent 1f65f9304f
commit ecdfb8034f
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,8 @@
*** Keywords ***
Setup API Test
${rc} ${output}= Run And Return Rc And Output make swagger_client
Log ${output}
Should Be Equal As Integers ${rc} 0
Harbor API Test
[Arguments] ${testcase_name}
${rc} ${output}= Run And Return Rc And Output SWAGGER_CLIENT_PATH=./harborclient HARBOR_HOST=${ip} python ${testcase_name}

View File

@ -90,7 +90,7 @@ Non-admin View Member Account
Xpath Should Match X Times //clr-dg-row-master ${times}
User Can Not Add Member
Page Should Contain Element xpath=//button[@disabled='' and contains(.,'New')]
Page Should Contain Element xpath=//button[@disabled='' and contains(.,'User')]
Add Guest Member To Project
[arguments] ${member}

View File

@ -19,4 +19,5 @@ Default Tags Nightly
*** Test Cases ***
Test Suites Setup
Nightly Test Setup ${ip} ${HARBOR_PASSWORD} ${ip1}
Nightly Test Setup ${ip} ${HARBOR_PASSWORD} ${ip1}
Setup API Test