Tag Info

Hot answers tagged

2

Data driven tests work well when you have a lot of test cases that can be expressed as points in a parameter space. Some advantages of data-driven approach are: Test cases are easier to add or remove than when they are expressed as code You duplicate less test code and consequently are less susceptible to code/paste errors in your test code Someone other ...


1

There are many, many approaches, each having its pros and cons when it comes to simplicity of reading, easiness of modifying data, easiness of modifying data schema (refactoring), easiness of parsing data, type of data you want to model. If you were I would experiment. I would pickup the simplest approach (properties) to see if fits your problem. Here's the ...


1

First of all:There is no best approach. There are just several approaches and you have to decide which one is your favorite. What is the best approach to make test data configurable ? Through XML file or properties file or any other way. But must not be hard coded. I like it to put the test data in properties files, read the data and put them ...


1

I would tend to disagree with the comment of not designing and just coding. As with any testing you should aim to plan and find issues in requirements Before writing code. Its harder to change things later! I am quite a fan of Page Object Model (POM) as an approach http://seleniumeasy.com/selenium-tutorials/page-object-model-framework-introduction ...


1

I do not claim to be expert, just try to do due diligence research before diving in, and use best practices, so... :-) IMHO start by trying to implement a pattern is wrong approach (trying to force pattern into solution). I start with "exploratory coding" and try to get the feeling what would be best approach (maybe after I have few years of experience with ...


1

Don't start with designing framework: YAGNI principle applies. Start coding. Implement tests, refactor common parts - and framework will emerge. Difference is, this framework will have only features you need. By definition, if you have to ask how to design a testing framework (don't already have skills to do it right), you should not try to foresee what you ...


1

Welcome, Aakash! TestComplete offers you two possible ways that can be used to create data-driven tests: DB Table variables (Database tables or queries, Excel files, CSV files) Table variables DDT program object How to perform data-driven testing: Create a TestComplete project Record an automated test Modify the Data-Driven Test and Assign Input ...


1

dzieciou is right, generating usefully broken XML cases you need to separate feeding in plain oldbroken XML and XML which breaks your schema (the application.) The latter is probably the most useful, because it is hardest to guard against, and a test program that generates valid xml using all the known elements and attributes your application recognizes by ...


1

Since this question was cross-posted to stackoverflow, I'll cross-post my answer: Unfortunately, the use of test templates more-or-less require that the data is hard-coded in the test case. However, the test template is not much more than a wrapper around a for loop. You could do something like this: | | ${database_rows}= | Run sql query | | ... | Select * ...



Only top voted, non community-wiki answers of a minimum length are eligible