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

shall we copy excel on all the machines of selenium grid

I am facing a problem. I am good in selenium webdriver. Now i wish to run my datadriven test cases on mac,linux and other machines. my window machine will be my hub. shall i need to copy excel files of my data driven test cases on each machine(say…
0
votes
1 answer

how send multiple request in soap ui using groovy

I have to run xml request in soap ui with variable.as I understand it is possible with using groovy script. My variable ($variable) should be like: for (i = 0; i < 5; i++) { createResult(34620000+i) } Request looks like: SOAP-ENV:Envelope…
khris
  • 4,809
  • 21
  • 64
  • 94
0
votes
1 answer

Data driven load testing with Visual Studio - where are web tests generated?

I have set up a Web Performance Test and Load Test project in Visual Studio 2013 that uses data driven web tests based on a local SQL Server data source. Eventually I would like to set up a test controller and test agents in order to distribute the…
0
votes
1 answer

Get a List on TestInitialize and use it on Data driven test case

I am writing a unit test case to get a list of files from an excel sheet and extract some data from them. following this article : http://www.codeproject.com/Tips/629895/Data-Driven-Testing-by-Excel-Named-Region [DataSource("System.Data.Odbc",…
SJMan
  • 1,547
  • 2
  • 14
  • 37
0
votes
1 answer

How to link multiple columns to 1 variable in Data driven automation of ranorex

Consider following example - There are 2 columns A) Company Name and B) Employee Name. One Company can have multiple Employee names. So How do perform Data driven automation in this case as it allows only 1 column to link to 1 variable. e.g. Column…
0
votes
2 answers

Unit tests - refactor to share data between tests in C#

I am currently trying to refactor some unit tests, because they contain too much hard-coded data. The class structure is the following: public class BaseClassValidator { [Test] public void TestAddress(){ Address a = GetAddress(); if…
Markon
  • 4,480
  • 1
  • 27
  • 39
0
votes
1 answer

Selenium WebDriver - Datadriven testing

I am testing a website using Selenium Webdriver. Eclipse has to fetch username from excel. When the Username data in excel is xyz my test enters the username value twice, xyzxyz, into the form. How can I fix it so that the data is entered only…
0
votes
1 answer

How to do Data driven testing in SOAP UI for xml having CDATA (one xml node having many values or child nodes)

I am doing dat driven testing in SOAP UI tool. I am using an excel sheet where I have placed data.I am fetching data in SOAP UI tool using DATASOURCE and DATASOURCE LOOP steps.I am able to do this successfully if the xml node had single value in the…
mona
  • 151
  • 2
  • 2
  • 8
0
votes
1 answer

Adding test methods dynamically using decorator

I've been using DDT to parameterize my tests with great success for the past few months. My issue now is that I can't seem to inject a list variable as my data source. Doing so seems to confuse DDT causing it to not parameterize my tests. I started…
self.
  • 1,612
  • 4
  • 18
  • 35
0
votes
1 answer

robotframework data-driven tests using external data source

How to create a data-driven test using robotframework based on the following: test data are stored in a separate text file. the test data file contains test data for multiple testsuites. common keywords are store in a resource file. This is my…
0
votes
0 answers

How to use external data source (text file) for robot framework data-driven test?

Based on the example below. - Is it possible to put testcases part in a text file? - How? ----------------------------------------------------------------------------------------------------------------------------------- *** settings *** …
0
votes
1 answer

Coded UI tests - run multiple tests

I have following problem. I need to run 10 tests in a row - driven by excel workbook. Each row is one test case. My problem is when I add the following line: [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel…
0
votes
1 answer

How to convert xls to Collection with Apache POI?

I want to make a paramterized junit test using @RunWith(Parameterized.class) and @Parameterized.Parameters public static Collection testdata() { return Arrays.asList(new String[][] { { "inParam1", "inPAram2",…
Bastl
  • 2,926
  • 5
  • 27
  • 48
0
votes
1 answer

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 organisation I work for wants to use data held…
0
votes
0 answers

Data driven excel 2013 with VS 2013

i'm trying to connect to my excel file to get the data to my test unit in VS 2013 I have Office 2013 (it's a new computer) this is my App.config:
Dkova
  • 1,087
  • 4
  • 16
  • 28