I have a script in groovy
and I am trying to run through a loop to add additional assertions based, but I get the follow prompt:
Here is the code:
for( counter1 in 0..addlAssertCount-1) // for loop read from AdditonalAssertion field in csv
{
def containsAssertion = testRunner.testCase.testSteps["Verify_FI_Enrollment_All_Scenarios"].addAssertion("Contains")
containsAssertion.setToken(addlAssert[counter1])
containsAssertion.setName("your_required_name_contains")
}
I get "Rename Assertion" dialog and scripts halts there. How the dialog can be suppressed so script can execute without any manual intervention.
This happens when the default name "Contains" is already taken by an existing assertion.