CheckProperty
- 3 years ago
In the script it seems like you use an Equals condition. I would change that condition to be contains.
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/property/creating.html Step 3 point 3 highlights the condition.
Best,
Matt - 3 years ago
Ok, So a passing validation in your case would be if the status field contains:
"New"
"Completed""In Progress"
"Closed"
So with the condition cmpEquals the checkpoint = "Completed" would fail as expected.
If we were to use cmpContains, we would simply search within that status field object for any text that matches "Completed" and the test would pass.
If contains doesnt work, I would still look at the available conditions. Though I believe the code we are looking for is:
aqObject.CheckProperty(Object, "Caption", cmpContains, " New"||"Completed"||" In progress"||" closed");
Here is the list of available conditions: https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqobject/compareproperty.html - 3 years ago
Hi try this
aqObject.CheckProperty(Object, "Caption", cmpIn, " New Completed In progress closed");