Skip to content

jeffzickgraf/VSTS-Starter

Repository files navigation

Perfecto VSTS Digital Demo

This project requires the use of Visual Studio 2015 or Visual Studio 2013.

This project requires the consumer to add an appsettings.config file next to the app.config file that will contain your credentials, the target Perfecto cloud, and whether wind tunnel is enabled. The filename appsettings.config has been added to the .gitignore file to prevent credentials from being accidently committed to source control.

<appSettings>
		<add key="PerfectoCloud" value="YOUR-CLOUD"/> 
		<add key="PerfectoUsername" value="YOUR-USERNAME"/>
		<add key="PerfectoPassword" value="YOUR-PASSWORD"/>		
		<add key="IsWindTunnelEnabled" value="true"/> <!-- if you have access to wind tunnel set to true, otherwise false. -->
</appSettings>

See the [Read-Me-For-Configuration.txt file for more details]VSTSDigitalDemoTests/Read-Me-For-Configuration.txt).

Additionally, you will need to provide your device identifiers in the SharedComponents/TestResources/DevicesGroup/ files.

 //TODO: Provide your device IDs eg. 125157DF53B1BA11F
 "devices": [    
    {
      "device": {
        "os": "windows",
        "osVersion": "7",
        "browserName": "Chrome",
        "browserVersion": "49",
        "name": "chrome",
        "isDesktopBrowser": "true"
      }
    },
    {
      "device": {
        "deviceID": "CA7EEEAADD92242C66A32807B538BDACFAA5A0DB",
        "os": "iOS",
        "name": "iPhone6s",
         "isDesktopBrowser": "false"
      }
    },

If using VSTS or TFS to kick off the ParallelDeviceExecutor, there is a Powershell script called RunExecutor.ps1 under the ParallelDeviceExecutor folder. This can be executed while passing in the following arguments: param([String] $assemblies = "", [String] $wherestatement="", [String] $baselocation="C:\a\1\s")

To call with named parameters, use the following (note: end the baselocation with a '' at the end):

RunExecutor.ps1 -assemblies "Your-Target-Test-Assembly.dll, Another-Assembly.dll" -wherestatement "cat = WebStarbucksTests" -baselocation "D:\your\working\build\directory\"

About

A starter project for VSTS/Perfecto demo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published