I upgrade Test Studio to 2011.2.1413.0 and found that one of Elements in Element Explorer disappeared.
It presents in Pages.cs
but there is no such element in Element Explorer
http://screencast.com/t/BbKtOrF049f
How could I fix it?
It presents in Pages.cs
public
ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor Link_Contacts
{
get
{
return
Get<ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor>(
"class=ms-crm-NavBar-Subarea-Link"
,
"title=Contacts"
);
}
}
http://screencast.com/t/BbKtOrF049f
How could I fix it?
5 Answers, 1 is accepted
0
Accepted
Hi Alexander,
It seems that this element got merged under different page in the new version of Test Studio. Here's the steps you need to take to resolve this:
1) Do a search for the problem element in Elements Explorer as demonstrated in this video. Specifically search for "Link_Contacts". It should come up but under a different page.
2) Now that you have the new page it is merged under, replace the name of the old page with whatever new page name it appears under in your search.
If you are still unable to get this to work, please go ahead and send us the back up copy of the project(into a .zip file) so we can reproduce and resolve this issue. The back up copy is located in "ProjectFolder/Backup"(see this video). If you feel that information is sensitive, attach the backup .zip file to a support ticket, which is confidential unlike this forum.
Kind regards,
Plamen
the Telerik team
It seems that this element got merged under different page in the new version of Test Studio. Here's the steps you need to take to resolve this:
1) Do a search for the problem element in Elements Explorer as demonstrated in this video. Specifically search for "Link_Contacts". It should come up but under a different page.
2) Now that you have the new page it is merged under, replace the name of the old page with whatever new page name it appears under in your search.
If you are still unable to get this to work, please go ahead and send us the back up copy of the project(into a .zip file) so we can reproduce and resolve this issue. The back up copy is located in "ProjectFolder/Backup"(see this video). If you feel that information is sensitive, attach the backup .zip file to a support ticket, which is confidential unlike this forum.
Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
algot
Top achievements
Rank 1
answered on 23 Feb 2012, 10:05 AM
Thank you.
I have changed properties of the Page in object explorer but now this object is visible as object for another tests, not for current.
How it should be changed to be as object for current test?
I have changed properties of the Page in object explorer but now this object is visible as object for another tests, not for current.
How it should be changed to be as object for current test?
0
Hello Alexander,
Could you please elaborate more on what you mean by "this object is visible as object for another tests, not for current". We'll need as much details as possible in order to help you with this. Please provide some screenshots or record a video demonstrating the exact problem so we can get a better initial idea of the situation. Jing is a good and free screen recorder.
Greetings,
Plamen
the Telerik team
Could you please elaborate more on what you mean by "this object is visible as object for another tests, not for current". We'll need as much details as possible in order to help you with this. Please provide some screenshots or record a video demonstrating the exact problem so we can get a better initial idea of the situation. Jing is a good and free screen recorder.
Greetings,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
algot
Top achievements
Rank 1
answered on 27 Feb 2012, 02:45 PM
I mean that I have following coded step
http://screencast.com/t/PvSf7XgKV
There is such element In Element Explorer when All Test view is selected
http://screencast.com/t/gjclehflGbji
But if I choose "Showing elements for this test only" element Link_Contacts disappears
http://screencast.com/t/jD50bQWZ86b
Why it disappears for current test? And how I could make it related to current test.
http://screencast.com/t/PvSf7XgKV
There is such element In Element Explorer when All Test view is selected
http://screencast.com/t/gjclehflGbji
But if I choose "Showing elements for this test only" element Link_Contacts disappears
http://screencast.com/t/jD50bQWZ86b
Why it disappears for current test? And how I could make it related to current test.
0
Accepted
Hello Alexander,
Thank you for the provided screenshots.
When you convert/customize a test step into code, it will reference an element definition from the Pages.g.cs auto-generated class (which is generated from all elements listed in the Elements Explorer). If you want this element to be displayed in the Elements Explorer for the current test, please take the following steps.
1. Click on the "Showing elements for all tests" button.
2. Select the Link_Contacts element.
3. Click on the Step Suggestions button(upper left corner of the Elements Explorer window).
4. Double-click on the "Click 'Link_Contacts'" step suggestion.
5. Convert the newly created step into Coded Step.
6. Delete the previous coded step.
See this video for more information.
Regards,
Plamen
the Telerik team
Thank you for the provided screenshots.
When you convert/customize a test step into code, it will reference an element definition from the Pages.g.cs auto-generated class (which is generated from all elements listed in the Elements Explorer). If you want this element to be displayed in the Elements Explorer for the current test, please take the following steps.
1. Click on the "Showing elements for all tests" button.
2. Select the Link_Contacts element.
3. Click on the Step Suggestions button(upper left corner of the Elements Explorer window).
4. Double-click on the "Click 'Link_Contacts'" step suggestion.
5. Convert the newly created step into Coded Step.
6. Delete the previous coded step.
See this video for more information.
Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings