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
2 answers

how to put wait command in selenium testng

When running the below code in TestNG and WebDriver, the testcase is failing. Let me know if the implicit and explicit wait is correctly implemented. public class QCEntry { private WebDriver browser; private String baseUrl; …
RM123
  • 3
  • 1
  • 5
0
votes
0 answers

Webtest in visual studio

I need to perform a webtest for online webservice which adds two numbers and display the result, here now, i need to provide input from a csv file (excel sheet) like 2 columns a and b with 3 or 4 values each, i need to perform webtest and print the…
srinath
  • 1
  • 1
0
votes
1 answer

Java TestNG with Data Driven Testing Across Multiple Tests

I have a series of stores that I am testing in an ecommerce platform, and each store has a series of properties that I am looking at automating a test for. Is it possible to have a data provider that gives data across a test suite instead of just a…
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
0
votes
1 answer

How to use class in Groovy for SOAPUI

I would like to use SOAPUI Groovy property for data driven testing. I am able to run the script for Once but while I am trying to use this inside class as OOPS Showing some error. It might be a GroovyUtils scope issue. Please provide solution for…
Error Hunter
  • 1,354
  • 3
  • 13
  • 35
0
votes
1 answer

Coded UI - Single datasource for multiple testmethods

So, I have say 3 TestMethods. I attach the same datasource to each, then run with 5 rows of data. I get 5 iterations of TM #1 followed by 5 of TM #2 followed by 5 of TM #3. 11111 22222 33333 What I'd prefer is to have is an iteration of all 3 TMs,…
rabbit_rebozo
  • 25
  • 1
  • 2
0
votes
1 answer

Data driven unit test breaking entity framework connection

I have an application that uses entity framework. I am writing a unit test in which I would like to use data driven testing from a CSV file. However, when I run the test, I get an error that the sqlserver provider cannot be loaded: Initialization…
dayneo
  • 482
  • 5
  • 12
0
votes
1 answer

What is the pendant of NUnit TestCaseAttribute for MS Test

What is the pendant of the NUnit TestCaseAttribute for MS Test? see this sample: [TestCase("Authorization", "Basic", "test@gmail.com:Mypassword", HttpStatusCode.OK)] [TestCase("Authorization", "bASic", "test@gmail.com:Mypassword",…
Pascal
  • 12,265
  • 25
  • 103
  • 195
0
votes
0 answers

Data driven Framework Webdriver

I automated following scenario : public void test() throws Exception { String home_logo_url="158321";//This Value is to bet get from Excel String enough_talk_promo="1057406"; System.out.println("Check for home_logo_url"); …
0
votes
1 answer

MTM missing Error message for data driven tests

I have a suite of integration tests that I run nightly through TFS's build/test agent framework. When tests that are not data driven fail, then I can examine their Error message in MTM via Test | Analyze Test Runs. However if the test is a data…
Sean B
  • 11,189
  • 3
  • 27
  • 40
0
votes
0 answers

in datadriven, how to rerun failed tests(rows in excel) alone

I have dataprovider where it reads excel file , each row as one test case data, when I ran this testng test which uses dataprovider for data. Is there a way to run only failed tests(in the excel which row data gets failed that rows) alone?
0
votes
2 answers

How to specify datasource in data-driven unit test?

I have written a data-driven unit test and now I need to specify the data source for the unit test. The unit test is written in C# with MS Visual Studio. My data source is an excel file with a sheet named "TestData". My code for data source is as…
Mary June
  • 139
  • 4
  • 19
0
votes
0 answers

Data driven gitflow tests

Can provide a datasource for gitlow tests? I don't want t use scenario outlines but I want to be able to run each specflow test with different configuration. Is it possible?
Artur Shamsutdinov
  • 3,127
  • 3
  • 21
  • 39
0
votes
2 answers

Input from CSV file to a text field in Web C# without using UIMap/Recorded code

I am a beginner in coded UI testing, coding isn't my strong suit. I want to ask you guys this with the simples answer possible. Let's say I have a automated script in C# that opens a browser google.com Searches for a string value in Google If I…
Firaun
  • 369
  • 1
  • 5
  • 21
0
votes
0 answers

Issue Foreign Characters in CSV file used for DataDriven CUIT in Visual Studio 2013

I'm making a CUIT in Visual Studio 2013, making it Data-Driven using a CSV file. the CSV file contains this: Materiale, MaterialeTykkelse, Højde, Bredde, Dybde, KasseBæreevne, Diameter, Længde,…
0
votes
1 answer

Spock - data table for expected output

Reading http://spockframework.github.io/spock/docs/1.0/data_driven_testing.html, it seems that data tables are a convenient, readable way to structure test inputs. I'd like to structure my test output in a similar way. I have a method under test…
jaco0646
  • 15,303
  • 7
  • 59
  • 83