Compare two tables data to make sure data in 2 table matchesin same database schemausing cucumber bdd with java using springbootFramework | Selenium Forum
D
divya Posted on 07/03/2019

Hi Ashish,

I found cucumber diff datatable method to comapre, since its new to me i could start my test. I request you to help me to move further.

 

 

 


D
divya Replied on 07/03/2019

1.scenarios are written in feature file

2.scenarios steps are implemented in step definition file

3.sql quires are implemented in DataUtils file.


A
Ashish Thakur Replied on 07/03/2019

Can you elaborate on this?


D
divya Replied on 08/03/2019

sure Its,

Under same database schema, i have table1 (source table) and table 2, to make sure the data in table 2 contains same data as present in the table 1 which is source table.

In both tables we have same fields and same data.

how can i test this story. please provide me some examples or suggestions.


A
Ashish Thakur Replied on 25/04/2019

This is a simple utility which you need to create

BDD is just an approach 

You will have to write a funciton to do this

Pull out values from each table, row and row and compare them


R
raghavilatha1992 Replied on 04/05/2025

@Divya have you created utility for this, can you post it if possible le