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

Call WPFTest from Webtest

2 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akbar
Top achievements
Rank 1
Akbar asked on 06 Jun 2011, 07:43 AM

Hi Support/All,

I have a scenario where i need to run simulator which is desktop application and web application simultaneously. Below is the brief description of scenario:

Set a value in simulator and then send it across to web based application via simulator. Based on the value which I send from simulator, I then need to perform some validation on web based application.

Clarification: Can we call WPF test as ‘Test as Step’ with in Webtest. Is there any alternative which you can suggest?

(Note: Test List option will not be appropriate as I have lots of validation which needs to be tested one after another based on different value which i send across from simulator)

Cheers

Akbar

2 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 06 Jun 2011, 08:59 AM
Hello Akbar,
    unfortunately you can't call a WPFTest inside a WebTest. It can be done in a coded solution but it will be a bit complex.

One simple alternative I would suggest is to create a batch file which runs the WPFTest with ArtOfTest.Runner.exe. You can set ArtOfTest.Runner.exe as an environmental variable as seen here:
http://blogs.telerik.com/christophereyhorn/posts/10-07-01/a_look_under_the_hood_at_webui_test_studio_s_execution_engine_part_1_of_2.aspx

Once you have the batch file you can start it from inside a coded step in your WebTest as seen in this tutorial:
http://stackoverflow.com/questions/1117792/how-to-start-a-bat-file-through-c-code

All the best,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Akbar
Top achievements
Rank 1
answered on 10 Jun 2011, 05:24 AM
Thanks for the suggestion It did worked out.

For those who want to run the batch file fromcoded step, you can also use following code:
system.diagnostics.process.start("C:\.....\batch\test.bat")

Cheers

Akbar
Tags
General Discussions
Asked by
Akbar
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Akbar
Top achievements
Rank 1
Share this question
or