- 85
- 144 619
Test Automation 101
Canada
เข้าร่วมเมื่อ 23 ต.ค. 2022
Welcome to our Test Automation Channel. We will walkthrough with various methods and skills for Software Automation Test. Firstly, we dedicated to Selenium WebDriver and test automation! If you're looking to master the art of automated testing with Selenium, you've come to the right place. We cover everything you need to know to become a proficient Selenium tester, from the basics to advanced techniques.
Our video series starts with a comprehensive introduction to Selenium, where we delve into its core concepts and demonstrate how to set up Selenium WebDriver with Java and Maven. We'll guide you through writing your first test script and executing it to perform basic automation tasks.
Our video series starts with a comprehensive introduction to Selenium, where we delve into its core concepts and demonstrate how to set up Selenium WebDriver with Java and Maven. We'll guide you through writing your first test script and executing it to perform basic automation tasks.
Accessibility Testing
In this video, I introduce how to run accessibility tests in Cypress to ensure your web applications meet accessibility standards. Using Cypress with the cypress-axe library, you’ll learn how to identify and fix common accessibility issues, helping you create a more inclusive user experience.
🔑 In This Video:
Setting up cypress-axe for accessibility testing in Cypress
Writing tests to catch accessibility violations 🔍
Running automated checks for WCAG compliance
Best practices for maintaining accessible and testable code
Tips for integrating accessibility testing into your CI/CD pipeline
By the end of this video, you’ll be able to confidently add accessibility checks to your Cypress test suite and improve the usability of your web applications for all users.
🔗 Resources:
cypress-axe Documentation: github.com/component-driven/cypress-axe
Subscribe for more tutorials on Cypress and automated testing every week! 🚀
#Cypress #AccessibilityTesting #cypress-axe #WebTesting #WCAGCompliance #InclusiveDesign #QA #SoftwareTesting #CypressTutorial"
🔑 In This Video:
Setting up cypress-axe for accessibility testing in Cypress
Writing tests to catch accessibility violations 🔍
Running automated checks for WCAG compliance
Best practices for maintaining accessible and testable code
Tips for integrating accessibility testing into your CI/CD pipeline
By the end of this video, you’ll be able to confidently add accessibility checks to your Cypress test suite and improve the usability of your web applications for all users.
🔗 Resources:
cypress-axe Documentation: github.com/component-driven/cypress-axe
Subscribe for more tutorials on Cypress and automated testing every week! 🚀
#Cypress #AccessibilityTesting #cypress-axe #WebTesting #WCAGCompliance #InclusiveDesign #QA #SoftwareTesting #CypressTutorial"
มุมมอง: 37
วีดีโอ
Cypress Data-Driven Testing
มุมมอง 7621 วันที่ผ่านมา
In this video, I dive into Data-Driven Testing in Cypress using cy.readFile() and cy.fixture() to load and manage test data effectively. With these commands, you can create tests that run multiple data sets, ensuring comprehensive coverage without duplicating code. This approach is perfect for scenarios like form validations, login testing, and API validations. 🔑 In This Video: Introduction to ...
Cypress Fixture
มุมมอง 66หลายเดือนก่อน
In this video, I introduce the cy.fixture() command in Cypress and how it helps you manage and load external test data efficiently. Using fixtures is essential for data-driven testing, allowing you to keep your test scripts clean and reusable. Learn how to load data from JSON, text, and other files directly into your Cypress tests. 🔑 In This Video: What is cy.fixture(), and why use it? 📁 Loadin...
Wait Strategies
มุมมอง 57หลายเดือนก่อน
In this video, I introduce wait strategies in Cypress to help you manage dynamic content and ensure your tests are reliable and stable. Waiting correctly is crucial to avoid flaky tests and handle asynchronous operations like API responses, animations, and lazy-loaded elements. 🔑 In This Video: Using Cypress’s built-in retry mechanism ⏳ When and how to use cy.wait() effectively Waiting for API ...
Interacting with Web Elements
มุมมอง 83หลายเดือนก่อน
In this video, I demonstrate how to interact with various web elements using Cypress. Whether you're working with buttons, input fields, dropdowns, or checkboxes, mastering element interaction is essential for writing effective end-to-end tests. This hands-on guide will show you the most common ways to interact with elements and validate their behavior. 🔑 In This Video: Clicking buttons and lin...
How to use XPath
มุมมอง 111หลายเดือนก่อน
In this video, We demonstrate how to integrate and use XPath in your Cypress tests to handle complex element selection scenarios. While Cypress primarily supports CSS selectors, XPath provides additional flexibility, especially when dealing with complex DOM structures or elements with dynamic attributes. 🔑 In This Video: Installing and configuring the Cypress XPath plugin 🛠️ Writing tests using...
Cypress Common Assertions
มุมมอง 992 หลายเดือนก่อน
In this video, we introduce some of the most commonly used assertions in Cypress to help you write reliable and maintainable test scripts. Assertions are crucial for validating the behavior of your web application, ensuring everything works as expected. This video covers both implicit and explicit assertions with practical examples to get you started! 🔑 In This Video: Overview of Cypress Assert...
Cypress Core Commands
มุมมอง 962 หลายเดือนก่อน
In this video, I introduce the core commands of Cypress that every tester needs to know! 🛠️ These essential commands will help you interact with elements, control browser behavior, and validate your application's UI and functionality efficiently. If you're just starting with Cypress, mastering these commands is the key to writing reliable test scripts. 🔑 In This Video: Overview of essential Cyp...
Create your own test script
มุมมอง 2932 หลายเดือนก่อน
In this video, I’ll walk you through the process of creating your very first Cypress test script from scratch! 🎯 If you’re new to Cypress or automation testing, this video will show you how to set up and write basic test scripts for your web applications, ensuring they run smoothly and behave as expected. 🔑 In This Video: Setting up your first test suite with Cypress 🛠️ How to create and organi...
Cypress Automation Test - Introduction and Setup
มุมมอง 1652 หลายเดือนก่อน
Welcome to my in-depth introduction to Cypress, the modern, developer-friendly testing framework for web applications. In this video, you'll learn everything you need to get started with Cypress, from what it is, why it's a great choice for end-to-end testing, to how to set it up in your project. 🔑 In This Video: What is Cypress? 🤔 How does Cypress differ from other testing tools like Selenium?...
ChatGPT & Software Quality Assurance
มุมมอง 2813 หลายเดือนก่อน
In this video, we dive into the exciting world of Software Quality Assurance with the help of ChatGPT! Learn how this AI tool can assist in test case generation, bug identification, automated testing, and much more. We’ll cover key aspects such as: How ChatGPT can streamline test case creation Using AI for automated code review Enhancing bug reporting and documentation with natural language pro...
Selenium Java Automation Testing from scratch for beginners
มุมมอง 6833 หลายเดือนก่อน
Selenium Java Automation Testing from scratch for beginners Welcome to our comprehensive Selenium Java Automation Testing Full Course. This in-depth video series is designed to equip you with the knowledge and skills to become proficient in automating web application testing using Selenium Java. Whether you're a beginner looking to enter the field of software testing or an experienced tester ai...
Selenium Python Automation Testing from scratch for beginners.
มุมมอง 4003 หลายเดือนก่อน
Selenium Python Automation Testing from scratch for beginners. Welcome to our comprehensive Selenium Python Automation Testing Full Course. This in-depth video series is designed to equip you with the knowledge and skills to become proficient in automating web application testing using Selenium Python. Whether you're a beginner looking to enter the field of software testing or an experienced te...
How to bypass login with Selenium Python
มุมมอง 5064 หลายเดือนก่อน
Learn how to bypass the login process in your Selenium Python automation scripts with this step-by-step tutorial! Whether you're testing web applications or automating repetitive tasks, skipping the login step can save you time and simplify your workflow. In this video, we’ll cover: Setting up Selenium with Python Navigating to the login page Extracting cookies or session data Implementing logi...
Set Up Page Object Model In Selenium Python
มุมมอง 2924 หลายเดือนก่อน
Welcome to this in-depth tutorial on Selenium with Python where we dive into the Page Object Model (POM) design pattern. Whether you're a beginner looking to understand the basics or an experienced developer aiming to refine your test automation framework, this video is for you! In this video, you will learn: 🔹 What is Page Object Model (POM) and why it's essential in test automation. 🔹 How to ...
Visual Regression Test in Selenium Python
มุมมอง 2964 หลายเดือนก่อน
Visual Regression Test in Selenium Python
Behavior Driven Testing In Selenium Python
มุมมอง 1274 หลายเดือนก่อน
Behavior Driven Testing In Selenium Python
How to run Lighthouse with Selenium Python
มุมมอง 3205 หลายเดือนก่อน
How to run Lighthouse with Selenium Python
How to run Selenium Python Tests with Docker
มุมมอง 1.2K5 หลายเดือนก่อน
How to run Selenium Python Tests with Docker
Selenium Accessibility Test In Python
มุมมอง 4105 หลายเดือนก่อน
Selenium Accessibility Test In Python
How to use expected condition with Selenium Python
มุมมอง 3266 หลายเดือนก่อน
How to use expected condition with Selenium Python
How to work in color with Selenium Python
มุมมอง 1876 หลายเดือนก่อน
How to work in color with Selenium Python
How to use DevTool in Selenium Python
มุมมอง 4136 หลายเดือนก่อน
How to use DevTool in Selenium Python
Selenium Python interacts with web elements using Actions API
มุมมอง 3716 หลายเดือนก่อน
Selenium Python interacts with web elements using Actions API
Interacting with Iframe web elements in Selenium Python
มุมมอง 2737 หลายเดือนก่อน
Interacting with Iframe web elements in Selenium Python
How to interact with cookies in Selenium Python
มุมมอง 3437 หลายเดือนก่อน
How to interact with cookies in Selenium Python
How to manage windows with Selenium Python
มุมมอง 3147 หลายเดือนก่อน
How to manage windows with Selenium Python
Compare GPT-4 and GPT-4o in QA application
มุมมอง 2037 หลายเดือนก่อน
Compare GPT-4 and GPT-4o in QA application
can we Impliment developer tools in selenium grid while automation testing in java?
Great Video!!✌
That's great, but when i am applying this the platform is Linux, How can i change Linux to windows or mac?
Dear Sir, can you please share the Python code for this series of Selenium class ? Thank you !
Did not check in GitHub. import time import pytest from selenium import webdriver from PIL import Image, ImageChops @pytest.fixture(scope="function") def setup(): options = webdriver.ChromeOptions() driver = webdriver.Chrome(options) driver.implicitly_wait(10) driver.maximize_window() yield driver driver.quit() def capture_screenshot(driver, file_path): driver.save_screenshot(file_path) def images_compare(baselineImage, NewImage, diff_image): image1 = Image.open(baselineImage) image2 = Image.open(NewImage) # Compare images diff = ImageChops.difference(image1, image2) if diff.getbbox(): diff.save(diff_image) return False return True def test_Home_Screenshot_comparison(setup): driver = setup driver.get("admlucid.com/") time.sleep(5) # Capture new screenshot new_screenshot_path = "C:/Users/luluk/PycharmProjects/pythonSeleniumProject/screenshots/home_screenshot.png" capture_screenshot(driver, new_screenshot_path) # Compare new screenshot with baseline baseline_screenshot_path = "C:/Users/luluk/PycharmProjects/pythonSeleniumProject/screenshots/baseline/home_screenshot.png" diff_screenshot_path = "C:/Users/luluk/PycharmProjects/pythonSeleniumProject/screenshots/diff_home_screenshot.png" Thanks
Thank you for the response. I would like to request ALL the Python code ( not only this lecture ) for the "Automation Test 101 for Python Selenium class". Please share. Thank you !
hi How can I publish the codes I wrote on another computer?
You may check git information, create project and publish your codes. Thanks.
This video was very helpful until I received errors about the demo website's security certificate being expired. This caused features that you are showing fail. I had been following along and building the project with the video until I received the security error. I did a little work around for the initial error, but I doubt what is being done in the rest of the video will work. Any chance the security certificate can be resolved?
Thanks. Our web site security certificate was expired ( We will renew the certificate) and also if you change to it will not get the error.
Thanks for your videos.. But I have an issue while executing the code: 'Builder is not defined.' I tried to copy and place the chrome driver in folder /usr/local/bin/ but still I could see the issue. Can someone help me here..
Thank you for watching, I did not copy and paste chrome driver, enter command of "install selenium-webdriver"; please refer to the video from 1:10 min.
Thanks!!! I hope this improve my tech career!!!
I tried the same approach but getting an 404 error in html report.
Thank you for watching the video, please watch it from 7 mins, and change url = "www.google.com", try again. Thanks again!
@testautomation999 okay 👍🏽
Thank you, brother.
could you please give me a source code sample?
Thank you for watching. This video consists of many previous videos. So, you may refer to GitHub: github.com/lukeyang22/admT/tree/a81979a02fb48a375cc4e23e438aa8507a0c086d/src
How to find script post automation
You can save it. Please refer to th-cam.com/video/fNMOtNOmPDM/w-d-xo.html at 6:25 Thank you.
Can you share the github link of the project? thanks!
GitHub: github.com/lukeyang22/selenium/tree/main/MyTest Thank you!
@@testautomation999 Thank you very much for your sharing. However, the part you explain in the video is not included in the project in the link you sent. Maybe you shared the wrong project?
Selenium IDE now works with Edge also
Thank you very much!
Thanks for the interesting video. The usage of synchronized block is not clear though, i didn't analyze your code, but synchronized blocks are usually used to prevent concurrent access to the code inside this block, and it seems like even though you run tests in parallel, only one thread at a time is executed, while others are waiting for it to finish
Thank you for watching the video and comments!
This is amazing !!! Thank you for the efforts .. definitely gonna watch it till the very end and learn loads . 🎉 keep growing
Amazing project! I have a question, is it possible to focus the test on specific parts / features of the webpage? as a QA sometimes I need to test only a specific implemented feature and not the whole page, but the only tools that do it are paid, including the axe accessibility test tool, so it would be amazing if I could develop an automation test case that focus on specific parts of the page to test accessibility. thank you!
Thank you for watching. This method goes to look into violations based on each page including every web elements on the page, so if the new build infects accessibility of the element it will return violation or violation free.
Great content.. Can you please share the repo link for this code?
Thank you! You may find the resource github.com/lukeyang22/admT/tree/a81979a02fb48a375cc4e23e438aa8507a0c086d/src
How do we take full page screen shot. My application has one fixed flyer on one side and screenshot is not coming of full page.
You may try to driver.manage().window().fullscreen(); before it takes screenshot. Thanks.
Font size of the video is way too small to comprehend, pleas zoom a little while recording Cheers!!
Thank you so much! We will pay attention and modify Font size later.💗
for `selenium-side-runner -c "browserName=firefox” C:/Users/luluk/Documents/video.side` the "browserName=firefox” should be "browserName=firefox" note the ” should be "
The background noise is making it hard to concentrate.
Sorry for that.
Thanks for the video ! We can also use allure-reports !
Great video! It would be nice to see the code, if possible, to not have to type everything.
I have a simple bot for a website that I use, but it stopped working(site update). It’s a typescript and follows a selenium-based script that uses a very simple algorithm. Do you think you can help me identify the problem? Thank you!!!!
Sorry I don't think I can help because I don't know what's the problem with your bot.
I was just finishing some end-to-end and automation stuff, then I said "let's put all of this blueprint in Docker". Refreshed my YT and bam, saw the video! Could not be happier!
can i do it without maven on my current project?
Yes, you can do without Maven which will be different from the shown project.
I have a question, can we automatically send order "prompt" to analyze the conversation and past it to google sheet? without doing coding for the google sheet? like once I say to chat gpt, make a samary and send it to google doc or google sheet. is there a way for doing that?
link for code.. pls
Sorry I did not check in codes. Here odes: from selenium import webdriver from selenium.webdriver.common.by import By import pytest from selenium.webdriver.support.select import Select from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.wait import WebDriverWait import time from selenium.webdriver.support.color import Color BLUE =Color.from_string("rgba(255, 255, 255, 1)") RED = Color.from_string("rgba(220, 53, 69, 1)") DeepRed = Color.from_string("rgba(220, 53, 69, 1)") YELLOW = Color.from_string("yellow") BLACK = Color.from_string("rgba(13, 110, 253, 1)") @pytest.fixture() def edge(): # initialize a chrome driver driver = webdriver.Edge() driver.maximize_window() yield driver def test_1_booking_color(edge): edge.get('www.admlucid.com/Golf') time.sleep(3) btn_Booking = edge.find_element(by=By.XPATH, value='/html/body/div/main/table[1]/tbody/tr/td[4]/form/button') btn_Booking_Color = Color.from_string(btn_Booking.value_of_css_property('color')) # validate the color of button if it's blue, click on it if btn_Booking_Color == BLUE: print('The button color is blue') btn_Booking.click() else: print(btn_Booking_Color.__str__()) time.sleep(3) txt_customer = edge.find_element(by=By.ID, value='Customer') txt_email = edge.find_element(by=By.ID, value='Email') txt_customer.send_keys("John Smith") txt_email.send_keys("jsmith@admlucid.com") btn_Create = edge.find_element(by=By.XPATH, value='/html/body/div/main/div[1]/div/form/div[8]/input') btn_Create_Color = Color.from_string(btn_Create.value_of_css_property('color')) if btn_Create_Color == BLUE: print('The Create button color is blue') btn_Create.click() else: print(btn_Create_Color.__str__()) time.sleep(3) msg_phone = edge.find_element(by=By.ID, value='Phone-error') msg_phone_color = Color.from_string(msg_phone.value_of_css_property('color')) msg_date = edge.find_element(by=By.ID, value='Date-error') msg_date_color = Color.from_string(msg_date.value_of_css_property('color')) msg_StartTime = edge.find_element(by=By.ID, value='StartTime-error') msg_StartTime_color = Color.from_string(msg_StartTime.value_of_css_property('color')) msg_EndTime = edge.find_element(by=By.ID, value='EndTime-error') msg_EndTime_color = Color.from_string(msg_EndTime.value_of_css_property('color')) assert msg_phone_color == RED assert msg_date_color == RED assert msg_EndTime_color == RED assert msg_StartTime_color == RED def test_2_picture_color(edge): edge.get('www.admlucid.com') time.sleep(3) picture = edge.find_element(by=By.XPATH, value='/html/body/div/main/div[2]/div[3]/a/img') picture_color = Color.from_string(picture.value_of_css_property('color')) print('Picture Color is '+picture_color.__str__()) assert picture_color == BLACK picture_bk_color = Color.from_string(picture.value_of_css_property('background-color')) print('Picture Background Color is ' + picture_bk_color.__str__()) def test_3_delete_golf_color(edge): edge.get('www.admlucid.com/Golf') time.sleep(3) # Login btn_login = edge.find_element(by=By.XPATH, value='/html/body/header/nav/ul/li/a') btn_login.click() txt_user = edge.find_element(by=By.ID, value='Input_Email') txt_pw = edge.find_element(by=By.ID, value='Input_Password') btn_submit = edge.find_element(by=By.ID, value='login-submit') txt_user.send_keys("test2@admlucid.com") txt_pw.send_keys("p8FrK4pE!g.ryKs") btn_submit.click() time.sleep(3) edge.get('www.admlucid.com/Golf') time.sleep(3) # search for golf and delete it txt_search = edge.find_element(by=By.NAME, value='SearchString') btn_search = edge.find_element(by=By.XPATH, value='/html/body/div/main/table[1]/tbody/tr/td[1]/form/button') txt_search.send_keys("Testing Golf Course A") btn_search.click() time.sleep(3) link_delete = edge.find_element(by=By.XPATH, value='/html/body/div/main/table[2]/tbody/tr[1]/td[6]/a[3]') link_delete.click() time.sleep(3) btn_delete = edge.find_element(by=By.XPATH, value='/html/body/div/main/div/form/input[2]') btn_delete_color = Color.from_string(btn_delete.value_of_css_property('background-color')) assert btn_delete_color == DeepRed if btn_delete_color == DeepRed: print("The Delete Button Color is " + btn_delete_color.__str__()) btn_delete.click() time.sleep(3)
Helpful.
please tell me how to solve the error "Error: Unable to obtain browser driver."
Thank you! You may check install selenium-webdriver, and make sure installation successfully.
I have the same problem after building my application, how do I solve it? It works in the test environment, but after building it doesn't.
hey, thanks for the content. How can you proceed to use docker and to get the devtools? I saw you had a video about the devtools but not in docker. I did the setup you showed for docker and the one for devtools, but things don't work. Do you know how to proceed with that? Thanks for your videos.
Thank you! Sorry to delay replying. You may try to use "ChromeDriver driver = (ChromeDriver) new RemoteWebDriver(new URL(remote_url_chrome), options)" instead of "ChromeDriver driver = new ChromeDriver()"
Can you please share this project github link
The GitHub has been shared on other video and I put them in this video. Please check this video description. Thank you.
Can u share those links in ur description to the sites.. It is really helpful.
Hi @MasterNeoRNCP: Thank you very much for great suggestion, I updated the video description with URL and docker commands.
is there a java version for this ?
No. Thanks.
Hello Sir, I'm trying to replicate what you did in this video, but the name of the IDE you used. Could you pls let me know the name?
Thank you for watching the video. You may need IntelliJ Download and install IntelliJ: www.jetbrains.com/idea/download and also need Docker.
Thank you for this. Is there any place we can find the test code you are copying and pasting so that we are able to copy and paste ourselves? Thank you again!
Thank you. We will update codes and then let you know.
You may find some codes: github.com/lukeyang22/C-S
Hi can you provide repo with that files? Thanks
Thanks. The files are simple, load-test.yml: config: target: www.admlucid.com phases: - duration: 60 arrivalRate: 1 rampTo: 5 name: Warm up phase - duration: 60 arrivalRate: 5 rampTo: 10 name: Ramp up load - duration: 30 arrivalRate: 10 rampTo: 30 name: Spike phase plugins: ensure: {} apdex: {} metrics-by-endpoint: {} apdex: threshold: 100 ensure: thresholds: - http.response_time.p99: 100 - http.response_time.p95: 75 scenarios: - flow: - loop: - get: url: "/" - get: url: "/Home/Selenium" - get: url: "/Identity/Account/Login" count: 5
Can I do this with VS instead of VS Code?
This case we used VS Code with JavaScript, if you setup JavaScript with VS, it will be OK.
Very nice sir but i was wondering if it's possible to get the data I need to enter in web form and return transaction serial back to database without using api coz it's not available in the website I'm trying to automate
Thank you! I think you may get the form data which be or being sending to the back-end processes such as JavaScript or database, or you may confirm the form data stored in the database.
@@testautomation999 my database is sql server or excel table as alternative option
Hello Can You do the same in python? I want to capture a response of meta ads library of any ad in network xhr. How to do it?
Sorry, I did not try those in Python.
With this shall we launch desktop applications?
You need to download and install Visual Studio Code and Node.js, then you can write selenium scripts in JavaScript. Do I answer your question? Thanks.
Good stuff my friend, thanks for making this!
Hi.. Without opening new tab can we perform the Lighthouse performance in opened window.?
We did not try to open only a tab to perform lighthouse, but we can do lighthouse without launching browser , adding --chrome-flags="--headless" after lighthouse URL . lighthouse URL --chrome-flags="--headless". Thanks.
hello, nice video. Is it possible to get the DevTools with this approach? I think that RemoteWebDriver does not support that, but I'm wondering if this approach would cover that? Thanks
Very helpful video. Can you provide text of custom instruction here from QA point of you
Thank you. I update the video description with text of custom instructions, you may find them.
@@testautomation999 thank you
🤤 Promo_SM
Hi, do we have a way to run this in edge browser? tried this and its not working in edge
Sorry, did not try to use edge. Thanks.
CreateAxeHtmlReport() not able to find...
Nice video, well done.