.NET MSTest
Installation
We need to include the MSTest kit by using:
Install a specific version of a package
Initialization
import:
Inherit the CbTest class and wrap the webdriver:
Applying CBStep Attribute in your test cases
Import:
Use attribute [CBStep] to describe your test case:
You can also use variables in the step description, to do that we'll put username in curly braces:
Create Binaries
Before uploading our project to CloudBeat, we have to create a binaries zip folder, in your project folder open cmd and run the following command:
a bin folder should be created, now go to bin -> debug and create a zip from net.6.0
Creating MSTest project in Cloudbeat
Go to projects tab and create a new project and choose MSTest - Binaries
Decide who will have accessibility to this project
Upload the binaries as a zip
Add assembly names and finish
And that's how you have a new MSTest project
Running Test Cases
Go to Cases under Testing tab, there you will see all your test cases
Select a browser to run your test on, save changes and run
You will see the results based on the [CbSteps] that were added in your project
Last updated