Forum Discussion

artur0409's avatar
artur0409
Occasional Contributor
13 years ago

Updating XML Checkpoints from scripts

At address http://support.smartbear.com/viewarticle/29981/  there is arcticle about this problem

There is also chapter inside  "Updating Checkpoints at Runtime" saying that you can update XML checkpoint by loading content of file stored on disk , but first you have to
  • Enable the Update XML data option in the Stores settings.

  • Two questions:

    1) Can I set this option directly from scripts and go back when XML checkpoint is updated ( runtime) ?

    2) Is it possible to modify only part of XML checkpoint in runtime  - e.g. specific element's value  - can you give any example of such code in C# script?



    Best Regards

    Artur

    • irina_lukina's avatar
      irina_lukina
      Super Contributor

      Hi Artur,


      Can I set this option directly from scripts and go back when XML checkpoint is updated ( runtime) ?


      Currently, TestComplete doesn't allow doing it. We have such a suggestion in our DB and your request has increased its rating. Thanks for your feedback.


      Is it possible to modify only part of XML checkpoint in runtime  - e.g. specific element's value


      The latest version of TestComplete doesn't provide you with such functionality. I've registered your feature request in our DB. Also, can you please explain me why you need it? Thanks :)

    • artur0409's avatar
      artur0409
      Occasional Contributor
      Here is some background



      The same test is executed against six environments  - one by one.

      There is a part in the XML Checkpoint which is dependant on environment (few elements from pretty complex XML)  and in current situation we cannot override this value in some nice and easy way.



      Since there is also not possible to set update mode in the runtime - full verification cannot done and we have to resign from some our automation goals



      I guess we can access directly xml file from XML Checkpoint folder - but that's dirty way
    • irina_lukina's avatar
      irina_lukina
      Super Contributor

      Hi Artur,


      Thanks for the clarification. As for now, I'm afraid that there is no other approach than the one you use.


      Thank you for the feedback.