Question

Scenario testing table data

Hi there,

We would like to generate scenario tests for our data collection phase of the case. All is good till the last screen where we have some tables: Controling and Approvers.

We would like to assert for the value of different table elements and we are getting an error (see attached image). There is a Test ID generated for each property of the table in the section but the problem is that each element of the table gets the same ID when the HTML renders, thus the same properties from different rows will not have a unique Test ID.

Is there any possibility to test table elements value in scenario test?

Thanks!

Comments

Keep up to date on this post and subscribe to comments

September 18, 2019 - 5:19am

Just forgot to mention that we are using Pega 8.2.1

Pega
September 23, 2019 - 6:02am

If you haven't created data-test-id on the table, please create one. For scenario testing tool to identify the rows, data-test-id must be generated on each property and also on the table. 

As of now, scenario testing tool records only some of the actions on a Table/Properties.

1) If the property is of type text (Like the RoleName or ApprovalType in this example) a click on the Grid row will be recorded and the data is not verified.

2) If the property is of type link, a click on the link will be recorded.