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
0
votes
1 answer

How to make a random data driven test from CSV file by Jmeter

I have a csv file with a number of rows, and each row has this format: name,surname,fathername,email,password,phone,longitude,latitude,address,postcode I would like to create a Jmeter data driven test which should use the variables from this rows.…
ShurupuS
  • 2,923
  • 2
  • 24
  • 44
0
votes
1 answer

How to attach data source at class initialize in Unit Test in C#

i am writing Data driven unit tests in C#. I want to attach data source at class level so that all the test will run for set of inputs. Some how the problem is with the TestContext property which i cannot access as the ClassInitialize method is…
Jash
  • 942
  • 4
  • 17
  • 40
0
votes
2 answers

Selenium 2.0 + Thucydides + Excel

I want to prepare the test where selenium has to read the data (username and password) from excel file and feed them in to login fields. I'm using thucydides framework with selenium 2.0. How can I do it? Thank you.
Peter
  • 1
  • 1
0
votes
1 answer

What is meant by parameterization?

While reading one of the articles for Data Driven Testing, I came across a term 'parametrization of a test'. Could someone explain to me what is meant by parameterization here?
Alpha
  • 13,320
  • 27
  • 96
  • 163
0
votes
1 answer

How do I set a cell value in an Excel file using Sahi Pro _getExcel API?

So here is my script: //Get a handle to the Excel sheet var $db = _getExcel("C:\\Users\\datasource.xlsx","Sheet1"); //Get Data var $rs=$db.getData(); //Set a random number to append to this group of usernames var $rand=…
kyoob
  • 499
  • 5
  • 23
0
votes
1 answer

How do I get ddsteps to insert Date & Time values in its test data sets?

Currently I am using DDsteps as a datadriven testing framework for my unit tests. It works quite well, except when inserting DateTime data into the database. Example data input row (stored in…
DefyGravity
  • 5,681
  • 5
  • 32
  • 47
0
votes
2 answers

Lists or Arrays as parameter in easytest-driven tests

this question is very easystest-specific (but i don't know a better place to ask). Is there a way to use parameters of type Array or List? Is there probably a separator character that could be used like this (excel table): testMethod doubleList …
dermoritz
  • 12,519
  • 25
  • 97
  • 185
0
votes
1 answer

soapUI DataDriven Test Fails On First Run

So I have the following request:
DarthOpto
  • 1,640
  • 7
  • 32
  • 59
0
votes
2 answers

Selenium Data Driven Testing with C#

I want to perform data driven testing in selenium using ASP.NET(C#),ajax and almost all the features of jquery. Can anyone give me the step how to perform data driven testing using C# or some demo through which I can perform my testing?
Dinesh Kanojia
0
votes
1 answer

Concatenating strings in DataSource for data-driven unit test

I am experiencing a strange problem with a data driven unit test. The data is stored in an xls-file. When I use the following connection string, everything works fine. [TestMethod()] [DataSource( "System.Data.Odbc", …
hofingerandi
  • 517
  • 4
  • 20
0
votes
1 answer

Coded UI testing a calculator

I have a Coded UI test on a simple calculator application in data driven mode. After adding an assertion, I am not getting my test result passed which I think is due to "." (the decimal point which is already present in Windows calculator…
nks
  • 61
  • 2
  • 12
0
votes
1 answer

Test Driven unit testing with stored procedure in VS 2010

I have a class (Not (DAL)) that get's data from DB and give it to me in required format(in specific class format). Now i need to write a unit test case, but TestContext Data row always return me single row. I want to fill TestContext by my stored…
Pavan Tiwari
  • 3,077
  • 3
  • 31
  • 71
-1
votes
1 answer

Getting as "Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null."

I am trying to run a page object methods by cucumber. I am getting error out with driver null NPE errpr. Could you please help. I created Page Object Model file. A feature file describing scenario outline. And then in Test, I am trying to call the…
-1
votes
1 answer

OledbConnection Invalid Arguments

I try to read Excel file in Selenium Webdriver C# but got Invalid Arguments at connection.Open() . What am I wrong? using System.Configuration; using System.Data.OleDb; using System.Linq; namespace LeTuanAnh_Training.TestDataAccess { class…
-1
votes
1 answer

How to read test data from JSON and CSV in the same Feature

I have a Feature whereby I need to read the sanity check from a JSON file and the bulk of the testing from a CSV file. I also need to validate the data in an an Amazon S3 bucket I have the following in the Background: form fields read…