-
Notifications
You must be signed in to change notification settings - Fork 0
Get Wiki Page Time
gcvfi edited this page Mar 10, 2020
·
3 revisions
Back to Run loop | AIQ Commands | Home
Note: Draft content, work in progress, not yet reviewed or verified.
This example demonstrate how to pass input and output variable between a Flow and the Test Case.
This is an example showing how to pass arguments between a Test Case and Flow.
The test case set a city name in variable ${var_city}.
The flow Get_Wiki_Page_Time use that variable to search Google and go to the cites Wikipedia page.
And extract last update information and store in variable ${var_page_update}.
After execution of the flow, test case display content variable ${var_page_update} .
Here variable ${var_city} act like an input variable to the flow.
And variable ${var_page_update} act like output variable from the flow.
| Step | Data |
|---|---|
| _xl{${var_city} & " Wiki"} as var_city_wiki | |
| _xl{${var_city} & " - Wikipedia"} as var_city_wiki_link | |
| open website | http://google.com |
| enter text | ${var_city_wiki} |
| hit enter | |
| wait 5 sec | |
| click on ${var_city_wiki_link} | |
| Wait 2 sec | |
| Save _css{"#footer-info-lastmod"} as var_page_update | |
| open website | http://google.com |
| Enter text | ${var_page_update} |
| Step | Data |
|---|---|
| save it as var_city | London |
| Run ${Get_Wiki_Page_Time} | |
| open website | http://google.com |
| Enter text | ${var_page_update} |
| wait 5 sec |