Skip to content

mozbek37/S2E1-selenium4-java-testng-allure

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Selenium 4.0 step by step with Java

image

Youtube Webinar Video

https://www.youtube.com/watch?v=lfeYoIlTwtM


Requirements:

Selenium IDE Chrome Extension -> https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd

NodeJS Installation is required for selenium-side-runner -> https://www.selenium.dev/selenium-ide/docs/en/introduction/command-line-runner

Java JDK8 Installation -> https://www.oracle.com/tr/java/technologies/javase-downloads.html

Jetbrains IntelliJ IDEA CE Installation -> https://www.jetbrains.com/idea/

Allure Reporting Installation -> https://docs.qameta.io/allure/#_installing_a_commandline


Driver Installations

npm install -g chromedriver
npm install -g edgedriver
npm install -g geckodriver
npm install -g iedriver

image


Selenium IDE Usage

image

selenium-side-runner gloriajeans.side
selenium-side-runner gloriajeans.side -c "browserName=firefox"
selenium-side-runner gloriajeans.side -c "browserName=chrome goog:chromeOptions.args=[disable-infobars, headless]"

Selenium Grid Usage

image

Standalone mode:

java -jar selenium-server-4.1.1.jar standalone

Hub-Node mode:

java -jar selenium-server-4.1.1.jar hub
java -jar selenium-server-4.1.1.jar node --detect-drivers true --max-sessions 20 --override-max-sessions true

Container mode:

docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-firefox:4.1.1-20211217

image


Allure Reporting Usage

mvn clean test -Dsurefire.suiteXmlFiles=src/test/java/suites/SingleClassesSuite.xml
allure serve allure-results

image


Resources

https://www.selenium.dev/selenium-ide/

https://www.selenium.dev/selenium-ide/docs/en/introduction/getting-started

https://www.selenium.dev/documentation/webdriver/

https://www.selenium.dev/selenium/docs/api/java/deprecated-list.html

https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java

https://www.selenium.dev/documentation/grid/

https://github.com/SeleniumHQ/docker-selenium

https://docs.qameta.io/allure/#_testng

Repository owner

https://www.linkedin.com/in/ozgurkayaist/


"Software Testing Bootcamp" is a community of people interested in software testing. We record the weekly webinars that we organize and publish them on Youtube. For more information -> https://testingbootcamp.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%