Page tree
Skip to end of metadata
Go to start of metadata

Getting Access Key

The cloud platform gives you access to remote testing if you specify your username and password in the Desired Capabilities. But you probably don't want your password (or any password for that matter) lying around in your code. For this purpose, we created the access key. Specify the access key in the set of test capabilities to gain access to remote testing.

In the Experitest cloud platform, Click on your profile → Get Access Key. 

After the clicking the Get Access Key, in the displayed popup, copy the access key to the clipboard as shown below to obtain the Access Key.

Once you have obtained the access key, add it to the Desired Capabilities as shown in the code snippets below in different languages.

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with the appropriate URL in the code snippets below.

  • For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io/
  • For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com/
Java
String accessKey = "<Your Access Key>"
dc.setCapability("accessKey", accessKey);
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"),dc);
C Sharp
string accessKey = "<Your Access Key>"
dc.SetCapability("accessKey", accessKey);
driver = new AndroidDriver<AndroidElement>(new Uri("<EXPERITEST_URL>"), dc);
Python
accesskey = '<Your Access Key>'
self.dc['accessKey'] = self.accessKey
self.driver = webdriver.Remote('<EXPERITEST_URL>', self.dc)



Ruby
desired_caps = {
        caps: {
			accessKey: '<Your Access Key>',
		  appium_lib: {
              server_url: '<EXPERITEST_URL>',
            }
        },

Resetting Access Key


All users can invalidate their Access Key by using the Reset AccessKey feature from user profile page. Ongoing grid tests may fail after invalidating the old access key.

Log in to SeeTest cloud and click on 'My account' from the user profile at top right corner.

Click on the 'Reset AccessKey' button. This will invalidate old access key and create new.

Once the Access Key reset is successful, new Access Key can be retrieved from the 'Get Access Key' feature as shown above.