This is a migrated thread and some comments may be shown as answers.

Keyword driven test best practice?

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cal
Top achievements
Rank 1
Cal asked on 21 Apr 2017, 02:56 PM

What is the best practice to do keyword driven testing in test studio?

My first thought was to create many different small fragmented tests which together can be put into a larger test. For example a test for "login" another for "open order registration"  "add..." "close..." etc

Then in the test list i would add all the tests in the order i want them to create the complete test.

 

But it seems to me now that each test i run in the test list should be complete itself, and i instead should "import" other tests into that complete test with "test as step".
Is that correct? If that is the case why would i have severel different tests in a test list?

3 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 24 Apr 2017, 03:29 PM
Hi Cal,

Thank you for your interest in Test Studio.

If test in a test list depends on a previous one (for example - when the browser is closed the login session is lost) there is a simple solution. Try to open the test list settings and set in the Web tab - RecycleBrowser option enabled. It will not close the browser instance from the previous run and next test will be executed there.

I hope this answers to your question.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
ca
Top achievements
Rank 1
answered on 17 May 2017, 09:18 AM

But I am creating a WPF test. So it seems my best bet it to make smaller parts of test and then create a test that has all the smaller parts put together via creating "test as step"
Then run that test in a test list

Like the attached screenshot

0
Nikolay Petrov
Telerik team
answered on 19 May 2017, 12:26 PM
Hi Cal,

In case of WPF automation to keep the application open on each test run the approach you found is the only one available. When using test as step all test included in the active test would be executed in same instance of the app.

I hope this answers to your question.

Kind Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Cal
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
ca
Top achievements
Rank 1
Share this question
or