Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleArguments
The bold words in the Arguments section, such as locator, text and key, are not to be written in Alithya GoTest. They are there to provide information about the name of the arguments displayed in grey in the Alithya GoTest editing grid cells.

 

Step 

Keyword 

Arguments 

 

1 

Put the mouse in the search field. 

Enter Alithya GoTest. 

Input Text(Selenium Library) 

locator://input[@name='q']  

text:Alithya GoTest 

2 

Press Enter. 

Press Key (Selenium Library) 

locator://input[@name='q'] (xpath for the input field) 

key: \\13 ou ENTER (for enter key) 

3 

Check the result page. 

Element Should Contain (Selenium Library) 

locator: id=rcnt 

expected:Alithya GoTest 

4 

Take a screenshot of the result. 

Capture Page Screenshot (Selenium Library) 

filename: MySearchCapture.png 

 

5 

Add a comment in the logs of the result file: My first search. 

Log (Selenium Library) 

message: ‘I did my first script!’ 

 


8. Create a first test step of the "TearDown" type and add the keywords

...


Once you have finished writing the script, you can run your script in the scenario by clicking on the Start button.
Go to the execution page to view the status of your script. Thanks to the "status log" functionality, you can follow the evolution of your script during its execution.
Once the script is finished, you can view the logs. The status of the execution can be red if the script or test failed, or green if everything went well.