What will you learn in this lecture?

In this video, we will learn how to find Sauce Labs account info. In the previous tutorial, we went learned about the different desired capabilities.

How to Find Sauce Labs Account Info

There are two more capabilities that we need to pass in order for our sauce labs to work. I want to you to take a look at line 54 in line 56 online 54. We need to set a capability that specifies our sauce labs username. So you literally passing this string and then you have to pass and a value for your Sauce Lab’s username.

What I’ve done is I’ve actually stored my sauce labs username and sauce labs password in my environmental variables. You know the system environmental variables right if I come here and do environment added the environmental variables I’ve placed them in there.

I don’t want to show you them because if I open them you’ll be able to see my sauce username and sauce access key the access key is what sauce labs provide you with your account. It’s a unique access key that allows you to run sessions on that account. I really don’t care about my username.

The access key is what I don’t want to share simply because I don’t want you using up my enjoyable automation testing minutes because I want them all to myself. I’m sorry I’m greedy like that. So that’s why I put them in environmental variables. I can easily share them with you and you if you do they can easily share this with your friendly automation engineers on your team and you each can have your own accounts. So the question is Where did I get these values.

Well, let me show you that as well.

So in the sauce labs dashboard over here what you can see is this little drop down. I’m going to click this drop down and go to my account when I click my account. You can see that over here on the left-hand side. I have my username. This is what I copied and pasted into my environmental variables.

And then if I want to know the access key that is right here if I click this button it will show and I can click this button right here to copy it. And again I pulled that into my environment variables so using those environment variables I passed them back into my tests back into my test here and now with all of that set I got to pass on the capabilities down here specifying the environment and I saw slammers account so that everything can running sauce labs. So let’s go ahead and run a test and see how that looks.

Next Tutorial

In the next tutorial, you will learn how to run tests in Sauce Labs.

What will you learn in this course?

This course is an introduction to Sauce Labs with Selenium webdriver.

Taught by Nikolay Advolodin, CEO of www.ultimateqa.com. He had been teaching test automation for 5 years and is the author of top rated online courses to 50,000 students in over 100 countries around the globe.

In this course from Ultimate QA, you will learn:

– Why Sauce Labs is an amazing test automation tool.

– Overview of Sauce Labs.

– Sauce Labs advantages and disadvantages.

– How to analyze results.

– How to perform live debugging.

At the end of the course, you will take a final quiz along with the answers to the quiz questions for better understanding.

Take This Entire Course for Free

Nikolay Advolodkin is a self-driven SDET on a lifelong mission to create profound change in the IT world and ultimately leave a legacy for his loved ones, community, and the world at large. Today, he serves as the CEO and Test Automation Instructor at UltimateQA.com and contributes informative articles to leading test automaton websites like SimpleProgrammer.com and TechBeacon.com

Pin It on Pinterest

Share This