![]() Outputting the TeamCity Session ID to stdout Īs part of the post-build activities, the Sauce plugin parses the test result files to detect lines in the stdout or stderr containing the format: The unique tunnel identifier used by the Sauce Connect Proxy, if enabled The build name to use with Sauce Labs jobs TeamCity Environment Variables Variable The access key for the user used to invoke Sauce OnDemandĪ JSON-formatted string representing browsers you selected for the job configuration The user name used to invoke Sauce OnDemand The initial URL to load when the test begins The version number of the selected browserĬontains the operating system, version and browser name of the selected browser The operating system of the selected browser Sauce OnDemand Environment Variables Variable If you're using Protractor to run your tests with TeamCity, ensure disableEnvironmentOverrides is set to false in your config.ts file (this is the default setting) to prevent environment variables from being overridden by that file. Using environment variables in your configuration file allows you to maintain the values of properties in a single source and then reference them throughout all your jobs, ensuring that, if a modification needs to be made, it only needs to be made in one place in order to take effect in all references. Click the Job ID link to view the test report, which lists the steps performed the test and includes a video of the test.When the build completes, click Results and choose the Sauce Labs Results tab.From the TeamCity dashboard, click Run.Select the operating system and browser combination you want to test against.Select Enable Sauce Connect if you want to launch an instance of Sauce Connect prior to running your job that will close upon completion of the job (for use in private network environments in order to establish a secure connection to the Sauce platform).Enter your SAUCE_USERNAME and SAUCE_ACCESS_KEY.Click Add build feature and select Sauce Labs Build Feature.On the General tab, choose Create build configuration.Fetch URL: (use the sample Java/JUnit test framework).Select the VCS Roots tab, click Create VCS root, and enter the following field values:.For Name, enter SauceDemo (populates Project ID field with SauceDemo.From the TeamCity dashboard, choose Administration and click Create Project.Copy the ZIP into your TeamCity ~/.BuildServer/plugins directory and extract the files.Ĭonfiguring a Project Create the Project .Download the Sauce OnDemand Plugin for TeamCity ZIP file.Use this documentation to manage your Sauce Labs tests within your TeamCity Java project. TeamCity is a continuous integration tool suite by JetBrains.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |