Anton is the TestFirst AI Assistant. You can use Anton's help to automate web-based tests.
Please note that the Anton is only trained to help you write browser-based test cases. The API and console tests you will have to write from scratch. |
Anton's section is located on the left of the TF Automate page, under the Test Case Library section of the page. You can resize Anton's section for better visibility if there is a lot of text.
In order for Anton to generate a usable test case, start your prompt with Automate a test case:
and follow it with the description of the steps. It is good practice to encase the page elements in double quotes to clearly separate them from the plain text sentence. For instance:
Automate a test case: visit https://www.testfirst.com, click "Features",
verify that "LOG IN" and "START NOW" are displayed.
Send the prompt to Anton. In response, it will generate a test case. Simply copy it and paste in the text pane of TF Automate, and proceed as normal by running the test, saving, and publishing it as described here.
Anton's response can vary in wording, but it will generate a test case according to the TestFirst Gherkin Spec. |
Handling Bad Output from the Anton
While Anton can be great at helping you automate your tests, it is not perfect and sometimes will generate a test case that does not comply with the TestFirst Gherkin Specification, or is not written using Gherkin syntax at all. In such cases, you will need to assess the issue with the output and act accordingly.
Anton Generated a Test Case with Syntax Errors
Paste Anton's output into the text pane of TF Automate. A syntax check will be run and any of the syntax errors will be highlighted. In order to correct them, simply hover on the cross icon on the left in the line where there is a syntax error. A tooltip with the error description and ways to fix it will be displayed. Simply remove the part of the sentence with the syntax error and finish the sentence using the autocompleter.
Anton Generated a Test Case not using Gherkin Syntax
There are several ways to handle this:
- Ask the Anton to try again and use Gherkin spec
- Clarify your input and/or shorten it if it is a long sentence that could confuse the AI.
- Reload the page. This resets the conversation and allows you to have a fresh conversation
Anton Generated a Test Case with Extra Steps
If you ask Anton to only generate the actions, Anton might try to guess what needs to be verified and insert it into the test case. If that happens, simply remove the part of the scenario you do not need and proceed as normal.
Comments
0 comments
Please sign in to leave a comment.