Statistics at a higher summary level for grouping steps
Problem statement -
Consider a single test in AIQ.
We have a *group* of steps that we would like to treat as a single entity in reports. I’ll use login as a simple example for this conversation.
Instead of getting performance information for each individual step like this in a report:
//start login
Enter Username- 1ms
Enter a password- 1ms
Click submit -500 ms
//create new residence
More steps for more testing that a residence was created
//delete residence
More steps for more testing that a residence was deleted
We would like to generate a more “management friendly” report that has numbers that are grouped and summed by section/entity.
Login – 502ms
Create residence – 1203ms
Delete residence – 3212ms
Most readers don’t view actions as mouse clicks and field interactions. They think in notions like the second report.
Resolution:
The steps can be grouped by making use of the below
com.appvance.enterprise.tool.APCStepListener.startSummaryStep("Start Login")
com.appvance.enterprise.tool.APCStepListener.endSummaryStep()
Below is the code snippet from test designer IDE
Equivalent JS script:
com.appvance.enterprise.tool.APCStepListener.startSummaryStep("Login");
navigateTo("https://demosite.appvance.com/");
click(link("Login"));
setValue(emailbox("spree_user[email]"),"user@company.com");
setValue(password("spree_user[password]"),"Password");
click(submit("commit"));
com.appvance.enterprise.tool.APCStepListener.endSummaryStep();
com.appvance.enterprise.tool.APCStepListener.startSummaryStep("Shop by Categories");
navigateTo("https://demosite.appvance.com/");
click(link("Bags"));
click(link("Mugs"));
click(link("Clothing"));
com.appvance.enterprise.tool.APCStepListener.endSummaryStep();
com.appvance.enterprise.tool.APCStepListener.startSummaryStep("Shop by Brands");
click(link("Ruby"));
click(link("Apache[1]"));
click(link("Spree"));
click(link("Rails"));
com.appvance.enterprise.tool.APCStepListener.endSummaryStep();
Reports can be filtered this way to get to those steps that are required.
Last updated: July 28, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai