Wednesday, March 4, 2020

Convert/Export Recorded Web, Android & iOS Tests to Java & C# with TestProject


Prerequisites:
1. Sign up: Open a browser  -> Visit TestProject and sign up
2. Activate your TestProject A/C: After signup go to your email and activate account by clicking 
    the link provided through your email
3. Login: Go to TestProject -> Click Login link at the top right corner and log in
4. Get TestProject Agent: Mouse over Agents menu item and download agent for your preferred
    OS (Windows, Linux, Mac)
5. Install, Launch and Register Agent: Install & launch Agent -> Register it
6. Record test: Record your desired tests by following the instructions from the link below:

The following is my recorded tests of Google search:

Now is the time to export your Recorded Tests to Code (Java or .NET C#) ...

Export recorded test to Java or .NET C#:

1. In order to export recorded tests to code, 1st step is to click the Three Dots at the right corner of
    your test and choose to “Generated Code” for the test you want to export as the screenshot as
    below:

2. The following option will be displayed:

3. Select Java or C# as programming language and select your preferred browser (such as Chrome,
    Edge, Firefox, IE, Safari) -> Click Generate button as shown in the screenshot above.
4. Save As option will be appeared for saving the exported code as below screenshot:

5. Now select your desired location -> Click Save button as above screenshot. Click OK from
    Generate code pop up.
6. Extract the zip file you saved (Say, Web_Test_2-My_Test_2-2020_03_02_12_25.zip).
7. Open the extracted code in your preferred IDE. Such as
    for Java you can use Eclipse, IntelliJIDEA.
    for .Net C# you can use Microsoft Visual Studio.


So, You can try TestProject for easier recording your tests as well as to convert your preferred programming language for making flexible & customizable.