gridviewrow on replay a test allways show the first row

8 posts, 0 answers
  1. Simona
    Simona avatar
    12 posts
    Member since:
    Sep 2012

    Posted 21 Nov 2012 Link to this post

    Hi,

    I have some issue with recording some steps in test studio.I am a beginer in test studio. I have a wpf application. On its interface I have a zone with properties for controls I use. This list is displayed into a radgridview. When select the first cell from each row all the step are recorded, but when refer to the second cell on each row(this cell contain radnumericupdown) then the step is recorded but when replay the test this step fails because allways show the dates from first row.

    Any idea why?

    When I looked  in "Find element" on XamlPath I found this:
    /gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]
    /gridviewgrouprow[2]
    /grid[name=PART_GroupExpanderGrid]
    /border[name=Content]
    /stackpanel[0]
    /gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]
    /gridviewrow[automationid=Row_-1]

    Thank you in advance.

     

    Regards,

    Simona

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 22 Nov 2012 Link to this post

    Hi Simona,

    Unfortunately I was not able to reproduce your issue. I recorded two short videos to show. The first one is with RadGridView and the second with RadNumericUpDown. Please ensure that you are verifying the entire RadNumericUpDown as in the attached screenshot.

    In order to help you best please record a short video demonstrating the issue (Jing is a great piece of software for this) or send us your project and give us an access for further investigations. 

    Thank you for your cooperation.

    All the best,
    Boyan Boev
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
  3. Simona
    Simona avatar
    12 posts
    Member since:
    Sep 2012

    Posted 27 Nov 2012 Link to this post

    Hi Boyan,

    I've attached a picture which should explain my problem better.
    It is possible the reason be that - controls have no automationid?

    Thanks,
    Best regards,
    Simona
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 27 Nov 2012 Link to this post

    Hi Simona,

    I am still unable to reproduce your issue. An option you can try is to change your find logic. Make it more specific, use more finding rules. Try to use TagIndex find rule in the find logic - see the attached screenshot. Please read more about Find Element here.

    If the issue persists I recommend to send us your project with access to the application or please record a short video to show us how exactly you are recording the test and reproducing the issue.

    Thank you for your cooperation.

    All the best,
    Boyan Boev
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
  5. Simona
    Simona avatar
    12 posts
    Member since:
    Sep 2012

    Posted 28 Nov 2012 Link to this post

    Hi Boyan,

     I've used find logic but on tagIndex i have radnumericupdown:0 and I need to be radnumericupdown:1.
    It is ok to change the id (number) manually or should be autogenerate when run application?

    Thanks,
    Best Regards,
    Simona
  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 28 Nov 2012 Link to this post

    Hi Simona,

    The ID should be generated automatically if the test step is recorded correctly, however yes, you can change the ID manually.You can edit these settings by typing in new properties, selecting a new modifier in the drop-down menu, or changing the values. Click Validate (see atached screen shot) to confirm whether the element can be found using the current Find Settings.

    Note that if you change the ID to locate the next element, you should change also the Name attribute in the find logic if you are using it. The next element has a different name probably. Let's try to use XamlTag and TagIndex or only TagIndex in the find logic (see the second screen shot).

    Regards,

    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  7. Simona
    Simona avatar
    12 posts
    Member since:
    Sep 2012

    Posted 28 Nov 2012 Link to this post

    Hi Boyan,

    Thanks for your help.
    If I change manually the id - the test doesn't fail any longer.
    For the moment is solving my issue but it still has to be a way to automatically generate it.

    Best Regards,
    Simona
  8. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 29 Nov 2012 Link to this post

    Hi Simona,

    I am happy to hear you have solved the problem.

    Yes, it should be generated automatically, however I cannot say why it is not without a direct access to your application and test project. You can record a short video to show me the recording process of the test and its subsequent execution. Jing is a great piece of software for this.

    Kind 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