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 input text into MathML editior using selenium/webdriver

I am Using following code.. driver.switchTo().frame("editML"); WebElement editor = driver.findElement(By.className("#editML")); JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; jsExecutor.executeScript("arguments[0].innerHTML =…
0
votes
1 answer

How to use a list of values for a parameter?

I am using the test plugin for VS 2012 (although have just installed 2013), and need to know: Is it possible to have a parameter pass a different value from a selected list while load testing? I have used the sample load test located here:…
0
votes
1 answer

Load data for Scenario Context from CSV file

I use SpecFlow with Coded UI to create automated functional tests for a WPF application. I would like to create a Scenario Outline which loads Examples from a CSV file. Scenario: Scenario Outline: Demo_01 When I press Login button When I…
LeeWay
  • 793
  • 3
  • 16
  • 28
0
votes
0 answers

Pros and cons of Data Driven Unit Testing (Excel data source)

Since last few days I was working on Data driven unit testing. I used Excel spreadsheet as data source. Although it decreases the redundant code in my test method (instead of writing all test data in test method and calling same function everytime)…
IFlyHigh
  • 546
  • 2
  • 9
  • 20
0
votes
1 answer

Selenium - Results while using Python HTMLTestRunner/TextTestRunner within a loop

My apologies if this is not clear at any point (or if the vernacular isn't quite right) but I will do my best! First time actually posting in a forum ;) ... Any help from those in the know would be greatly appreciated. I am using Selenium with…
user2982308
  • 1
  • 1
  • 1
0
votes
0 answers

" Method is not present on Selenium interface: loadTestData" in selenium IDE for Data Driven testing

I am trying to execute data driven testing using selenium IDE. I downloaded all the three extensions that are told step by step and uploaded to selenium IDE core extentions in the same order as guided (C:\Selenium\extentions\goto_sel_ide.js,…
0
votes
2 answers

Selecting combo box values

I'm trying to implement a data driven test approach using Selenium (Python) but I've run into an issue selecting dynamic values from multiple combo boxes. I'm currently aware of one option, using method driver.execute_script("JAVASCRIPT TO GET COMBO…
0
votes
1 answer

DataDriven testing with TestNG using Apache POI in Selenium WebDriver

I am new to TestNG framework. Please guide how to parameterise the test cases using Apache POI(Excel). I have a code to read from second row from Excel. public class spreadData { private transient Collection data = null; public spreadData(final…
Vish Shady
  • 327
  • 1
  • 5
  • 15
0
votes
1 answer

Data Driven testing using excel sheet for the content on different web pages using JAVA in Selenium WebDriver

I have a requirement to test the large list of webpages for specific website and have to verify i) if the content on all provided webpages is present or not? ii) the content is neither duplicated as well on that particular page. I need to automate…
0
votes
1 answer

datadriven testing using selenium webdriver

Im using selenium webdriver for automation testing in my company to automate webapplications, but im using id, xpath and all directly without following any framework , so now im in some prob and have to design the DATA DRIVEN FRAMEWORK . Please…
user2537899
  • 9
  • 1
  • 2
0
votes
0 answers

How to handle wait during a datadriven test using testNG in a webdriver script

This is my scenario, i use webdriver with testNG for doing data driven test. I am observing that the data i am 'seeing' in web app which is provided by @dataprovider is missing some value. For exg if i have an array as {"1","2","3","4","5"}, i am…
Moshe George
  • 310
  • 1
  • 3
  • 15
0
votes
1 answer

How to create DataSource file outside main test method

[TestInitialize()] public void MyTestInitialize() { XmlTextWriter writer = new XmlTextWriter("DataFile.xml", Encoding.UTF8); writer.Formatting = Formatting.Indented; writer.WriteProcessingInstruction("xml",…
Pritam Karmakar
  • 2,773
  • 5
  • 30
  • 49
0
votes
1 answer

How to get current Test Case ID in the mtm for data driven test

I use data driven test and coded ui test. I want to capture current Test Case ID that's current being run in the MTM. How can I do? For example; [Datasource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "http://alm...", "?????", …
Erdem Azaklı
  • 255
  • 1
  • 8
  • 27
0
votes
1 answer

Exception while try to get jmeter directory

I would like to start jmeter load test via console but it's Data Driven Load Test, so I need to read some information from csv files. I found a solution to include into User Parameters row to get the path to the place where the script was…
ShurupuS
  • 2,923
  • 2
  • 24
  • 44
0
votes
1 answer

How do you get the iteration's data from TestContext in data driven tests?

How can I get the data from a row in the current running test? this answers how to get the iteration number ie 0,1,2.. of the running test: int currentIteration = TestContext.DataRow.Table.Rows.IndexOf(TestContext.DataRow); However, I would like to…
JohnZaj
  • 3,080
  • 5
  • 37
  • 51