The Visual Studio project interface allows some additional coding options for the tests in the Test Studio project - you can preview the code of a step, or convert the whole test into code.
This article guides you through these options.
Use the Preview Code button to see the corresponding code for your Test Studio test.
In the context of Visual Studio project you can convert the whole recorded test to a unit test. The Generate unit test button converts the selected Test Studio test into a unit test of your choice. The Unit Test Template Selector dialog appears and lets you choose a template, i.e. a testing framework. If you have defined some rows of data in the Data Tab, it is converted to XML and placed in a file, which you specify for use by the selected testing framework.
The generation of a unit test creates a new test in the project using the selected template for unit test. While the original Test Studio test remains intact, changes made to it are not synced to the unit test. Likewise, changes made to the unit test are not synced back to the Test Studio test. A unit test cannot be converted back to a Test Studio test.
Since fully coded tests are harder to maintain, we recommend using this feature sparingly and only when absolutely necessary.
This conversion is a one-way process. You cannot convert the coded unit test back into a Test Studio test.
Also, we do not guarantee the converted test will run perfectly. Sometimes the code needs a little tweaking before it works (e.g. if you have coded steps or dialog handling that does not convert properly).