Questions tagged [data-driven-tests]

Data-driven testing (DDT) is a term used in the testing of computer software to describe testing done using a table of conditions directly as test inputs and verifiable outputs as well as the process where test environment settings and control are not hard-coded.

Data-driven testing is the creation of test scripts to run together with their related data sets in a framework. The framework provides re-usable test logic to reduce maintenance and improve test coverage. Input and result (test criteria) data values can be stored in one or more central data sources or databases, the actual format and organisation can be implementation specific.

379 questions
-1
votes
2 answers

How to open Different URLs(with different usernames and passwords) in Selenium

I have successfully read data from an Excel file , consisting of three columns(URL/FQDN , username , password). This Excel Sheet consists of FQDNs of various servers of mine. I have another function that needs to perform certain task on all of these…
DP_
  • 1
-1
votes
1 answer

How to read data from excel in cucumber

I have to read excel where excel have employee name,process,start date,end date and employee id columns.In excel,For each employees process is different,(process i have to select from dropdown in UI),start date ,end date.I have to fetch all this…
-1
votes
2 answers

Java: How to exit a method, when there is no input?

I have written a POM for test automation of a web UI using Selenium Webdriver using java. In the POM, I have created a repository of methods of all the page fields. Basically the web page has more than 100 fields. So I am using an excel sheet for…
-1
votes
1 answer

Selenium-sendKeys() throwing 'Keys to send should be a not null CharSequence'

Hey guys i am new to Selenium and facing some issue . There are 3 class , one is Data_Provider which reads data from excel another is a class to Add users (after reading from excel) last class is main class which calls Add class. Below is Add class…
YoDO
  • 93
  • 1
  • 7
-1
votes
3 answers

Data driven test cases on robot framework

I have found many cases where described how can be executed some test case with data range inside, but I need create separated test cases based on some array. For example I have a boxes range on which I need check some scenarios: Login on…
Victor Dronov
  • 139
  • 1
  • 12
-1
votes
1 answer

How to run a spec with multiple sets of data?

I'm using Ruby, RSpec, Watir, etc. I'm a newbie at it. I need to run a spec with different sets of data. I used to to this in Selenium reading the data from an excel sheet or passing the data through an xml. How do I do it here?
-1
votes
1 answer

get the specific column values from a ".xls" file in selenium java

I am using data driven testing in selenium with java. I want to get the test data from ".xls" file. here there are multiple columns and rows are there. so I want data from a specific column name. but I don't know how many rows are available. bu I am…
Sasi Reddy
  • 11
  • 4
-1
votes
1 answer

It Shows value as undefined in webpage when i enter value from JSON file, Any idea?

It Shows value as undefined in webpage when i enter value from JSON file, Any idea? JSON FILE: [ { "firstName":"1233232322", "lastName":"ramakrishnan", "email":"parthiramkrish@gmail.com", "password":"secondmay1991", …
Parthi
  • 142
  • 1
  • 1
  • 12
-1
votes
1 answer

Assertion in Data Driven Testing in soapUI Free version

I am doing Data driven test in soapuI free version with 4 data sets. i have 3 Teststeps that includes: 2 groovy script and one Login REST Service. i have performed assertion in Login Teststep. MY question is what to do if assertion fails for any…
Bugasur
  • 101
  • 2
  • 5
  • 12
-1
votes
4 answers

Selenium xpath: Is it a good practice to make all the xpaths in the script Data Driven?

Is it a good practice to make all the xpaths in the script Data Driven? I mean to fetch the all xpaths from excel and not to keep any xpaths in script and if any changes occur in xpath, we just need to make changes to xpath in excel and not in…
-1
votes
1 answer

Selenium Data driven testing in perl

Need help on how to do data driven testing using Excel & by connecting to Database. Also not able to use Test harness: Can't locate Test/TAP/HTMLMatrix.pm in @INC (@INC contains: D:\Test-WWW-Selenium-1.35\Test-WWW-Selenium-1.35\lib C:/Perl/site/lib…
-2
votes
1 answer

I am Trying Data Driven Framework with Selenium. Where i have a sample program to get url from excel sheet and make browser open

I am Trying Data Driven Framework with Selenium. Where i have a sample program to get url from excel sheet and make browser open. But all i am getting is URl= Null error. I have attached my code and error screenshot. What am i doing wrong. And Error…
Prasanna
  • 35
  • 3
-2
votes
1 answer

How to save json response and result in an excel sheet

I want to save each json response to the respective input (in the same excel file which I have used as input file for data driven test testing.) in the each input row as shown below .Can anyone please help me in this, i am using SOAP UI PRO. I am…
mona
  • 151
  • 2
  • 2
  • 8
-2
votes
1 answer

How to load test a data driven unit test with visual studio

I am trying to load test a webservice endpoint. I had a data driven unit test built for testing it. My data source is a CSV file and the unit test picks it up and runs smoothly. But when I hook the test to Microsoft Visual Studio LoadTestFramework…
-2
votes
1 answer

Selenium : for loop (Data Driven Test)

How to write for-loop for log in into yahoo for multiple customers the inputs given in excel. I want for selenium data driven test. Here i need values from column B not from column A & my rows needs to be incremented. So how to write the for…
Aditya
  • 1
  • 1
  • 3
1 2 3
25
26