rafal_wojciecho
13 years agoNew Contributor
Updating XMLCheckpoints at runtime.
In one of our projects we have hundreds of XMLCheckpoints, when performing tests on different environments some of values in those XMLs will differ.
We tried modifying them with external application. But when it is done at runtime there is no way to reload them other then clicking "Yes" when a popup with warning that file has been modified by external application, and you can never tell when will it "popup".
We tried it also with something like this:
var checkpoint = XML["checkpoint name"]
var node = document["selectNodes"]("//node_to_change")
node["Item"](0).text = "test2";
document["Save"](xml_path);
but the same problem occures.
So the question is: How to reload XMLCheckpoints at runtime? Or is there a way to restart TestComplete from script without restarting whole machine?
Best regards
We tried modifying them with external application. But when it is done at runtime there is no way to reload them other then clicking "Yes" when a popup with warning that file has been modified by external application, and you can never tell when will it "popup".
We tried it also with something like this:
var checkpoint = XML["checkpoint name"]
var node = document["selectNodes"]("//node_to_change")
node["Item"](0).text = "test2";
document["Save"](xml_path);
but the same problem occures.
So the question is: How to reload XMLCheckpoints at runtime? Or is there a way to restart TestComplete from script without restarting whole machine?
Best regards