Compare row in DT
Compare row in DT
Hi, I am looking for the easiest way to compare the added row to the table with sample data, in the table I have 20 columns. in the end, it would be useful to say that in the employee column there is a different value than the example.
For now i add datasource and there i add query to get sample row, and in code module for each column i add variable and compare content but i think there must be a simpler solution.
For now i add datasource and there i add query to get sample row, and in code module for each column i add variable and compare content but i think there must be a simpler solution.
Re: Compare row in DT
Hi,
Have you considered using reference snapshot?...
https://www.ranorex.com/help/latest/han ... einwebibri
I'm using this approach for all web tables and it works quite nice.
Have you considered using reference snapshot?...
https://www.ranorex.com/help/latest/han ... einwebibri
I'm using this approach for all web tables and it works quite nice.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
i heave desktop app and ODBC conn
Re: Compare row in DT
You can do the same also for desktop tables. Just check other table-related examples
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
what should an example csv file look like?
Re: Compare row in DT
and where to put this code to make sense, in the cs file, new class file ?
Re: Compare row in DT
Can you add example ranorex file ?
Re: Compare row in DT
Hi,
There is no csv file used for table validation. There is used Ranorex snapshot file, as a reference file. Please check this Advanced validation example (entire table):
https://www.ranorex.com/help/latest/han ... einwebibri
Sadly, if you are not skilled in coding, you may find hard to adapt the code for your needs. And without seeing the snapshot of your table, there is not much anyone here can do or suggest.
There is no csv file used for table validation. There is used Ranorex snapshot file, as a reference file. Please check this Advanced validation example (entire table):
https://www.ranorex.com/help/latest/han ... einwebibri
Sadly, if you are not skilled in coding, you may find hard to adapt the code for your needs. And without seeing the snapshot of your table, there is not much anyone here can do or suggest.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
Ok another question if you can compare two data sources ?
Re: Compare row in DT
Hi,
I’m afraid, I don’t understand what do you mean? Please describe in more details, what exactly you want to do. Thanks.
I’m afraid, I don’t understand what do you mean? Please describe in more details, what exactly you want to do. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
i can not use the code from the example because I do not see all data from the table on the screen (some data is hidden and you have to move the slider) so I cant create snapshot
Re: Compare row in DT
SmartFolder -> Datasource 1
|
|___ TC1 -> Datasource 2
|___ Compare 2 data source from smartfolder and tc
It is possible ?
|
|___ TC1 -> Datasource 2
|___ Compare 2 data source from smartfolder and tc
It is possible ?
Re: Compare row in DT
Ranorex should be able to create snapshot of entire table, regardless it’s entirely visible or partially hidden. The only problem could be with table, with danamically loaded data, where table loads only “visible” data. Are you sure the data from “invisible” part of table are not stored in snapshot? The data may not be visible in screenshot, but they may be saved!
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
Sure, you should be able to obtain data from both data connectors in TC1. The question is, how exactly is structured your test and what is inside both data connectors. Sadly, without seeing your solution, test data and app under test (at very least Ranorex snapshot), there is not much else anyone here can do or suggest.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Compare row in DT
Ok I add snap,
You do not have the required permissions to view the files attached to this post.