Important Jenkins command

URL http://<jenkins.server>/restart http://<jenkins.server>/safeRestart http://<jenkins.server>/exit http://<jenkins.server>/safeExit http://<jenkins.server>/quietDown http://<jenkins.server>/cancelQuietDown Remote API URL can be invoked by a Remote API. Using wget: $ wget --user=<user> --password=<password> http://<jenkins.server>/restart $ wget --user=<user> --password=<password> http://<jenkins.server>/safeRestart $ wget --user=<user> --password=<password> http://<jenkins.server>/exit $ wget --user=<user> --password=<password> http://<jenkins.server>/safeExit $ wget --user=<user> --password=<password> http://<jenkins.server>/quietDown $ wget --user=<user> --password=<password> http://<jenkins.server>/cancelQuietDown Using cURL: $ curl -X POST … Continue reading Important Jenkins command

Advertisements

How to create Java Maven Project using Terminal

Goto to termical -> Any Folder -> e.g. Documents Create file -> mkdir new_workspace Goto -> cd new_workspace Type below commands mvn archetype:generate -DgroupId=com.expedia.cli -DartifactId=flightsBookingcli -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false You can see Maven Project created in the folder by typing in terminal -> type . Important Maven commands: mvn dependency:sources -> will download all missing jars and … Continue reading How to create Java Maven Project using Terminal

How to do Database Testing using My Sql and MongoDB

How to install Mongo DB -> MongoDB Installation URL to add Maven dependency and Jar files for MongoDB -> MongoDB Installation Guide Source Code for Mongo DB Test: package DatabaseTesting; import com.mongodb.BasicDBObject; import com.mongodb.Cursor; import com.mongodb.MongoClient; import com.mongodb.client.FindIterable; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoDatabase; import org.bson.Document; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class DatabaseTestingMongoDB … Continue reading How to do Database Testing using My Sql and MongoDB

How to generate TestNG report in Intellij

From Edit Configurations On the "Listeners tab", Use default listeners should be checked. And Output directory should be set correctly. Check on Use default reporters option which will create test-output folder in your root folder with all reports. In addition to above steps if you still face the issue, you can even add Listener like … Continue reading How to generate TestNG report in Intellij

A proper QA process that helps to catch bugs during development phase.

1. We need to break free from the classical roles and responsibilities of QA Here we are a customer-facing unit, and we hear from our customers about issues they experience and what features they would like to see in our product. On the other end, we actively participate in design discussions, offering the input we … Continue reading A proper QA process that helps to catch bugs during development phase.

Android tool for Mac

Android tool for Mac You can easily take video and screenshot using this tool in Mac Copy AndroidTool.app to your Applications folder Right click AndroidTool and choose Open To install using homebrew-cask, run brew cask install androidtool in the terminal.

Ways to scroll a page using Selenium WebDriver in Java

1.If you want to scroll the page vertically to perform some action, you can do it using the following JavaScript. ((JavascriptExecutor)driver).executeScript(“window.scrollTo(0, document.body.scrollHeight)”); Where ‘JavascriptExecutor’ is an interface, which helps executing JavaScript through Selenium WebDriver. You can use the following code to import. import org.openqa.selenium.JavascriptExecutor;  2. If you want to scroll at a particular element, you need … Continue reading Ways to scroll a page using Selenium WebDriver in Java