Questions tagged [data-driven]

A scripting technique that does not put test data directly into the test script.

Filter by
Sorted by
Tagged with
8
votes
2answers
4k views

How does the DataSource attribute on a test run the test multiple times?

This is going to be a bit long/wordy/verbose, but I've been looking at it for a while and I think that I'm bad at explaining things because people seem to get confused about what I'm asking. You know ...
7
votes
6answers
1k views

Data driven testing patterns - Pros and Cons and good examples?

Every now and then I see a question coming by asking how to implement a data driven test framework in combination with a automated testing framework like Selenium. This gives me the feeling this is ...
5
votes
3answers
803 views

Generate test data in which format

What is the best approach to make test data configurable ? Through XML file or properties file or any other way. But must not be hard coded. What approach should be taken to run the same Test Suit ...
4
votes
1answer
2k views

Data Driven testing in Postman Tool

Can anyone please let me know how the data-driven testing is done using the Postman? I read some post in the online, it seems to be by using collection we need to run the collections at the time we ...
4
votes
2answers
335 views

What data-driven techniques exist for determining that enough testing has been done?

I have seen some SQA groups use defect arrival or "discovery" rates in order to determine whether a piece of software is ready to be released. The idea is that the rate at which defects are uncovered ...
4
votes
2answers
664 views

Selenium IDE data-driven storing special characters from csv file

I'm using selenium IDE and readCSV command from a CSV file. Within the file I have Lägg till Värdorder inside a cell. I'm using command storeCellValue and echo the value. But it looks like this L�gg ...
3
votes
1answer
3k views

How can I test a table of options with python unittest and nosetests?

I have a list of twelve properties and want to test various combinations. The actual test function is the same, just different parameters. I find myself writing a bunch of functions that look like ...
3
votes
2answers
3k views

How to access database from SoapUI for test-data generation?

The web-services testing would cover more cases if it is data-driven. So it is better to generate random data (but from the same boundary) for each request. E.g. in test case 1 we check users id ...
3
votes
1answer
216 views

Both machine- and human-readable data-driven test cases

At this moment I write my test cases in Markdown. So they can be version-controlled (I use Git). From Markdown I can render the sources into either HTML or PDF, it can be automatized through a shell ...
3
votes
1answer
398 views

Selenium IDE with Selblocks: jump to next var if got an error

I have a script which get vars from XML with Selblocks plugin. This script make registrations to events on a website. The XML contains the URLs of the events and the names and passwords for Users. So ...
2
votes
4answers
1k views

How to write test cases when different test data gives different results?

Example test case: Check mobile bill payment after due date. For the above test case, different telecom operators have different sets of rules. For example, some allow payment after due date, and ...
2
votes
2answers
40 views

Can I merge test expectation with test data together?

I am coding a test automation framework which uses data-driven approach. The whole project is to test an online shopping web page. An Excel sheet was created to contain all test data as following: ...
2
votes
1answer
3k views

How to make multiple testcases of one value

I have created test cases for email but there are multiple negative test cases for email field then how should I pass multiple values in the input field. I have created function.but don't is that ...
2
votes
1answer
5k views

Robot Framework data-driven automation testing: Can data derived from a database be used as a data source for a test template?

I am familiar with using template keywords in data-driven Robot Framework testing and know that external sources of data such as text files and csv files can be used to provide test data. However, the ...
2
votes
5answers
459 views

Managing Test Data for UI testing

I am working on a Java/TestNG UI automation framework and having some difficulties with test data management. I use TestNG's DataProvider to pass data to the test method. I need to pass about 30 ...
2
votes
2answers
618 views

Alternative ways to implement Data-Driven Testing for Selenium 3.0?

Currently I am using Selenium 3.0 with the TestNG framework and a page factory setup for maintaining the page setup. I have been using wini for fetching data from the text file using section and ...
2
votes
1answer
1k views

Selenium: Isolating Assert Fail in Excel Data Driven Loop

Firstly I would like to point out that I'm a beginner when it comes to selenium so I apologise if this is not presented appropriately. I would like to incorporate data driven testing into my ...
1
vote
1answer
288 views

Unable to perform data driven test using Apache POI

The line marked in star is giving error when the test is run in TestNG Guys tell me what am I doing wrong in this. I have attached the excel with 3 rows and 3 columns in 1st sheet. Data lib code- ...
1
vote
2answers
110 views

Automated software for data set management

My team creates some kind of machine learning algorithm. We have an executable module, which gets input and produces output as files in some format. Thus each of our tests is such file. After module ...
1
vote
1answer
492 views

How to control TestNG to iterate all Tests in each iteration instead of iterating individual tests before moving on to the subsequent test

Problem - I have 6 tests and one dataprovider with 2*2 object array. I want TestNG to pick first data, use it in First test and then subsequent tests are executed based on the data picked in first ...
1
vote
1answer
316 views

When submitting a form by fetching values from excel file it is showing Internal Server Error

When submitting a form by fetching values from excel file it is showing Internal Server Error but when I put static values in code and run it successfully submits the form without any error. Here is ...
1
vote
1answer
226 views

How do I delete a column header in QTP?

I had a QTP Data Table and named some of my columns. I decided I didn't need one of my columns for my test, but it won't let me remove a column name once its set. I can't remove the column header and ...
1
vote
1answer
603 views

Type Error when using DDT for Selenium

I am learning Selenium with python, so please excuse my amateur questions, I am trying to run a simple Data driven test where selenium will enter a few different names on the Name field. The Page ...
1
vote
1answer
157 views

How can I maintain test data in response[expected] against request[input] using java? How will it be if I use JBehave?

I have many scenarios to create request file that are sent to another application. This application processes the requests and sends back the responses. These responses should be validated against the ...
1
vote
1answer
355 views

How to structure data driven Protractor/JS tests in page object model?

I am using protractor/js for automating end to end tests for our website. We have a test data set that we have saved in different JS files and we use this data while executing test cases. We are ...
1
vote
2answers
391 views

Compare web content with the CSV File

I want to compare my data in CSV with the web content. The data in CSV file comprises of multiple rows and column. How can I verify that the data inputted on the web is correct comparing it with the ...
1
vote
0answers
35 views

The response XML is getting with some space after running collection runner in Postman [closed]

I'm using collection for the XML service in Postman, After the execution, I got the results successfully but when am seeing the test results the response body is coming with some extra space for each ...
1
vote
0answers
3k views

Data driven using xml file in java selenium

I have already used the data driven approach and executed the test cases using excel file. I mean the data is extracted from excel file. Now i want to extract the data from xml file and execute the ...
1
vote
1answer
297 views

In QTP 12.51, how to identify dynamical element generated using ajax/jquery form

In my Datatable three rows are present. After clicking on Add button new row is generated and I need to put input values from datatable. Problem: How to identify field of each row dynamically for ...
0
votes
2answers
1k views

Want to build data driven framework with selenium webdriver [closed]

I have knowledge of selenium and want to implement data driven framework. So, I need basic knowledge for this at a starting level so that I can proceed in my organization
0
votes
1answer
464 views

TestComplete ; Automation Testing; Dynamic programming

How do we take input from an excel sheet(data-driven testing) for web app testing after recording a script? making it dynamic is the main issue.
0
votes
2answers
226 views

Invalid xml data generator

I am searching for a tool that can generate invalid data for xml. I know data valid in one system might be invalid in other. Still some error like length, signs, repetition could be simulated. I do ...
0
votes
1answer
105 views

How can I improve this python pytest excel data handling code? Does pytest have something like TestNG dataprovider?

Does Python Pytest have anything similiar to Java TestNG DataProvider where you can pass in a set of data for the tests? I created something to take the data from my excel list using openpyxl and it ...
0
votes
1answer
317 views

Testing NIFI: best practices

I do have new task related to test NIFI Apache. not sure where to start or how to. I have one thing in mind to test it as an API but the only response it sends is status code. I know also it has be ...
0
votes
1answer
429 views

Data driven testing with different elements eg Katalon

I have used basic data-driven testing to populate fields in Katalon scripts but how do I supply values (in Excel) to click checkboxes and radio buttons, please? Eg where one instance of the script ...
0
votes
2answers
546 views

SOAPUI asserting input xml against the database fields

In soapui, i have a request xml and for which i would get an response. I have established jdbc connection. Now i need to verify the input xml against the database persisted fields. the xml elements ...
0
votes
1answer
3k views

Angular 4 automation using Selenium

I am trying to automate Angular 4 using Selenium, Just wanted to check if there are any good frameworks available? This info will give me a good start.
0
votes
1answer
813 views

How to pass data through Excel sheet in Page Factory framework

I have created a login test script and verified home page also but now I have to add new customer and the form accepts following values Customer Name Gender Date Of Birth Customer Address , city, ...
0
votes
2answers
4k views

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help. I am trying to implement POM with PageFactory but at the same time I want to make it data ...
-1
votes
2answers
83 views

I am getting Error in Excel Dataconfig how can i resolve this error?

Here is my Code:au package Mypackage; import java.util.concurrent.TimeUnit; import org.openqa.selenium.support.ui.Select; import org.testng.annotations.AfterMethod; import org.testng.annotations....
-2
votes
3answers
37k views

What is the difference between keyword driven and Data driven frameworks in Automation?

I am having problems fully understanding the purpose of keyword driven frameworks compared to data-driven frameworks. What circumstances would make a keyword-driven framework more appropriate for an ...
-2
votes
1answer
81 views

How to assert that particular element is not displayed? [duplicate]

Can someone help me fixing NoSuchElementException. Let me explain what I am trying to do. I am trying to login into an application with multiple sets of data. Lets say, 1) Valid username and ...
-3
votes
1answer
2k views

How to develop data driven framework using Selenium with C#? Please provide example [closed]

How we can develop data driven framework using Selenium with C# to test the web applications? In your response can you please provide an example?