Last updated: Apr 23, 2019 11:59
by Nato Vasilevski
If you have been wondering how to create your first Perfecto Project and you have been looking for a step-by-step guide, this article is for you.
Please do not forget to hit the “Like” button if you found what you have been searching for. Thank you in advance!
- Install Microsoft Visual Studio. For Demo purposes I have installed the Community Edition from here. (https://visualstudio.microsoft.com/vs/community/)
- You might need to install the Dev Pack for .NET from here (I went for 4.7.2, which was the latest version at the time )
- Install Perfecto Lab for Visual Studio from here (https://marketplace.visualstudio.com/items?itemName=PerfectoMobileInc.PerfectoLabForVisualStudio)
Verify you have you have added the repository for the Extension from Tools/Extensions/Online/Perfecto (If you don’t see Perfecto like below, please open a case here) and you will be able to install the Extension:
- After you have installed it you will be able to see it among the installed Extensions:
After you have it deployed it’s time for you to create your first Project.
- Start by selecting File/New/Project…
- If you had installed the Perfecto Extension correctly you will be able to see the both Perfecto Project types. This time we will chose Appium:
- Enter your cloud credentials:
- Wait a bit:
- Aaand voila you have a new Project:
In order to run your Project, you will need some more cadence:
- Select packages.config. Here you have a list of all the packages needed for your project.
It’s very important to sync the .NET version with the one you have installed in your previous steps as you will get an error like this one:
The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
If you had .NET 4.7.2. you should change the targetFramework="net40" to targetFramework="net472"
Than restart your IDE and you will get this prompt:
Click OK and you are ready to start:
Select AppiumTest.cs and start selecting your desired capabilities as per this article
Note: If you don’t want your test to end up in the CI Dashboard, you can simply comment out the following section:
A few lines below you will find a line saying “// write your code here”
This is where you can start creating Your Test.
Note: In order to run the Test go to Test/Run: