DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Testing, Tools, and Frameworks
  4. Increase Coverage and Reduce Cost With Data-Driven Testing in Jira

Increase Coverage and Reduce Cost With Data-Driven Testing in Jira

Learn about Data-Driven Testing, or DDT, and how Jira empowers it to increase code coverage.

Charlie Harrisson user avatar by
Charlie Harrisson
·
Oct. 23, 18 · Tutorial
Like (1)
Save
Tweet
Share
5.02K Views

Join the DZone community and get the full member experience.

Join For Free

As complexity increases, it becomes a considerable challenge to guarantee quality and reliability in the software industry. Despite an increase in test automation due to a power shift toward agile approaches, manual test case design and execution are still the most common testing practices.

However, extensive use of manual testing is widely considered to be a significant contributor to increasing project costs. A new approach is required to accelerate test case design and reduce the time spent on manual maintenance and execution. In this post, we’ll explore data-driven testing and how by leveraging test effectiveness, coverage, and reusability, it can contribute to an improvement in testing efficiency.

What Is Data-Driven Testing?

Data-driven testing (DDT) is a test design approach where the test data (input and output values) is separated from the actual test case. The test data can be stored in one or more central data sources and shared across different test cases. By storing your test data in a central repository (local storage, excel spreadsheet, XML file or SQL database) you can run the same test with a new set of data each time, avoiding the need to design and execute repetitive tests cases. Towards the end of the test cycle, you can store test data to provide a clear audit trail of what was and wasn't covered by the test.

DDT can be used in both manual or automated test scenarios, enabling test scripts to run together alongside their respective data set. In DDT, the following operations are performed in a loop for each row of test data in the data source:

  • Retrieving the test data.
  • Inputting the test data in the system under test (SUT) and simulating other actions.
  • Verifying the expected values.
  • Continuing the test execution with the next set of test data.

In a nutshell, DDT can be visualized as follows:

Image title

Adopting a Data-Driven Approach to Testing

Commonly, test cases are designed using variables in the test step level. A variable placeholder is added in the test step to receive the values from the data source instead of using hard-coded or fixed values. By doing so, each time you execute the test case, the variable is replaced with the test data in the corresponding data source. This approach reduces time and effort involved in creating test cases, as often a new test case requires just a new row of test data in the data source. Additionally, it provides a clear separation of testing logic from the actual test data, reducing the time spent on maintenance (i.e. any changes to the test step do not affect the test data and vice-versa). If you would like to find out more about how to get up and running with data-driven testing, check out our documentation for more details.

Data-Driven Testing in Action

Depending on the business rules you have to validate during the test case design, you may need to repeat the test case several times with different test data to ensure that the application works as expected for various input values. For example, if you have to design test cases to test the search and book a flight functionality of an airline company, you'll need to check different combinations of input values for the search screen (i.e. from, to, depart, return, class, etc). To prevent duplication, along with the test case you can provide a data source with test data to map each combination you need to address to leverage the coverage, as seen in the image below:

Image title

When designing test cases using the DDT approach, the focus should be in mapping the test data and its different combinations and variations (negative and positive) to meet the requirements and business rules and ensure adequate test coverage. By doing so, during the test execution, the variable placeholders in the test step level are replaced by the values available in the test data table, ensuring complete reusability of the steps instead of using hard-coded or fixed values as displayed in the image below:

Image title

Benefits of Data-Driven Testing

Adopting DDT is a way of ensuring repeatability and reusability of existing test cases. DDT leverages test coverage by feeding different types of test data – either valid or invalid (positive and negative test cases). As a result, you can benefit from a dramatic reduction of redundant test cases and bugs in production. Other benefits of adopting DDT include:

  • Increased test coverage
  • Reduction in time spent designing and maintaining test cases
  • Repeatability and reusability of existing test cases
  • Reduction in the number of test cases

Why Does DDT Make a Difference?

DDT enables developers and testers to have a clear separation of the logic of their test cases/scripts from the test data while making it possible to have the test scripts in a single repository. Making it easier to understand, maintain and manage tests for higher efficiency. Repeatability enables you to execute any test script hundreds of times with different data assets, saving time by freeing up your test team to focus on more challenging exploratory and user experience testing.

Test data Test case Jira (software)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • AWS Cloud Migration: Best Practices and Pitfalls to Avoid
  • What Is Policy-as-Code? An Introduction to Open Policy Agent
  • Efficiently Computing Permissions at Scale: Our Engineering Approach
  • The Enterprise, the Database, the Problem, and the Solution

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: