Open In App

Overview of Conversion Testing in Software Testing

Conversion Testing :
Every software development process follows the Software Development Life Cycle (SDLC) for developing and delivering a good quality software product. In the testing phase of software development, different types of software testing are performed to check different check parameters or test cases. Where in each software data is an important part as with the help of data a software application performs its operations. Conversion Testing is done to verify the conversion of one data format to another data format that can be used continuously by an application under the test process. Any type of data can be converted from one form to another form, but the web pages must be in HTML format so that the browser can easily render the page.

Some common Test Examples :



A/B Tests v/s Sequential Tests  :

  1. A/B Test is simply creating two versions of something. It automatically accounts for all the factors because there is only difference between a set of visitors from other from others is what they see on your site, meanwhile time, year, and weather are the same i.e. restricting outside activities that may influence the result.
  2. On the other hand in sequential testing, we are doing one thing for some time and if we make some changes we would leave them for the same period, then we can easily compare results. But in this case, it is correctly analyzed because many factors could have altered the results that may be out of control.

Levels of Data Conversion Testing :
There are mainly two levels of testing done i.e. technically & business “warm and fuzzy testing”. Technical testing will check conversion against the specs while business testing will give business representatives confidence when their old systemise in at rest, the precious data copied flawlessly to the new system.



1. Technical Testing :

We should initiate this testing by establishing test traceability. At least one test should be written against each statement as previously to ensure the test will cover all the data to be converted. We should initiate this testing by establishing test traceability. At least one test should be written against each statement as previously to ensure the test will cover all the data to be converted.

We can write queries in many ways to test whether a particular record is correctly converted. 

There are mainly two most common queries:

(i) Row Count –
They are used to compare the number of records in the source & target table. If the conversion is straight conversion, the above queries can easily check no. of rows.  If records with particular parameter is to be converted then we may follow run following queries.

Run against Source Table,
Choose count(*) from [Source table]
where [field1] = [a condition]
[field2] = [another condition]
Run against Target Table,
Choose count(*) from [Target table]

 This test will give you no. of subsets of the source table that are to be converted and the total number. of rows in the target table. The test passes if the numbers match.

(ii) Identify objects with Missing Data –
Its focus is to identify parent objects whose child objects that should have been converted are absent. It tests each parent has their corresponding child object we write the SQL query in the following steps.

a. Write a query that will get the foreign key that goes back to the the parent table from child objects table. e.g.

where  [field1] = [value1] AND
[field2] = [value2] AND
[field3] = [value3]

Here this will provide all the correctly connected child objects.

b. Write a query for the parent table that get all the parent_id’s that should be  child object in ChildObjectTable e.g.

choose id from parentTable
where [fieldX] = [a value]

      c.  Now we combine the two queries which will help in generating a new query to display parent_id’s that didn’t exist in the first query. e.g.

select id from parentTable
where [fieldX] = [some value] and
id is not in (
select parent_id from childObjectTable
where [field1] = [value1] AND
[field2] = [value2] AND
[field3] = [value3]
)

So the list will generate a list of entire parent_id’s that are missing a correctly generated child object from childObjectTable.

2. Business Testing :

Advantages of Conversion Testing :

Disadvantages of Conversion Testing :


Article Tags :