Selenium Framework for Beginners 35 | How to run Selenium tests on SauceLabs

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 148

  • @starSha1982
    @starSha1982 4 роки тому +1

    excellent tutorial for beginners...All manual testers who afraid to start automation learning can refer this tutorial, and later he will say automation is interesting and easy. Kudos to Raghav !!!

    • @RaghavPal
      @RaghavPal  4 роки тому

      So happy and humbled to see this Shaji, can get all here - automationstepbystep.com/

  • @Tricks247
    @Tricks247 2 роки тому

    Thanks 👍 Amazing informative tutorial.....

  • @salmush1982
    @salmush1982 3 роки тому +1

    Hello Mr.Pal. Thank you so much for sharing this vid and explaining step by step. However, i've faced a issue where i couldnt find the sample codes. However, i was able to write them off of your screen and then was able to run them successfully.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Sai, I believe I have added the link to github project in some videos, I will check again, Thanks for letting me know

  • @jeyabalageorge4945
    @jeyabalageorge4945 5 років тому

    Very useful Raghav! Thanks

    • @RaghavPal
      @RaghavPal  5 років тому

      You're welcome Jeyabala 😀

  • @supriyassampath1419
    @supriyassampath1419 2 роки тому +1

    Hi thank you so much for this tutorial.
    I have a question, how can we dynamically change the saucelab job names while running from Jenkins

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Supriya, not sure on this, will need to check SauceLabs documentation

  • @ad320709
    @ad320709 5 років тому

    Amazing Job Explaining, Thank You!

    • @RaghavPal
      @RaghavPal  5 років тому

      You're welcome. Thanks for watching

  • @rishabhvaishya7542
    @rishabhvaishya7542 3 роки тому +1

    Very nice informative video, Please make one video for parallel execution In SauceLabs

  • @navenreddyaleti7446
    @navenreddyaleti7446 6 років тому

    Nice explanation sir...thank you

    • @RaghavPal
      @RaghavPal  6 років тому

      You're welcome Naven

  • @azharuddinkhan2317
    @azharuddinkhan2317 6 років тому

    another great video from you....

    • @RaghavPal
      @RaghavPal  6 років тому

      Glad to know this Azhar

    • @azharuddinkhan2317
      @azharuddinkhan2317 6 років тому

      Need to prepare for interview... what topics i should focus in Core java

    • @RaghavPal
      @RaghavPal  6 років тому

      OOP
      Some basic code samples
      I believe rest will depend on your existing knowledge.

    • @azharuddinkhan2317
      @azharuddinkhan2317 6 років тому

      Thanks Raghav... have you covered any videos about oops concept step by step...?

  • @sergeyk8642
    @sergeyk8642 6 років тому

    Thanks for sharing!

  • @pujac0608
    @pujac0608 3 роки тому

    Hi.. Can u please please guide on how I can execute my existing testNG suit in saucelab..

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Hi Puja, I will plan a session, can check with saucelabs support for now, can check some online examples too

  • @sabashaikh2410
    @sabashaikh2410 Місяць тому

    Hi Raghav sir, from past 1 week I am searching for Saucelabs tutorial, but I am not getting the tutorial for the latest version of Saucelabs with Appium. I saw one of your series from July 2024, but it was regarding Appium+Android studio. Can you please create 1 series with Appium+ Saucelabs. I am not able to properly understand the Saucelabs because all the videos are showing old versions of Saucelabs.

    • @RaghavPal
      @RaghavPal  Місяць тому

      Sure Saba
      I will plan on this. In case you need something urgent you can check saucelabs documentation for appium - docs.saucelabs.com/mobile-apps/automated-testing/appium/quickstart/

  • @sireeshah1780
    @sireeshah1780 3 роки тому +1

    Hi Raghav,
    Can we use Selenium +Python Scripts in Sauce Labs to test on real devices ?

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Yes, you can Sireesha

    • @sireeshah1780
      @sireeshah1780 3 роки тому

      @@RaghavPal Can you demonstrate through a video if possible. Thanks in advance 😊

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      I will plan but can take some time, You can try some online examples

    • @sireeshah1780
      @sireeshah1780 3 роки тому

      @@RaghavPal sure thanks for your reply.. I will be waiting for your video.. meanwhile will be checking the online stuff as well

  • @mv8167
    @mv8167 Рік тому

    Nice job.

  • @archanaallur2120
    @archanaallur2120 2 роки тому

    Hi Sir , can you make a video on how to embed saucelab video like to any report.
    In my org we use testburst for reporting so I need to embed saucelab vedio link to this report

  • @shobhitagarwal9321
    @shobhitagarwal9321 5 років тому +1

    Very nice

  • @charant3349
    @charant3349 Рік тому

    Hi Sir, I developed an automated test in testNG framework.
    My test is able to download a file, then open that file on my local machine. On local machine, any downloaded file can be found in the download folder.
    However, when I run my test on saucelab machine, my test is able to download the file, but cannot find that file in the download folder. where a downloaded file is stored on a saucelab machine/session?

    • @RaghavPal
      @RaghavPal  Рік тому

      Charan
      Downloading files on Sauce Labs machines presents some challenges as the downloaded files aren't accessible through your local machine directly. Here are some possibilities for where and how you can access downloaded files on a Sauce Labs machine/session:
      1. Sauce Labs Downloads Tab:
      Go to the specific test execution in the Sauce Labs dashboard.
      Switch to the "Logs" tab under "Automated > Test Results".
      Look for the "customLogFiles" section. If you enabled custom log files in your test configuration, downloaded files can be uploaded there with specific file extension filters.
      Click on the download link next to the downloaded file name to get it locally.
      2. Selenium LocalFileDetector:
      This native function in Selenium helps locate downloaded files based on their filename or other attributes.
      You can use it within your test script to find the downloaded file in the temporary directory assigned by the Sauce Labs browser session.
      Refer to the documentation for specific implementation details: www.baeldung.com/java-selenium-with-junit-and-testng
      3. Pre-run executable/script:
      Upload a pre-run script onto the Sauce Labs platform. This script can run before your test and download the file to a known location on the Sauce Labs machine.
      Your test script can then access the downloaded file using the known location.
      4. Browser settings:
      Configure the browser within your test capabilities to download files to a specific temporary directory on the Sauce Labs machine.
      You can then use the directory path to access the downloaded file within your test.
      5. Download test framework:
      Consider using frameworks like Sauce Storage Download Test, specifically designed for downloading files during tests on Sauce Labs.
      These frameworks take care of downloading and managing files on the Sauce Labs machine.
      Remember, directly accessing the local "Downloads" folder on the Sauce Labs machine isn't feasible due to security restrictions. Choose the method that best suits your needs and implement the necessary code or configuration changes to successfully access the downloaded files within your Selenium Java test script.
      I hope this clarifies where downloaded files are stored on Sauce Labs and provides relevant options for retrieving them.

    • @charant3349
      @charant3349 Рік тому +1

      @@RaghavPal Thanks Sir!! You provided very informative content. Sir please take some time and do a video on this requirement it will be helpful for us. Because no where I found the content regarding this. It would be highly helpful for everyone who ever want this type of requirement. Thanks again😊

    • @RaghavPal
      @RaghavPal  Рік тому

      Sure, will plan Charan

  • @tanu_3876
    @tanu_3876 2 роки тому

    I am not able to see documentation for Java(Eclipse) parallel execution on Saucelabs. Please help.

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Tanuja, check this stackoverflow.com/questions/46042047/multiple-os-browsers-for-parallel-execution-using-saucelabs-and-qaf-framework

  • @100janyam
    @100janyam Рік тому

    Error: Could not find or load main class demo.SauceLabsDemo, does this have anything to do with the GIT demo I did with the git video before this video?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi, are you running it on the same machine or different one

    • @100janyam
      @100janyam Рік тому

      @@RaghavPal yes same, machine. restarting eclipse took out the error. But unable to open chrome browser from sauce labs. some thing changed now in selenium/java? will u have a look at my code?

    • @RaghavPal
      @RaghavPal  Рік тому

      will need error details or logs

  • @aloksharma1426
    @aloksharma1426 5 років тому

    Sir , As a Selenium Tester do company where we join provide us SauceLab paid package or we have to buy ourselves , if we have to buy it ourself then which SauceLabs pack we have to buy to fullfill most of the requirements for the customers??? and how much it costs approximately , if we want career in Testing Field.

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi, if you are working in company and there is a need for platform like SauceLabs then company will buy it. You will have to inform the use and need. Mostly it will be client need

  • @rajendrachowdary3825
    @rajendrachowdary3825 6 років тому

    Thank you very much can I run Chrome and Firefox same time for the same test cases if possible how can I do with sauce labs.

    • @RaghavPal
      @RaghavPal  6 років тому

      Yes you can do that Rajendra, Please check this
      wiki.saucelabs.com/display/DOCS/Parallel+Testing+in+Java+with+Maven+and+TestNG

    • @navenreddyaleti7446
      @navenreddyaleti7446 6 років тому

      by using data provider you can easily achieve it and "parallel=true" you have to mention while creating the dataprovider. it will work local or sauce or jenkins any where

  • @devanandmohan8866
    @devanandmohan8866 5 років тому +1

    I am facing the issue like some of the Selenium code is working fine on Chrome and Firefox browser, but not on IE and Edge browser.. How to handle that situation here

    • @RaghavPal
      @RaghavPal  5 років тому +1

      Hi Devanand, this is a common issue with IE, sometime the object locators do not work on IE, you will have to check the failure message and if its due to object locators, will have to check for locators on IE and use them

    • @devanandmohan8866
      @devanandmohan8866 5 років тому +1

      @@RaghavPal Thanks for your reply..

  • @shameershaik6072
    @shameershaik6072 3 роки тому

    Which one is good to use Browserstack or Saucelabs?

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Both are good, Check the pricing based on your needs and platforms. Can do a POC on the trial account

  • @aloksharma1426
    @aloksharma1426 5 років тому

    Sir , approx how much starting salary we can expect being B.tech computer science graduate and a fresher in Selenium Tester profile in Gurgaon , delhi , India

    • @RaghavPal
      @RaghavPal  5 років тому

      As a fresher you can expect the same as any B.tech fresher from a general college would get. I am not sure of the current range.

  • @saurabhdev5578
    @saurabhdev5578 5 років тому

    Sir your video is very helpful for me,thank you sir, sir I have one doubt in cucumber, how to create base class in cucumber or how to use same code in other classes in cucumber, please make video on this.

    • @RaghavPal
      @RaghavPal  5 років тому +1

      Sure Saurabh, I will check on this

  • @hazimabdoh6303
    @hazimabdoh6303 2 роки тому

    hellow Mr Raghaf , i have one note , that cannot execute the test script cause of an error appears in the sentence : DesiredCapabilities caps = DesiredCapabilities.chrome(); , i did import for DesiredCapabilities but the error appeared in the word chrome, any help please ..thanks

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Hazim, what is the error, can check online examples

    • @hazimabdoh6303
      @hazimabdoh6303 2 роки тому

      @@RaghavPal a red X sign on the script at the line where the word chrome found with a red underline , in the sentence : DesiredCapabilities caps = DesiredCapabilities.chrome(); , and when i put the cursor on the word chrome the note appears : the method chrome () is undefined for the type desiredcapabilities.

    • @RaghavPal
      @RaghavPal  2 роки тому

      Ok, you can use ChromeOptions class instead of DesiredCapabilities
      stackoverflow.com/questions/58411791/getting-error-as-method-chrome-is-undefined-for-the-type-desiredcapabilities

  • @ajayrathore5571
    @ajayrathore5571 3 роки тому

    Hello, Can we create test using Saucelabs ? I am able to run the test successfully but if i want to create the test for Web or Mobile app is this possible using Saucelab. Can you please help me on the same.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Ajay, Saucelabs is a cloud platform to provide infrastructure

  • @aloksharma1426
    @aloksharma1426 5 років тому

    Sir , I suppose in your videos , u provide all the syllabus for Selenium , if something remaining please mention the topic names , so during interview we are not blank on the remaining topics if anything left

    • @RaghavPal
      @RaghavPal  5 років тому

      Sure, although I will be adding more. This is a vast subject, I will try to create a session on syllabus or topics to be covered. You can see all subjects here - automationstepbystep.com/online-courses/

  • @arulventhan641
    @arulventhan641 3 роки тому

    Hi Raghav, is saucelabs integrated with gitlab ci/cd?

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Arul, can check this docs.saucelabs.com/testrunner-toolkit/integrations/gitlab/

  • @chandrashekars2960
    @chandrashekars2960 6 років тому +1

    Thanks Sir

    • @RaghavPal
      @RaghavPal  6 років тому

      You're welcome Chandra

  • @saivarma9614
    @saivarma9614 3 роки тому

    Hi iam using protractor javascript in sauce labs, facing issue for uploaded file
    ..can u pls help me out

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Sai, what is the issue, what do the logs say

  • @navenreddyaleti7446
    @navenreddyaleti7446 6 років тому

    can you do few videos about mobile testing appium with java language...please?

    • @RaghavPal
      @RaghavPal  6 років тому

      I will do it Naven

    • @navenreddyaleti7446
      @navenreddyaleti7446 6 років тому +1

      @@RaghavPal thanks for the reply and consider my words ..thank you raghav

  • @hasmukhrpatel
    @hasmukhrpatel 6 років тому

    Nice Video Sir. I copied same code but I was testing in my office and I got error. Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Can you guide me please?

    • @RaghavPal
      @RaghavPal  6 років тому

      Hi Hasmukh, these links should help you to get to a solution
      support.saucelabs.com/hc/en-us/community/posts/115008525048-Connection-timeout-error
      sqa.stackexchange.com/questions/28456/unreachablebrowserexception-could-not-start-a-new-session-possible-causes-are
      github.com/appium/appium/issues/6279
      groups.google.com/forum/#!topic/selenium-users/q-463eIFAHc

  • @theshakeel2003
    @theshakeel2003 6 років тому

    Thanks Raghav for this video,very helpfull.
    Is it free or do we have to buy SauceLab

    • @azharuddinkhan2317
      @azharuddinkhan2317 6 років тому

      only 14 days , its free, after that we have to buy

    • @RaghavPal
      @RaghavPal  6 років тому

      Its not free, the trial is for 14 Days

  • @salamibraheem3728
    @salamibraheem3728 Рік тому

    Hi , I have issue can not execute the test script with file upload. Please advise

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Salam, will need more details, what is the error message

    • @salamibraheem3728
      @salamibraheem3728 Рік тому

      @@RaghavPal thank you for your response. There is no error message just clicked on file upload button and stop did not grab the file path

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Can try some online examples and check

    • @salamibraheem3728
      @salamibraheem3728 Рік тому

      @@RaghavPal Thank you sir I found out

    • @100janyam
      @100janyam Рік тому

      @@salamibraheem3728 could you elaborate on the issue and let us know how you resolved it?

  • @KLM-writes
    @KLM-writes 5 років тому

    Hello Raghav Sir, I hope i will get reply for my message. i have a question , what if we have to do UI automation for multi screen sizing , do we need to use some other framework (e.g Galen Framework) ?? please i am desperately waiting for your reply.
    many thanks

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Lubna, for multi-screen sizing tests you can either take help of tools like applitools, there is a feature called viewport and you can provide size there. There is a video on applitools in this series. There is another tool Katalon Studio that will have this features being incorporated from applitools and will be released soon

    • @KLM-writes
      @KLM-writes 5 років тому

      @@RaghavPal
      thank you very much sir for your quick response.

    • @KLM-writes
      @KLM-writes 5 років тому

      @@RaghavPal Sir what if we have done all the work in using selenium , do we need to shift our all code from Selenium to Katalon Studio for multi screen sizing UI automation

    • @RaghavPal
      @RaghavPal  5 років тому

      You can use applitools in your existing framework too. Pls see ua-cam.com/video/ItutKRrq0JI/v-deo.html

  • @sachinsangali8670
    @sachinsangali8670 4 роки тому

    Please make a similar video for appium tests on saucelabs, for e.g. explain how to place the .apk file in saucelabs before running the code

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      I will plan Sachin

    • @rajat0189
      @rajat0189 4 роки тому

      @@RaghavPal Please share the video by which we can run appium test on saucelabs

  • @krunalidedhia7117
    @krunalidedhia7117 3 роки тому

    Hey theres not tutorial for mobile app testing in different real and virtual devices. infact not for any tool. can you please suggest some or upload video for same

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Krunali, I will check and plan, what tools/platforms are you looking at

    • @krunalidedhia7117
      @krunalidedhia7117 3 роки тому

      @@RaghavPalHi Sir, thanks for replying. I was looking for tutorial/ suggestion for firebase kind off tools which gives option to upload robo script then run on multiple device simultaneously (free or open source mostly). But since app for which I was checking is cordova and firebase doesn't support. So now I am back to choosing between Browserstack or Genymotion (Both needs to check flow manually in different device).

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Krunali, I will update if I get more info

  • @TheNaveen1989
    @TheNaveen1989 5 років тому

    I tried using the same code but it didn't work and getting the below error:-unreachable browser exception cannot start a new session

    • @TheNaveen1989
      @TheNaveen1989 5 років тому

      The sauce link which you have already shared didn't help

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Naveen, looks like you create a new comment, I cannot find my earlier reply here. You can also send more details and logs

    • @TheNaveen1989
      @TheNaveen1989 5 років тому

      Can i have any solutions for unreachable browser exception? Is there anything I need to do with firewalls?

    • @RaghavPal
      @RaghavPal  5 років тому

      Naveen, this can be due to the browser driver. Pls check if you are using the right ver as per your system browser and os. In case this is intermittent issue, it can be due to system memory. Check this - stackoverflow.com/questions/12023305/selenium-unreachable-browser-exception-java-socket-exception

  • @roya2045
    @roya2045 6 років тому

    Hi sir was trying to install redis I am getting an error I had installed development tools as you had said but after running make command getting fatal error jemalloc can you please help

    • @RaghavPal
      @RaghavPal  6 років тому

      Hi, looks like you posted this on a different video. Pls put this on the correct video and also add some logs if you have

  • @arnabsaha5870
    @arnabsaha5870 5 років тому

    Could you please add a video on how to run your selenium script on mobile browsers against sauce labs simulator/emulator ?

    • @RaghavPal
      @RaghavPal  5 років тому +1

      I will try to do that Arnab

  • @pujac0608
    @pujac0608 3 роки тому

    Hi.. I have a question.. Can we execute the selenium code in Android or ios browser.. Through saucelab? Please reply..

    • @RaghavPal
      @RaghavPal  3 роки тому

      Yes, we can Puja

    • @pujac0608
      @pujac0608 3 роки тому

      @@RaghavPal same code, which created for browser automation can be executed in Android or ios browser.. Or need to write appium code for that..!? Can u pls confirm..

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      On mobile browser, it should work

  • @bachusairam783
    @bachusairam783 4 роки тому

    Even when running on Linux
    We are able to windows recording Video may i know the reason behind it

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Bachu, I did not completely get your query. Pls elaborate

  • @saranyasanapala1049
    @saranyasanapala1049 6 років тому

    Sir I am getting unreachable browsers exception

    • @RaghavPal
      @RaghavPal  6 років тому

      Hi Saranya, do you have any logs?

  • @jorikvartanov8063
    @jorikvartanov8063 3 роки тому

    Thanks

  • @A.B.00007
    @A.B.00007 5 років тому

    I keep getting 406 error on saucelabs website!! why is that??

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi, 406 is http status code for Not Acceptable, pls check your request
      airbrake.io/blog/http-errors/406-not-acceptable

  • @lokeshsukhwal5997
    @lokeshsukhwal5997 4 роки тому +1

    Sir plss cau u share this on python script

  • @itsmevipin7616
    @itsmevipin7616 4 роки тому

    how to run script through sauce lab tunnel ?

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Vipin, you will find that in Saucelabs documentation

    • @itsmevipin7616
      @itsmevipin7616 4 роки тому

      @@RaghavPal Manually I executed from tunnel but in script I am getting error.there is any link please share with me

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Vipin I will also need to check this online. You can try to get in touch with Saucelabs support team

    • @itsmevipin7616
      @itsmevipin7616 4 роки тому

      @@RaghavPal thanks for your reply.if you want I will share my screen with you

    • @RaghavPal
      @RaghavPal  4 роки тому

      Will be difficult to do a personal session, In case there is something you cannot post here can email me raghav.qna@gmail.com. (Replies to email are much delayed)

  • @manishiesl2850
    @manishiesl2850 5 років тому

    my code working fine when I run eclipse but my job is not showing in SauceLabs I have put user name and access key in eclipse but still not working in SauceLabs. Can you fix it for me. Please send your email id

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Manish, do you have any error details or logs.

    • @manishiesl2850
      @manishiesl2850 5 років тому +1

      ​@@RaghavPal I have watched again and fixed the issue .
      Thank you

  • @ajeetsingh6105
    @ajeetsingh6105 2 роки тому

    Thanks for Making a video sir, Could you please help me with Webdriver.Io with saucelabs Config file

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Ajeet, no tutorial yet on that, will plan, for now pls try online