Compare List before and After edit/delete

Best practices, code snippets for common functionality, examples, and guidelines.
pandiyarajk
Posts: 5
Joined: Thu May 27, 2010 8:03 am

Compare List before and After edit/delete

Post by pandiyarajk » Mon Nov 21, 2016 1:53 pm

I am working in Ranorex Studio 6.0.1 and have recorded a web browser automation test for web table edit/delete on its row.
With Record and Playback, I could not ensure that the line item was really edited/deleted?

How to ensure the item was edited/deleted in Record and playback module?


Regards,
Pandi
Attachments
List.png
Table with list items
List.png (41.55 KiB) Viewed 496 times
Last edited by pandiyarajk on Mon Nov 21, 2016 2:11 pm, edited 1 time in total.

Martin
Posts: 152
Joined: Fri Aug 15, 2014 12:24 pm

Re: Compare List before and After edit/delete

Post by Martin » Mon Nov 21, 2016 2:00 pm

What you could do is give more information related to the AUT.

Currently i'm not sure if you are validating a table or a seperate file on a local machine or something else.

There are actually quite few possibilities to overcome your issue.
Basic flow would be to validate a field to compare if the new given value exists in the specific cell where the change was made.

But if you would like a more specific solution please add further information.

pandiyarajk
Posts: 5
Joined: Thu May 27, 2010 8:03 am

Re: Compare List before and After edit/delete

Post by pandiyarajk » Mon Nov 21, 2016 2:12 pm

Hi Martin,

I have added the screenshot. Could please take a look and help me?

Regards,
Pandi
Martin wrote:What you could do is give more information related to the AUT.

Currently i'm not sure if you are validating a table or a seperate file on a local machine or something else.

There are actually quite few possibilities to overcome your issue.
Basic flow would be to validate a field to compare if the new given value exists in the specific cell where the change was made.

But if you would like a more specific solution please add further information.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Compare List before and After edit/delete

Post by odklizec » Mon Nov 21, 2016 2:14 pm

Hi,

As Martin mentioned, please provide us with more details regarding the AUT and automated scenario. Ideally, please provide Ranorex snapshot (screenshot is useless) of the list in question (both before and after delete operation). In any case, you will have to write a piece of code to compare the list before and after the delete operation. There is no recording-only way to do this.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration