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

Custom List Results

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 30 Mar 2017, 06:10 PM

Not sure if this is even possible to do what I'm trying to accomplish.

Currently I have different databases that our application connects to for different scenarios. This is accomplished using a single test script for each database, with some coded steps to handle the change over.

In our test lists, each list starts with one of these tests. Is there a way to prevent any results from this test from being written out/added to the test list results file?

I'd be perfectly content with a coded solution if such a thing exists.

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 04 Apr 2017, 02:25 PM
Hi Aaron,

Thanks for contacting us with detailed description of the requirements. 

Test Studio allows you to include custom coded solutions before and/or after test execution. The OnAfterTestCompleted() method could be overridden to create an external log file for example. 

Since you are changing the data sources I would like to share with you the enhanced extensibility support for test execution that Test Studio could offer you. In an execution extension you could customize plenty of your workflow. Since you mentioned you are changing the data sources I would like to bring your attention to the bottom of the article and the listed sample code how the data source could be changed in run-time. 

Please have a look on the shared resources and give them a try. In case of any further queries do not hesitate to contact me. Thanks in advance for your time and cooperation! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Aaron
Top achievements
Rank 1
answered on 04 Apr 2017, 08:25 PM

Thanks this was definitely a push in the right direction!

Another question. Is it possible to use RunResult.SaveToResultFile(...) to overwrite the original test result file that is created after the test list is finished running?

The implementation that I've started with is saving it to a different folder right now, but ultimately I'd like to just completely overwrite the original from that test list running.

Let me know if this is maybe a better question for a different area of the forums.

0
Elena
Telerik team
answered on 07 Apr 2017, 12:11 PM
Hi Aaron,

I am glad the shared resources will be helpful to you. 

You should be able to overwrite the results file in the OnAfterTestListCompleted method which is part of the Execution extension. It is called after the results file is saved so you should be able to overwrite it. Please give it a try and let me know if you need any assistance on that. 

Thanks a lot for your time and cooperation!

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