Calculator is a sample app which is being tested. Click here for details of Calculator.
This package sample includes one functional test project: CLITest. Command-line interface Tests is a sample test project that runs and validates basic command line scenarios on Calculator application, using MSTest framework.
A Functional test executes your uploaded test script(s) on your package. The scripts are run in the sequence you specified and a failure in a particular script will stop subsequent scripts from executing.
To build the test cases, you need to install:
To be able to develop new test cases, what else you need:
- Microsoft Visual Studio 2017 or later
Enter Tests folder and run build.ps1 in PowerShell to build, then find the binaries under drop folder.
- Prepare the package binaries
- Enter Package folder, create a bin folder and copy calculator.msi to bin.
- Create a TestBin folder under bin, build CLITest and copy all the files under drop folder to TestBin.
- Zip the package
Enter Package folder, run the following PowerShell command to zip a Test Base package.The folder structure inside the zip folder that gets created is as follows:Compress-Archive -Path .\* -DestinationPath package.zip|-- bin | |-- calculator.msi | |-- TestBin | | |-- <test binaries> |-- scripts | |-- functional | | |-- install-app.ps1 | | |-- run-test.ps1 | | |-- setup-test-env.ps1 - Upload to Test Base service
Follow this guide to upload this zip package.
The order of the scripts are as follows:- scripts/functional/setup-test-env.ps1
- scripts/functional/install-app.ps1
- scripts/functional/run-test.ps1