How do the element pages work in Test Studio?

4 posts, 0 answers
  1. Floyd
    Floyd avatar
    2 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    I have multiple tests that are utilizing the same Silverlight page in Test Studio. Some of these tests, while utilizing the same SL app page, have their elements saved on different pages in Test Studio (e.g. Page0, Page00, Page1). This seems very awkward since multiple tests are testing the same page of the SL app, yet they have different 'test pages' for their elements. Is there any way to make it so that all my tests reference the same test page? (e.g. I can add elements to the test page all during one test's recording, then I can reference those different elements on different tests, but on the same test page) This would be very handy for copy/pasting for tests that are very similar.
  2. Byron
    Admin
    Byron avatar
    184 posts

    Posted 12 Sep 2012 Link to this post

    Hi Floyd,

    Due to variations in URL, Test Studio may create multiple pages nodes for one actual page of your application. To easier maintain your test, merge these page nodes. You can then merge the child frames and elements.

    Kind regards,
    Byron
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
  3. Floyd
    Floyd avatar
    2 posts
    Member since:
    Sep 2012

    Posted 12 Sep 2012 Link to this post

    OK I did this to merge two pages. Now, any test that's referencing the page that disappeared in the merge is failing in compilation because that page no longer exists. Is there a way to do a global text change in Telerik? I had thought that the tests referencing the page that went away in the merge would be updated (similar to when you change the name of a test and any other test using it as a step will get updated). What would be your recommended solution to this?

    Thanks in advance.
  4. Byron
    Admin
    Byron avatar
    184 posts

    Posted 17 Sep 2012 Link to this post

    Hello Floyd,

    I'm sorry you're running into hurdles merging your page nodes. If your tests are failing in compilation, it sounds like you have references to the page nodes in your coded steps. Merging page or element nodes in Elements Explorer does update the non-coded steps that use those elements. If your coded steps refer to an element whose element name has changed, you may need to update your coded steps. The built-in code editor for Test Studio does not implement find and replace; if you have the Visual Studio 2010 plug-in installed, you can open your tests in VS2010 and use its code editing features. Please let us know if we can assist you further.

    All the best,
    Byron
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
Back to Top