Creating exe for tests

6 posts, 0 answers
  1. Aswin
    Aswin avatar
    5 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    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.)
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 18 Dec 2012 Link to this post

    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
  3. Aswin
    Aswin avatar
    5 posts
    Member since:
    Dec 2012

    Posted 18 Dec 2012 Link to this post

    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.
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 24 Dec 2012 Link to this post

    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
  5. Aswin
    Aswin avatar
    5 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    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.
  6. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 01 Jan 2013 Link to this post

    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
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!