Task 2: Record, Replay and Run a Test Case
IDA provides a browser plugin recorder, which allows users to record their test scenarios without coding.
About this task
In this task, you can record, replay and run a test case that you generated in the previous task.
Prerequisites
- IDA is up and running.
- BAW Process Center is up and running.
- Selenium Hub is up and running.
Step 1: Set Up Testing Environment
As a developer, you need to set up your testing environment first.
Procedure
-
Install IDA browser plugin according to Doc. Click the plugin icon on your browser extension toolbar, enter the IDA web url and click Sign In to sign into the plugin.
-
After you successfully signed into the plugin, clicking Home will open another browser tab of the IDA web homepage.
Step 2: Set up assignees for case steps
In this step, you need to assign the Workflow task users for case steps. Take the case1 of Create Position Request CSHS as an example.
Procedure
To set up assignees for case steps:
-
Click Create Position Request CSHS in left-side menu bar.
-
Click case1.
-
Click Edit button on the right top of this page.
-
Move your mouse to the first row of the case steps, right click your mouse and click Edit button to edit this case step.
-
Select celladmin in Assignee field in order to specify other Workflow users to help you complete the business process. Click Save button to finish editting this case step.
-
Click Exit Edit button on the right top of this page to finish edit the test case.
Step 3: Record a test case
In this step, you can record some case steps according to your inputs on the web UI.
Procedure
To record a test case:
-
Click Edit button on the right top of page.
-
Click Record button on the right top of page.
-
IDA Recorder window is popped up. Click Run icon to start recording.
When you fist record and play your test case you might see the below error.
Solve this issue according to Doc.
-
The step 1 is executed and once it is completed, the human service was shown.
-
Then the recorder comes to step 2: the Debug {{log}} step. Due to the debug purpose, the recording is pending at this step. You can do some actions on the human service and IDA recorder will record every UI action.
-
In Submit position request human service, change Employment type to Full-time, Department to Marketing, Location to Boston. As you can see, these three web operation steps are captured in IDA Recorder as test case steps.
-
Click button to finish the recording. You can see the recorded case step in the list table.
Step 4: Replay a test case
In this step, you can replay a test case that you record in the previous step.
Procedure
To replay a test case:
-
Click Record button on the right of case name to replay it.
-
Click Run icon on IDA recorder to start the replay.
Step 5: Run a test case
In this step, you can run a test case. The running of automated testing is asynchronous.
Procedure
To run a test case:
-
Click Selenium Hub button on the right of the Edit button.
-
When it is fininshed, go to the Test Report section to see detail report including process execution flow.
-
Check every case step result status with PASSED or FAILED in case step list table.
-
Click the Screenshots icon link to see the captured screenshot.
Step 6: Stop a test case
In this step, you can stop a test case.
Procedure
when the test case is runing, click Stop button on the right of case name.