Create your first test case
The following video will guide you through the creation of your first test-case in msg.ZenTestAI.
Video will follow soon.
Details
Transcript
In this video I will guide you through the creation of your first test-case in msg.ZenTestAI. Our goal is to run a test case against wikipedia checking that the Hello World program was developed in the 1970s.Let's start with a minimal introduction to the navigation of msg.ZenTestAI. On the left side of the screen you can find the sidebar with the main navigation points. You can always hide the sidebar using the "Hide sidebar" navigation point.
In the middle of the screen you can always find the content area corresponding to the selected navigation point. In this case we are seeing an empty list of test cases, as we have not created any test case yet.
Before creating our first test case we first have to create a user. The user / role is describing the user which is used during test-case execution in the browser window. Typically, a user would be identified by certain roles and authorizations. Let's navigate here first by clicking the "Users & Roles" navigation point in the sidebar.
To create a new user, let's press the "Add" button on the top right of the screen. First we have to define a title of the user. You will use this title to identify the user in other areas of the application. As we are testing a public internet webpage we will name the user "Public User". The other fields you are seeing here are optional or only required if you need to provide secret information like passwords or tokens to authenticate the user. Next to authentication we could also define the browser, language and screen resolution the test user should use. For now we will leave these fields as per the default.
We have provided all information required. Let's press the "Save" button to create the user and afterwards navigate back to the test cases by clicking the "Test Cases" navigation point in the sidebar.
Here we finally want to create our new test case. Let's press the "Add new test" button on the top right of the screen.
The only real mandatory fields are "Title", which is a freestyle description of our test case, the URL the test should use at startup and the "User / role" field, which we have just created. Let's write "Sample Test" into the title and select our user. Now also lets define the URL as https://en.wikipedia.org/wiki/Main_Page.
In the "Steps" section we can define the steps of our test case. Let's press the "Add Step" button to add a new step.
The first step we want to define it to use the search functionality of wikipedia to search for "Hello World program". So let's write: "Type 'Hello World program' into the search field of wikipedia and press enter afterwards" into the step field.
Afterwards we are expecting to see the article. Let's add a new step by pressing the "Add Step" button again.
As said before we want to check that the Hello World program was developed in the 1970s. So let's write: "Check that the Hello World program was developed in the 1970s" into the step field.
We have defined all steps of our test case. Let's press the "Save" button to save the test case and finally run the test case by pressing the "Execute Test" button.
We are now inside the Test execution view. The first time we are executing our new test case msg.ZenTestAI will have to think about the steps we have defined. This can take a few seconds. After the test case has been prepared we can see the test case executing and the browser window opening. The test case is now running and we can see the steps being executed in the browser window. As soon as a step is executed we can see both the result and the response by the AI agents.
As we can see the second step was now executed and the AI agent has found the information that the Hello World program was developed in the 1970s. The test case is now finished and we can see a video of the successfully test execution.
Congratulations! You have successfully created and executed your first test case in msg.ZenTestAI.