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 use data driven framework in cucumber to access external files such as excel or data base

I'd like to perform my tests using Cucumber + Excel to store my data. I don't want to keep my data stored on the procedure files. Is there a way to do this?
Brito
  • 67
  • 1
  • 14
0
votes
1 answer

Data Driven Tests with Coded UI in Visual Studio 2015 Error with TFS and MTM

I am trying to run a data driven test with MTM on other machines using a CSV file to drive the tests for login. I am receiving this error when I try to run the test: Error adding test case [343] to test run: Could not load file or assembly…
0
votes
3 answers

Data Driven Framework -- how to read and write in excel sheet using Selenium WebDriver with java

Here I'm using this code to read and I want to write out put on the same sheet.......I want to write results for every sys output according to putting output on relevant fields how to read and write the existing excel sheet? 1 How to write data into…
0
votes
1 answer

WireMock for datadriven mocks?

I would need a standalone server against which I can mock my REST endpoints. The requirements are: - needs to run standalone - needs to be able to respond with a specific response message based on the incoming request message Would WireMock be the…
user1340582
  • 19,151
  • 35
  • 115
  • 171
0
votes
1 answer

How to run the Selenium _Keyword Data Driven in c#?

Am try to run Keyword Data Driven , unable to get the action Keyword item from excel Ex(Save, Send Keys),how i get the keyword from excel and run visual studio C# ?
0
votes
1 answer

What is difference between TestNG and Keyword driven Framework?

What to answer if someone asks both TestNG and Hybrid(Data Driven and Keyword driven etc) are frameworks how will you differentiate both of them?
Lokesh
  • 29
  • 1
  • 5
0
votes
1 answer

How to explicitly exit Data driven test method in MSTest

I use Data driven testing feature in MS test framework. [DataSource] attribute specifies table. C# Method is marked as [TestMethod]. It works but sometimes I need to stop execution. For example, table has 100 rows. How to explicitly (prematurely)…
Vlad
  • 1,977
  • 19
  • 44
0
votes
0 answers

Data driven testing in selenium ide using data base

I want to write test cases in selenium ide which can take the data directly from database.Means I want to do data driven testing using all the data store in my database.Test cases could get the data directly from data base rather than getting from a…
0
votes
0 answers

Data driven unit test in combination with LocalDB not working in VSTS

I have a problem running data driven unit tests (MSTest) in VSTS. My situation is the following: In my C# solution I have a MSTest-test project which contains three test classes that contain data driven test methods. These methods used to work with…
0
votes
1 answer

Testing blocks in excel - Protractor (DDT)

I parse data through json from excel (using xlsx from npm). My question is: is this example best practice with jasmine framework ? My config : Protractor 2.5.1 + Jasmine 2.3.2. countRows = new req.ReadXLSX().nextTest(0, adspaceSheet); var foo =…
Kex
  • 93
  • 1
  • 9
0
votes
0 answers

Unit testing [DataSource(dataProvider,connectionString, dataAccessMethod)] not working for single value in xml

I am trying to run same test case multiple times using datasource.And for that I am using [DataSource(dataProvider,connectionString, dataAccessMethod)] attribute under [Testmethod]. It is working with two or more values in xml but not working for…
0
votes
0 answers

NUnit 3.2 TestSourceCase TargetParameterCountException

I am trying to upgrade from NUnit 2 to NUnit 3. And I built a Data-Driven-Helper to read test case data from several type of data files. I found that NUnit 3.2's TestCaseSource that can pass parameters can help improve my Data-Driven-Helper,…
LN.EXE
  • 59
  • 8
0
votes
2 answers

How organize assertions for testing data driven tests?

Consider an example: import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class DataProviderExampleTest { @Test(dataProvider="data") public void testDataProvider(int p1, String p2) { /* …
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
1 answer

Loading random number of input data points from XML file for MSTest

I'm trying to create a data driven test that calls a method multiple times with different input on each call. In this particular case, the test is verifying a class maintains a running sum of the total time. Here's the code under test: public Enum…
0
votes
1 answer

MSTest Data driven test not running all rows

I'm using VS2015, and writing tests in MSTest. It seems that MSTest doesn't run all rows in a data driven test for example, this is a sample test: //there is a XML datafile that has 1000 "rows", 1 to 1000 int x =…
Dawood Moazzem
  • 163
  • 3
  • 11