Posts
Docker Full Course - 2023
- Get link
- X
- Other Apps
Hi There is the new Full FREE Course on Docker 2023. Will keep update on week basis: Course Scope: This course covers the following topics: Understanding Docker: Gain a clear understanding of Docker and its purpose in modern application development and deployment. Docker Basics: Learn the fundamental Docker commands and how to use them effectively. Pulling and Running Images: Discover how to use the Docker command-line interface (CLI) and the Docker Desktop app to pull and run images from Docker registries. Creating and Running Containers: Master the process of creating and running containers using both the Docker CLI and the Docker Desktop app. Course Outcomes: Upon completing this course, you will achieve the following outcomes: Gain a solid understanding of Docker and its core concepts. Learn how to effectively pull and run Docker images from Docker registries using the Docker CLI or Docker Desktop app. Acquire the skills to run containers using the Docker CLI or Docker Des...
How to do dynamic scrolling on any webpage
- Get link
- X
- Other Apps
import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.*; import org.testng.annotations. Test ; public class ScrollDownTestAnkurDemo { @Test public static void getDynamicScrollDownByAnkur() { WebDriver driver = WebDriverManager. chromedriver ().create(); driver.manage().window().maximize(); driver.get( "https://www.google.com" ); driver.findElement(By. name ( "q" )).sendKeys( "Facebook" + Keys. ENTER ); JavascriptExecutor js = (JavascriptExecutor) driver; //Get the actual whole WebPage Height Object height = js.executeScript( "return document.body.scrollHeight" ); String ht = height.toString(); System. out .println( "Page height is : " +ht); //Calculating the Number of Steps to scroll using 450 Pixel in each scroll float htInt = Integer. parseInt (ht); System. out .println( " The number of steps to scroll ...
New Automation Tool : Playwright by Microsoft
- Get link
- X
- Other Apps
#To Initialize Playwright server : Playwright playwright = Playwright. create () #To Create Browser Instance Browser browser = playwright.chromium().launch( new BrowserType.LaunchOptions() .setHeadless( false )) ; Browser browser = playwright.firefox().launch( new BrowserType.LaunchOptions() .setHeadless( false )) ; Browser browser = playwright.webkit().launch( new BrowserType.LaunchOptions() .setHeadless( false )) ; where setHeadLess(true or false) # Create BrowserContext BrowserContext browserContext = browser.newContext() # Create Page instance Page page = browserContext.newPage(); A Simple script: package playwrightdemo ; import com.microsoft.playwright.* ; import com.microsoft.playwright.options.* ; import static com.microsoft.playwright.assertions.PlaywrightAssertions. assertThat ; import java.nio.file.Paths ; import java.util.* ; public class test { ...
Good Website to do Automation Testing
- Get link
- X
- Other Apps
Good website for testing https://the-internet.herokuapp.com/ shadowDom: https://books-pwakit.appspot.com/ https://selectorshub.com/xpath-practice-page/ For Testing Drag & drop https://selenium08.blogspot.com/2020/01/click-and-hold.html Learning Websites: Selenium IDE : https://www.javacodegeeks.com/2020/06/selenium-ide-what-is-it-why-is-it-must-for-every-qa.html Selenium GRID: Selenium 4 - Selenium Grid Modes(Standalone, Hub & Nodes and Distributed) and Grid Components OCR: Optical Character Recognition with EasyOCR and Python | OCR PyTorch Deep Drowsiness Detection using YOLO, Pytorch and Python
WebDriverManage ### !!! No Need to Write !!! Driver = new ChromeDriver ();
- Get link
- X
- Other Apps
Hi Guys With Latest Update on WebDriverManager now directly initialize you driver by hitting with version >= 5.1.1 ( as on date latest stable version is 5.2.2 ) WebDriver driver = WebDriverManager. chromedriver ().create() ; // and for headless browsing use: ChromeOptions chromeOption = new ChromeOptions(); chromeOption.setHeadless(true); WebDriver driver = WebDriverManager.chromedriver().capabilities(chromeOption).create();
CI-CD
- Get link
- X
- Other Apps
JDK - COnfig Jfrog - + Local repo - Select MAVEN - Repository Key ( from POM.xml <repostory>.<name> ) During cicd pipeline: PIPELINE: Setup - Compile - StaticAnalysis - UnitTest - CodeCoverage - War - ToArtifactary - SmokeTest Mvn config: Clean - compile - sonar:sonar - test - jacoco:report - war:war - deploy target/sure-fire/*.xml Publish Jacoco coverage report + target/.../coverage.xml Deploy war/ear to the server - */*.war , /com.ms.calc, AddContainer- TOMCAT9 Setup - build-3, Days-2,PollSCM- H/2 * * * *, Git/MavenProject details (from INDEX Page...