4. Features¶
Once the user selects the environment, it will be redirected to the homepage as shown below:
The search feature helps the user to find previously created Test cases, Test suites, and Reports.
Users can narrow their search by entering a keyword into the keyword search textbox.
It is recommended to populate this field with relevant information so that locating the test case/test suite through search will be quicker and easier.
It is also important to use relevant naming for your test suites and test cases to make keyword search better.
Users can also filter the search by setting the time range by giving From and To date.
Users can also select a type from the Select drop-down field and click the search icon to display the result as shown below:
The homepage has the following sessions:
4.1. Create Test Suite¶
The above shown icon is to create test suites by providing name and selecting anyone among API, Database( supports databases like MariaDB, MySQL, Oracle, MongoDB), Log, Mobile test suites.
4.2. Test Suite¶
Click the Test Suite icon to view the test cases, create a new test suite, or access the already created test suite. It will also display the total number of test suites and test cases. Click the plus icon|image4a| in the menu to create the test suite as shown below:
It is important to give a descriptive name for your test suite. A descriptive name ensures easy access to your test suite through a keyword search or random browsing. Any user can locate your Test Suite with related phrases through search if the name is self-explanatory and contains common keywords. If the Test Suite name is not enriched with relevant keywords, locating the test suite becomes harder.
4.3. Configure¶
Click the Configure tile navigates to Configure page as shown below:
- Configure Action
2. Custom Action Custom Action is built to reuse the test cases when required. Here, users can customise the Automaton with custom actions that suit their needs. Thus, it saves time. Steps to Create and use Custom Action
- Create a Custom Action
Custom action Name: Specifies the name of Custom Action. Ensure that you are using relevant keywords. .. Note:: Custom Action Name is a mandatory field and should not exceed fifty characters. ..
Custom action Description: It is an optional field, but it is recommended to populate this field with relevant information and supporting keywords so that locating your test suite through a search will be quicker.
Custom Group Name: Specify which group Custom Action relay on.
Click the Submit button, the page will be redirected to the Custom Action page as shown below:
- Both elements in the above figure are called “custom action nodes,” which help a user connect web, process, and decision elements. You can insert ca-start by hovering over the custom action node.
- Use Custom Action in Test Case
If a user needs a custom action in a test case, select the process element and add ‘Custom’ as Action Type and select the corresponding custom action created in Custom Group Name as shown below:
Once the Action Type and Custom Group Name are selected, then all the created custom actions will display in the Action field. Users can select the required custom action. Click on the Open Custom Action to view the custom action flow as shown below:
- Here users need to update the custom action like Step ID accordingly.
- Once the user is completed with test case creation, click Save > Run and a report will be generated.
Similarly, users can also use database custom action in the test case steps are as follows:
- Create a database Custom Action. For instance, here we using a Custom Action named db custom action. This custom action is intended to query a table and fetch the last_name from the record and map it.
- Using database Custom Action in Test Case
- Create a database test case, db new from Test suite.
- On the process element adds ‘Custom’ as Action Type and select the corresponding Custom Group Name as shown below:
- Once the Action Type and Custom Group Name are selected, then corresponding custom actions will display in the Action field. Users can select the required database custom action. Click on the Open Custom Action to view the custom action flow as shown below:
- Here users need to update the custom action like Step ID accordingly.
- Once the user is completed with test case creation click Save > Run and a report will be generated.
- Edit the Custom Actions
To edit a custom action, navigate to Configure> Custom Actions List. Here users can choose a custom action and edit it. But there can be a probability that edited custom action is used in other test cases and those test cases may be used in different test suites. To tackle these dependencies with the test cases and test suites Automaton will give the flexibility to choose the test suite and test case in the Update Custom Action dialog.
- Select any custom action.
- Click on any custom action to display the corresponding custom action.
- Click the edit icon
to edit a custom action.
- Click the save icon
an Update Custom Action dialog will be displayed as shown below:
- Once the user clicks the Yes button in the above step the Update Custom Action dialog will appear with all the test cases along with the corresponding test suite as shown below:
Delete Custom Action
Click the delete icon on the Custom Action page to delete a custom action. The Delete Custom Action dialog will be displayed click the Delete
button to soft delete the custom action and users can delete the same permanently or restore from Trash.
Permanent Delete Custom Action
Click the Permanent Delete button to delete permanently or click Cancel to exit. The items clicked by permanent delete cannot be restored from the trash page.
- Mail Configuration
Mail Configuration is used to send emails from the mail client to a mail server (outgoing mails) and to send mails from the sending mail server to a receiving mail server.
On configuring this, it would send an email after running an execution plan.
The above shown icon is to create test suites by providing name and selecting anyone among API, Database, Log, Mobile test suites.
- Selenium Grid
The steps for running Hub and register Node are as follows:
- Click the Start button to start the Hub and a success message will be displayed as shown below:
- Click the Node button to start the nodes as shown below:
Here users must provide the details like:
- Enter valid port number for node: User must provide a free port number.
- Select browser: User need to select a browser from the available option.
- Enter Unique application name: User must provide an application name and this name have to same name as launch chrome instance.
- Enter hug IP address: The IP of the hub.
- Enter your IP address: The IP address of the machine.
Click the Start button to start the node as shown below:
4.4. Reports¶
The Report icon allows to the users to access the all the reports. It will also display the total number of reports. On clicking the above icon, the Report page will be displayed as shown below:
On the above page, users can view the overall statistics of the executed Execution Plan and Test Suite as a pie chart. Statistics include Total Executions, Success, Failure, Warning as a number or percentage. Users can switch between numbers or percentages using the toggle button.
- To delete multiple Execution plan/Test Suite check the checkbox prefixed to the corresponding Execution plan/Test Suite, the Delete button will be enabled and click to Delete.
- To export multiple Execution plan/Test Suite check the checkbox prefixed to the corresponding Execution plan/Test Suite, the Export button will be enabled and click to Export.
- Search results can be filtered based on From and To date and click Search.
- All Report Type: Click the dropdown list to select any one of the options: All Report Type/Execution Plan/Test Suite. Select any and click Search the corresponding results will be displayed as shown below:
- All result Type: Click the dropdown list to select any one of the options: Success/Failure/Warning. Select any and click Search the corresponding results will display as shown below:
- Name Search: Allows users to search by giving a phrase or a key value. It is recommended to populate this field with relevant information so that locating through search will be quicker.
Name & Report Type: It displays the name of the Execution plan/Test Suite. Below the name, it will display the type(Execution plan
/Test Suite
) with respective color codes.
Users can click on the name to view the detailed report as shown below:
Here users can see:
- Execution Date: It will list all the executions on the selected
Execution plan/Test Suite along with the date and time. Users can
click on any dates to see the detailed report on the right panel. It will
display Name & Type, Status, Number of Test cases executed, Success,
Failure, Warning. For more details, users can click on the particular
Execution plan/Test Suites. It will display all elements with status
(success, fail, or warning) with color code. The Red color
element shows a failed node and the green color denotes success
node and the Orange color node denotes warning.
- Click the
icon to delete the report.
- Click the
icon to export the report.
- Click the
icon to close the page.
- Click the
- Execution Date: It will list all the executions on the selected
Execution plan/Test Suite along with the date and time. Users can
click on any dates to see the detailed report on the right panel. It will
display Name & Type, Status, Number of Test cases executed, Success,
Failure, Warning. For more details, users can click on the particular
Execution plan/Test Suites. It will display all elements with status
(success, fail, or warning) with color code. The Red color
element shows a failed node and the green color denotes success
node and the Orange color node denotes warning.
Recent Executions (No. of Test Cases): It displays the separate count of Success, Failure, Warning if an Execution plan/Test Suite had recently been executed.
Overall Executions (No. of Runs): It displays the total number of executions so far on Execution Plan/Test Suites.
Export: Click the
icon to export the corresponding report in the Report List.
Delete: Click the
icon to delete the corresponding report in the Report list.
4.5. Execution Plan¶
You can access execution plans by tapping above icon. It will also display the total number of execution plans. Execution plans can be viewed or modified as per your requirements.
The Execution plans can be created for already existing test suites and test cases. Here is how.
Step 1: Click on Test Suite tile on the home page. On clicking it you will navigate to Test Suite Page.
Step 2: Select the Test Suite for which you want to create an Execution plan.
On clicking the Create Execution Plan user will navigate to Create Execution Plan page.
Execution Plan Name: A name for the execution plan. It is a mandatory field.
Execution Plan Description: A description about execution plan. It is an optional field.
Execution Order: Here it will display the selected test suite/test case for creating an execution plan. User can rearrange the order if required.
Run: To run the execution plan.
Save: To save the execution plan. Once the user saves the execution plan it will display in the Execution plan list page.
Once the user creates an execution plan it will display on the Execution Plan page as shown below:
Click on any Execution Plan name and click the edit icon
to edit the execution plan name as shown below:
Click the Save icon
to save the details.
Scheduler:
The execution plan allows the user to schedule a task to run in a user-defined time or date. When it hits the time or date provided by user, the task will execute, and report will be generated. The user must follow the below steps to schedule an execution plan:
- Click the scheduler icon
as shown below:
- Schedule the required date by clicking the calendar icon
the Execution Plan Scheduler dialog will be displayed where user can schedule date as shown below:
- Click the scheduler icon
in the Execution Plan Scheduler dialog to set the required time as shown below:
- Once the user provided the time and date a success message will be displayed as shown below:
Note
The View Schedules icon will be enabled once the user schedules an execution plan.
To view the scheduled task, click on the corresponding scheduler icon
in the Scheduler Status field. The Active Schedulers dialog will be displayed with the scheduled date and time as shown below:
On the above dialog users can click on the edit icon
an Update Execution Plan Scheduler dialog will be displayed where user can reschedule the date and time and click the Update the Scheduler button to save the changes as shown below:
Click the delete icon
to delete the scheduled time and date as shown below:
Push Notification
Once the user sets the scheduler, a notification or reminder will be displayed before it starts the execution and ends execution. To notify this a bubble with the number of notifications will display in the notification icon as shown below:
Click on the notification icon
to display the notification as shown below:
If the users schedule multiple executions, the notification for each execution will be displayed in the notification icon. Click on the notification icon to see the details as shown below:
Click the Clear button to clear the notifications as shown below:
Automaton also supports the execution plan to run parallelly. The steps for parallel execution is as shown below:
- Select anyone of the required execution plan and set the time.
- Click the scheduler icon, the Execution Plan Scheduler dialog will be displayed as shown below:
The user must provide the date and time and click the Run with Scheduler button.
- Select the next execution plan and set the same time as the first one and click the Run with Scheduler button.
Run
Note
Users can select the order of execution by selecting the checkbox and the test case will be executed in the same order in which it is selected.
Here, users have selected the execution order of the test cases as 128,130,129 as shown below:
When the user runs the execution plan it will execute in the selected execution order and users can visualize on the report page as shown below:
User can Import, Export and Run execution plan if required.
The Execution plan helps to execute test suites or test cases in order. The Execution plan list page has two features like Mail Notifications and Postman Collection.
Mail Notification
This feature helps the user to get a mail notification with the execution plan and its report page. To perform the mail notification first user must configure their mail on the Configure page. Click the Configure from the home page it will navigate to the configure page as shown below:
Click the MailConfiguration button, Configure SMTP dialog will be displayed as shown below:
Here the user must provide all the details and click the Save button. This page also offers the flexibility to edit the details by clicking the Edit button.
Note
To perform this users must have access to perform the mail configuration.
Once the above configurations are done, click the Execution from the home page it will navigate to the Execution plan page. Click the mail icon
the Send mail notification dialog will be displayed as shown below:
On the above dialog, users must check the Send mail notification to receive the notifications and enter the mail address in the To to whom the execution report page must be sent and click Save and Close. Once the above configuration is done, the address mentioned in the ‘To’ field will be receiving the mail notification of the report page in the execution plan.
Postman Collection
Automaton provides a feature of exporting the json file which contains execution plan details and can import it in postman. This will be saved as a collection so that users can execute this API for further details. Postman collections contain groups of saved requests along with the header and corresponding parameters.
Click the postman collection icon
, a json file will be created and downloaded automatically, which contains all execution plan details as shown below:
The downloaded json file contains the method like, PUT, POST, DELETE. It also contains headers that have a key and its corresponding values, HTTP request, URL along with parameters. If the method is POST or PUT, the request body will also be present in the file.
This json can be imported in postman using File>Import. It will save as a collection in postman which contains the number of saved requests.
The success response after clicking the Send button is as shown below:
Delete Execution Plan
Click the delete icon on the Execution Plan page to delete an execution plan.
The Delete Execution Plan dialog will be displayed. Click the Delete button to soft delete the execution plan or restore from Trash.
Permanent Delete Execution Plan
Click the Permanent Delete button to delete permanently or click Cancel to exit. The items clicked by permanent delete cannot be restored from the trash page.
4.6. Help¶
Click the Help tile will navigate to documentation where the user can learn all the features in detail and understand how to do.
4.7. Trash¶
Click the Trash tile will navigate to the Trash page where the user can view all the soft-deleted Test Suite, Test Case, Execution Plan, Custom Action in the respective tile as shown below:
For example, If the user deletes a test suite it will display in TestSuite column as shown below:
Here users can select delete or restore multiple testsuites by selecting the appropriate checkbox. Click the Delete button to permanently delete the test suite and click the Restore button to restore the testsuite. Steps for restoring the test suites are:
- Select the test suite to be restored.
- Click the restore button and a success message will be displayed.
- It will be added on the testsuite page as shown below: