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

Creating exe for tests

5 Answers 679 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aswin
Top achievements
Rank 2
Aswin asked on 18 Dec 2012, 12:35 PM
Greetings !

I have created a test scenario for Silver-light powered site. I would like to know, is there a possibility to generate standalone executable files for the Test Project. So that I can able to run the test simultaneously in several machines.

Any kind of solution/suggestion is greatly Appreciated.
(I exported them to Visual Studio 2010.)

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 18 Dec 2012, 03:34 PM
Hello Aswin,
yes, this is possible.

Check out the following article:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/test-as-application.aspx

This will tell you how to "encapsulate" your test into a single console application. I believe this is the functionality that you're looking for.

If you're not looking for this "encapsulation", if you're just looking to launch your test from an application - you can do in a different way. You can create a batch file to execute your TestLists. In this way you can execute TestLists from different projects in a queue (one after the other). You can use our test runner: ArtOfTest.Runner.exe:

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/command-line-test-execution/artoftestrunner.aspx

Here's an example of what commands to execute TestLists might look like:

"c:\Program Files (x86)\Telerik\Test Studio 2012.1\Bin\ArtOfTest.Runner.exe" list="C:\Users\djambov\Documents\Test Studio Projects\R2_AT_1114\TestLists\1.aiilist"
 
"c:\Program Files (x86)\Telerik\Test Studio 2012.1\Bin\ArtOfTest.Runner.exe" list="C:\Users\djambov\Documents\Test Studio Projects\R2_AT_1114\TestLists\2.aiilist"

I hope this helps.

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Aswin
Top achievements
Rank 2
answered on 19 Dec 2012, 05:09 AM
Thanks for the Reply. I just opened the sample console project in Visual Studio 2010 and executed, and got these errors:

Error 1 Value of type 'ArtOfTest.WebAii.Core.BrowserType' cannot be converted to 'ArtOfTest.WebAii.Core.Settings.WebSettings'.

Error 2 Value of type 'String' cannot be converted to 'ArtOfTest.WebAii.Core.Settings.WpfSettings'.

Moreover I am looking for windows form application which contains a form and a button which executes the test. Thanks again.
0
Stoich
Telerik team
answered on 24 Dec 2012, 01:05 PM
Hi Aswin,
these seems to be error related to your code. Would it be possible for you send us your project so that we may examine your code and identify potential errors causing this problem.

I can provide you with a private account so that you don't have to share your project on a public message board if necessary.

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Aswin
Top achievements
Rank 2
answered on 27 Dec 2012, 09:46 AM
Yes I am ready to send my Project File. I'll be very grateful if I'm explained with the steps to convert my Project into EXE file using Visual Studio Express 2012. Please send me a private link to share my project.

Thanks a lot.
0
Konstantin Petkov
Telerik team
answered on 01 Jan 2013, 12:29 PM
Hi Aswin,

I'm afraid there is some miscommunication and I don't think you need to send the project. The sample you're running is simply outdated (we need to fix that!).

Please replace the Settings constructor in the code line throwing the errors with the default one:

Manager myMgr = new Manager(new Settings());

That should get rid of the error.

Note the test fails for me, however it's specific to the application which has changed. The purpose of the sample console application is to guide you how to benefit from this option and adjust it according to your needs.

Please let us know if that is what you are after or if you need further assistance. Thanks!

All the best,
Konstantin Petkov
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Aswin
Top achievements
Rank 2
Answers by
Stoich
Telerik team
Aswin
Top achievements
Rank 2
Konstantin Petkov
Telerik team
Share this question
or