CrossBrowserTesting Support

Support

  • Product
    • Live Testing
    • Automated Testing
    • Record & Replay
    • Visual Testing
  • API Docs
  • Blog
  • Live Q&A
  • Start Testing
CrossBrowserTesting Support » Selenium Testing » TeamCity

TeamCity

Features

  • Running Selenium Scripts in Python, Ruby, Java, and CSharp on CrossBrowserTesting.com
  • Automated Starting and Stopping of the CrossBrowserTesting.com NodeJS local tunnel to test local and development webpages behind your firewall
  • Enable Test Views with links view videos and packet captures for Selenium scripts

Installation

via the interface

  1. Click the Administration.
  2. Click Plugins List.
  3. Click the Upload plugin zip.
  4. Add the zip file of the CrossBrowserTesting Plugin. Click Save.
  5. Restart the TeamCity server.

by hand (not recommended)

  1. Download crossbrowsertestingPlugin.zip.
  2. Save the downloaded zip file into your `<TeamCity Data Directory>/plugins` directory.
  3. Restart the TeamCity server.

Configuration

Environment Variables

The CrossBrowserTesting.com TeamCity Plugin passes your build step information to your Selenium scripts as environment variables. The exact syntax will vary depending on your scripting language.

Variable Description
CBT_USERNAME the username used on CrossBrowserTesting.com for Selenium Testing
CBT_APIKEY the apikey used on CrossBrowserTesting.com for Selenium Testing
CBT_BUILD_NAME the TeamCity Project’s name
CBT_BUILD_NUMBER the TeamCity Project’s current build number
CBT_OPERATING_SYSTEM the apiname of the selected Operating System
CBT_BROWSER the apiname of the selected Browser
CBT_BROWSERS an array of JSON objects containing the “operating_system”, “browser”, “resolution, and “browserName” of each configuration specified
CBT_RESOLUTION the name of the selected Screen Resolution

Build/Configure

Build Feature

  1. Configure your TeamCity Project
  2. Configure your Project Build (In Edit Configuration Settings)
  3. In Build Features, Select Add Build Feature
  4. From the dropdown, select CrossBrowserTesting.com Build Feature
  5. Input your CrossBrowserTesting.com User Name and API Key in the corresponding text boxes.
  6. Add the Operating System, Browser, and Screen Resolution that you want to run a Selenium Test on.
  7. Optional: Select Use Local Tunnel tests on webpages behind your firewall.
  8. Optional: Select Enable Test Results Pages.During your build, links on your sidebar will populate and allow you to interact with the test. You can view videos, snapshots, and network packet captures for Selenium Tests.
  9. Click Save.

Execute a Selenium Test

  1. Execute a Selenium Test just as normally would with TeamCity.
  2. For example, if you were running a script written in python on a Unix machine, within the Build Steps, select Add Build Step and Command line.
  3. Enter the command to run your script ie. “python your_selenium_script.py”
  4. Click Run to run the selenium test.

Output

Results from you selenium test will output in the Build Log for that build.

Related

Selenium Starting Guides

  • Python
  • Java
  • JavaScript
  • PHP
  • Ruby
  • C#
  • Selenium 101

More Help

  • Parallel Testing
  • Jenkins Integration
  • TeamCity Integration
  • Automation Capabilities
  • Local Testing

See Our GitHub Examples


 



Think you need a human?

Our customer success team will be glad to help you with your question.

Contact Support

Still need a free trial?

Try CrossBrowserTesting free for 7 days and see how we make testing easier.

Start Today

Want the latest tips?

Enter your email and we’ll send you tutorials and browser testing strategies right to your inbox.


Product

  • Live Testing
  • Automated Testing
  • Visual Testing
  • Local Testing
  • Integrations

Resources

  • Browsers & Devices
  • Blog
  • Webinars
  • Security
  • ROI Calculator

Support

  • Help Center
  • API Docs
  • Automation Docs
  • Schedule A Demo
  • Enterprise Request

Company

    • About Us
    • Contact Us
    • Careers
    • Terms of Use
    • 1-888-927-6973

© 2008–2016 CrossBrowserTesting.com, LLC. All rights reserved.