This is a migrated thread and some comments may be shown as answers.

How do the element pages work in Test Studio?

3 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Floyd
Top achievements
Rank 1
Floyd asked on 11 Sep 2012, 06:18 AM
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.

3 Answers, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 12 Sep 2012, 09:36 PM
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
0
Floyd
Top achievements
Rank 1
answered on 12 Sep 2012, 10:43 PM
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.
0
Byron
Telerik team
answered on 17 Sep 2012, 08:06 PM
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
Tags
General Discussions
Asked by
Floyd
Top achievements
Rank 1
Answers by
Byron
Telerik team
Floyd
Top achievements
Rank 1
Share this question
or