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

Object disappeared from Element Explorer

5 Answers 201 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
algot
Top achievements
Rank 1
algot asked on 20 Feb 2012, 03:08 PM
I upgrade Test Studio to 2011.2.1413.0 and found that one of Elements in Element Explorer disappeared.

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");
    }
}
but there is no such element in Element Explorer
http://screencast.com/t/BbKtOrF049f

How could I fix it?

5 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 23 Feb 2012, 09:45 AM
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
Quickly become an expert in Test Studio, check out our new training sessions!
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?
0
Plamen
Telerik team
answered on 27 Feb 2012, 02:22 PM
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
Quickly become an expert in Test Studio, check out our new training sessions!
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.
0
Accepted
Plamen
Telerik team
answered on 29 Feb 2012, 11:39 AM
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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
algot
Top achievements
Rank 1
Answers by
Plamen
Telerik team
algot
Top achievements
Rank 1
Share this question
or