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

Export to Visual studio 2010

8 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 17 Dec 2010, 05:00 PM
Hello. I have a scope of tests in QA edition. I downloaded WebAii Testing Framework Free Edition. I connect it to Visual Studio 2010. Then I export all my tests from QA edition to visual studio 2010. How can i launch them?

8 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 17 Dec 2010, 05:06 PM
Hello Igor,

Once you convert a WebAii test into code (i.e. you select MSTest after clicking "Convert all steps to code") you have a Microsoft coded unit test. Please follow these MSDN instructions for how to run a Microsoft Unit Test.

Greetings,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Igor
Top achievements
Rank 1
answered on 17 Dec 2010, 05:12 PM
Sorry, but I don't understand how to convert a WebAii test into code. Where can I find this: you select MSTest after clicking "Convert all steps to code"? Thank you for the help.
0
Cody
Telerik team
answered on 17 Dec 2010, 05:21 PM
Hi Igor,

My apologies. I misread your original question and gave incorrect information.

The purpose of the Export feature is to create a Visual Studio project that you can then load into Visual Studio and work it in the Visual Studio IDE. You need WebUI Developer Edition installed before you can load and work with the exported Visual Studio project.

When you Export a test project to Visual Studio from the QA edition, it creates a Visual Studio .csproj file. You can double click on this file to load the test project into Visual Studio. In addition, at the end of the Export operation you are prompted by the QA Edition if you want to launch Visual Studio and load the freshly exported test project. If you click Yes, Visual Studio will start and load the project in its IDE. The QA edition will remain running after starting Visual Studio.

BTW, you do not need to Export the test project from the QA edition in order to execute tests from the command line, if that's all you're trying to do.

Kind regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Igor
Top achievements
Rank 1
answered on 17 Dec 2010, 06:43 PM
Sorry but I don't understand. I have a scope of tests in QA edition on c#. I need to run all tests not from QA edition but in Visual Studio 2010. How can I do this?
0
Cody
Telerik team
answered on 17 Dec 2010, 08:32 PM
Hello Igor,

Why do you need to run your tests in Visual Studio? Would simply running them from the command line meet your needs? You can use our ArtOfTest.Runner command line utility that comes with the QA Edition to run tests from the command line. See the documentation here and here for instructions how to do that.

To be able to run .aii tests within Visual Studio you must first install WebUI Test Studio Developer Edition.

Kind regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Igor
Top achievements
Rank 1
answered on 20 Dec 2010, 09:40 AM
To be able to run .aii tests within Visual Studio you must first install WebUI Test Studio Developer Edition.

Cody, sorry that I disturb you but I have such task. To run all tests from Visual Studio. I have a scope of tests created in QA edition WebUI studio. I need to download developers edition. And what will be the next steps. Could you give me more detailed information. Thanks for the help.
0
Igor
Top achievements
Rank 1
answered on 20 Dec 2010, 11:21 AM
I setup developer edition. Open demo tests from Studio. Add one my test(.aii, .resx, .aii.cs) from QA edition to Visual studio 2010.  Is it correct?
P.S. I see that demo tests e.g. CodedTest contains only .aii and .resx files but do not contains .aii.cs with C# code.
0
Cody
Telerik team
answered on 22 Dec 2010, 12:41 AM
Hello Igor,

Adding one of your tests from your test project in QA edition to a demo test is one way of doing it. It's not what I would do. I would use the Export to Visual Studio function in the QA edition to create a new Visual Studio project then open that newly created project in Visual Studio. This will carry all of your existing tests into your new Visual Studio project and not depend on an existing demo test.

The CodedTest sample does contain two coded steps and a .cs file along with it. If you're not seeing this then something isn't right with the installation.

Just to be certain, you do understand running tests in Visual Studio is no different than running tests in QA Edition. The tests run the same and you get the same results either way. I don't see any advantage to converting your test project to Visual Studio and then running them in Visual Studio when you already have something working in QA edition.

Greetings,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Igor
Top achievements
Rank 1
Answers by
Cody
Telerik team
Igor
Top achievements
Rank 1
Share this question
or