-
Notifications
You must be signed in to change notification settings - Fork 11
Create Custom Step
cjayswal edited this page Oct 16, 2017
·
3 revisions
Consider the first test case:
SCENARIO: SampleTest
META-DATA: {"description":"Sample Test Scenario","groups":["SMOKE"]}
Given get '/'
When sendkeys 'Git reporsitory QAF' into 'txt.searchbox'
And click on 'btn.search'
Then verify link with partial text 'qaf' is present
END
We can create reusable steps for search functionality as below:
STEP-DEF: search for {term}
sendkeys '${term}' into 'txt.searchbox'
click on 'btn.search'
END
SCENARIO: SampleTest
META-DATA: {"description":"Sample Test Scenario","groups":["SMOKE"]}
Given get '/'
When search for 'Git reporsitory QAF'
Then verify link with partial text 'qaf' is present
END