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 !!!
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.
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.
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/
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
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?
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.
@@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😊
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 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?
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.
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
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
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
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
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
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.
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 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.
Ok, you can use ChromeOptions class instead of DesiredCapabilities stackoverflow.com/questions/58411791/getting-error-as-method-chrome-is-undefined-for-the-type-desiredcapabilities
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.
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
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/
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?
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
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
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
@@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
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
@@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).
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
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 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..
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)
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
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 !!!
So happy and humbled to see this Shaji, can get all here - automationstepbystep.com/
Thanks 👍 Amazing informative tutorial.....
Glad it was helpful!
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.
Hi Sai, I believe I have added the link to github project in some videos, I will check again, Thanks for letting me know
Very useful Raghav! Thanks
You're welcome Jeyabala 😀
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
Hi Supriya, not sure on this, will need to check SauceLabs documentation
Amazing Job Explaining, Thank You!
You're welcome. Thanks for watching
Very nice informative video, Please make one video for parallel execution In SauceLabs
Noted will do Rishabh
Nice explanation sir...thank you
You're welcome Naven
another great video from you....
Glad to know this Azhar
Need to prepare for interview... what topics i should focus in Core java
OOP
Some basic code samples
I believe rest will depend on your existing knowledge.
Thanks Raghav... have you covered any videos about oops concept step by step...?
Thanks for sharing!
You're welcome
Hi.. Can u please please guide on how I can execute my existing testNG suit in saucelab..
Hi Puja, I will plan a session, can check with saucelabs support for now, can check some online examples too
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.
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/
Hi Raghav,
Can we use Selenium +Python Scripts in Sauce Labs to test on real devices ?
Yes, you can Sireesha
@@RaghavPal Can you demonstrate through a video if possible. Thanks in advance 😊
I will plan but can take some time, You can try some online examples
@@RaghavPal sure thanks for your reply.. I will be waiting for your video.. meanwhile will be checking the online stuff as well
Nice job.
Thanks Mike
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
Will try Archana
Very nice
Thanks
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?
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.
@@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😊
Sure, will plan Charan
I am not able to see documentation for Java(Eclipse) parallel execution on Saucelabs. Please help.
Hi Tanuja, check this stackoverflow.com/questions/46042047/multiple-os-browsers-for-parallel-execution-using-saucelabs-and-qaf-framework
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?
Hi, are you running it on the same machine or different one
@@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?
will need error details or logs
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.
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
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.
Yes you can do that Rajendra, Please check this
wiki.saucelabs.com/display/DOCS/Parallel+Testing+in+Java+with+Maven+and+TestNG
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
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
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
@@RaghavPal Thanks for your reply..
Which one is good to use Browserstack or Saucelabs?
Both are good, Check the pricing based on your needs and platforms. Can do a POC on the trial account
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
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.
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.
Sure Saurabh, I will check on this
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
Hi Hazim, what is the error, can check online examples
@@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.
Ok, you can use ChromeOptions class instead of DesiredCapabilities
stackoverflow.com/questions/58411791/getting-error-as-method-chrome-is-undefined-for-the-type-desiredcapabilities
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.
Hi Ajay, Saucelabs is a cloud platform to provide infrastructure
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
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/
Hi Raghav, is saucelabs integrated with gitlab ci/cd?
Hi Arul, can check this docs.saucelabs.com/testrunner-toolkit/integrations/gitlab/
Thanks Sir
You're welcome Chandra
Hi iam using protractor javascript in sauce labs, facing issue for uploaded file
..can u pls help me out
Hi Sai, what is the issue, what do the logs say
can you do few videos about mobile testing appium with java language...please?
I will do it Naven
@@RaghavPal thanks for the reply and consider my words ..thank you raghav
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?
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
Thanks Raghav for this video,very helpfull.
Is it free or do we have to buy SauceLab
only 14 days , its free, after that we have to buy
Its not free, the trial is for 14 Days
Hi , I have issue can not execute the test script with file upload. Please advise
Hi Salam, will need more details, what is the error message
@@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
Can try some online examples and check
@@RaghavPal Thank you sir I found out
@@salamibraheem3728 could you elaborate on the issue and let us know how you resolved it?
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
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
@@RaghavPal
thank you very much sir for your quick response.
@@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
You can use applitools in your existing framework too. Pls see ua-cam.com/video/ItutKRrq0JI/v-deo.html
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
I will plan Sachin
@@RaghavPal Please share the video by which we can run appium test on saucelabs
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
Hi Krunali, I will check and plan, what tools/platforms are you looking at
@@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).
Hi Krunali, I will update if I get more info
I tried using the same code but it didn't work and getting the below error:-unreachable browser exception cannot start a new session
The sauce link which you have already shared didn't help
Hi Naveen, looks like you create a new comment, I cannot find my earlier reply here. You can also send more details and logs
Can i have any solutions for unreachable browser exception? Is there anything I need to do with firewalls?
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
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
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
Could you please add a video on how to run your selenium script on mobile browsers against sauce labs simulator/emulator ?
I will try to do that Arnab
Hi.. I have a question.. Can we execute the selenium code in Android or ios browser.. Through saucelab? Please reply..
Yes, we can Puja
@@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..
On mobile browser, it should work
Even when running on Linux
We are able to windows recording Video may i know the reason behind it
Hi Bachu, I did not completely get your query. Pls elaborate
Sir I am getting unreachable browsers exception
Hi Saranya, do you have any logs?
Thanks
Most welcome Mikhail
I keep getting 406 error on saucelabs website!! why is that??
Hi, 406 is http status code for Not Acceptable, pls check your request
airbrake.io/blog/http-errors/406-not-acceptable
Sir plss cau u share this on python script
I will do Lokesh
@@RaghavPal thanks🤗
how to run script through sauce lab tunnel ?
Hi Vipin, you will find that in Saucelabs documentation
@@RaghavPal Manually I executed from tunnel but in script I am getting error.there is any link please share with me
Hi Vipin I will also need to check this online. You can try to get in touch with Saucelabs support team
@@RaghavPal thanks for your reply.if you want I will share my screen with you
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)
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
Hi Manish, do you have any error details or logs.
@@RaghavPal I have watched again and fixed the issue .
Thank you
Thanks for Making a video sir, Could you please help me with Webdriver.Io with saucelabs Config file
Hi Ajeet, no tutorial yet on that, will plan, for now pls try online