AutomationID

11 posts, 0 answers
  1. Mostafa
    Mostafa avatar
    22 posts
    Member since:
    Aug 2012

    Posted 07 Feb 2013 Link to this post

    Hi Telerik Team,

    I have implemented an automated test ready, that AutomationID used to find UI elements. The test was always successful. I have the new version of Telerik test studio instaled.And now, these UI elements based on the AutomationIDs can no longer be found ( see figure). The neu Version is the Latest internal builds (2012.2.1317i). What is the Solution? can u help me please.

    Thanks & Greetings
    Mostafa
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 07 Feb 2013 Link to this post

    Hello Mostafa,

    I am sorry to hear you are running into this problem.

    However the screen shot doesn't indicate that the element is not found. This is a screen shot of our verification builder.

    In order to help you best please elaborate a bit more on your scenario.

    1. Send us the execution log.

    2. A Jing video of the behavior may also help us diagnose your issue.

    3. Please send us the test project and give us a direct access to the application if it is possible for further investigations.

    Thank you for your cooperation.

    Kind regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Mostafa
    Mostafa avatar
    22 posts
    Member since:
    Aug 2012

    Posted 07 Feb 2013 Link to this post

    Hi,
    i will post the logfile. the error message is:

    InnerException:ArtOfTest.Common.Exceptions.FindElementException: Element Not found!FindExpression used: [automationid 'Exact' KF_00:00:08:15] AND [xamltag 'Exact' KeyFrameItemControlWrapper] at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition) at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout) at ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage) at ArtOfTest.WebAii.Silverlight.VisualFind.ByAutomationId(String id, String xamlTag) at ArtOfTest.WebAii.Silverlight.VisualFind.ByAutomationId[T](String id) at MediaCenter.KeyFrameGeneratorMPEG1AutomatisierteTests.QA001_KeyFrameGeneratorNDRWithVideoFormatID21.FindListboxItemByAutomationID(String automationIDToFind) in D:\SVN\DMM\DEV\DOTNET\S4M.DMM\QA\VPMS_Releases\VPMS6.5\MediaCenter_Testfaelle\KeyFrameGeneratorMPEG1AutomatisierteTests\QA001_KeyFrameGeneratorNDRWithVideoFormatID21.tstest.cs:line 203 at MediaCenter.KeyFrameGeneratorMPEG1AutomatisierteTests.QA001_KeyFrameGeneratorNDRWithVideoFormatID21.QA001_KeyFrameGeneratorNDRWithVideoFormatID21_CodedStep2() in D:\SVN\DMM\DEV\DOTNET\S4M.DMM\QA\VPMS_Releases\VPMS6.5\MediaCenter_Testfaelle\KeyFrameGeneratorMPEG1AutomatisierteTests\QA001_KeyFrameGeneratorNDRWithVideoFormatID21.tstest.cs:line 113

    Thus, the element can not be found. But I was able always to find this element with the AutomationID. And now no longer.

    I use thise Funktion
    ByAutomationId<KeyFrameItemControlWrapper>(automationIDToFind);

    i think Telerik test studio have a bug

    what should I do
  4. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 07 Feb 2013 Link to this post

    In your screenshot, it looks like you are identifying the object using "Name", "AutomationID", and "Uid".  Is it possible that the "Uid" is dynamically generated?  If so, finding an element using an old Uid will not work if a new one is generated at runtime every time.
  5. Mostafa
    Mostafa avatar
    22 posts
    Member since:
    Aug 2012

    Posted 08 Feb 2013 Link to this post

    Hi,

    the right AutomationID is not displayed, and the Schrennshot only serves as proof. So you see that the field AutomationID has not  the correct value. currently, all tests that use AutomationID have failed!!!!
  6. Adriane
    Adriane avatar
    28 posts
    Member since:
    Apr 2012

    Posted 08 Feb 2013 Link to this post

    We are using static AutomationIDs that are always the same we open the website.
    This is only because Telerik is not able to find some elements. So this worked for us fine.

    We debugged in the code and could see, that our automationIDs are the same as before.

    We use this in Visual Studio like Mostafa described above, but we also use it in Standalone Version, this will take the following steps:
    If we make up a verification step, we could step in the DOM, search for the AutomationID and take that element.
    Telerik is using the AutomationID to identify that element.
    Now the Elements cannot be found if we replay the test.

    We need a solution very soon! Without the possibility to use automationIDs we cannot use Telerik anymore.

    Best regards
    Adriane
  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 11 Feb 2013 Link to this post

    Hello Adriane,

    I noticed in the screen shot of the DOM that the element you are looking for has no AutomationID attribute.

    In order to help you best we need to reproduce this behaviour on our end. Please send us the test project and give us a direct access to your application.

    A Jing video of the behavior may also help us diagnose your issue.

    In the meantime you can try to change your find logic to use another attributes to locate the element.

    Thanks for helping us advise you.

    Greetings,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  8. Adriane
    Adriane avatar
    28 posts
    Member since:
    Apr 2012

    Posted 11 Feb 2013 Link to this post

    Hi,

    with an older version we see here an AutomationID, that is the funny thing here, so its no change in code on our side.
    We have no external access to the system, so we cannot provide this.

    We cannot use another attribute, because we need the AutomationID in here like it is before.

    Please take a look in your code what has changed and provide the automationID again, we cannot use Name or something.

    Best regards,
    Adriane
  9. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 11 Feb 2013 Link to this post

    Hello Adriane,

    I can confirm that we have not made any changes with how we locate the elements during recording. Please send us a screen shot or record a Jing video that demonstrates you are able to see AutomationID with an older version of Test Studio. A screen shot showing our DOM tree with your AutomationID's visible would be very helpful in diagnosing this problem.

    In general the AutomationID either exists or not. It does not depend on the version of Test Studio.

    You can record also a Fiddler trace using FiddlerCap and send it to us in a zip file. We can try to "simulate" your app in order to reproduce the problem locally.

    Hope to hear from you soon.

    Kind regards,

    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  10. Adriane
    Adriane avatar
    28 posts
    Member since:
    Apr 2012

    Posted 12 Feb 2013 Link to this post

    Hi Boyan,

    I'm very sorry about all that.
    We found some small thing, which has deep impact for the automationIds behaviour, so we see it in the debugger, but not in the release version.

    Do you know a free tool to get access to a silverlight AutomationId?
    (Just to verify something like that, if we have another problem here, were we do not know exactly where the problem is)

    We know Silverlight Spy, but it also do not show AutomationIds.

    Again, pardon us.
    Adriane
  11. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 13 Feb 2013 Link to this post

    Hi Adriane,

    If the elements in your application have AutomationIDs Silverlight Spy should be able to see them as well as Test Studio.

    I used both tools against our Silverlight demo site and both were able to show the AutomationIDs (see the attached screen shots). 

    Please consult with your development team if something has been changed in your application.
     

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top