CI/CD

  • 19
    Oct

    Standalone extent report for a TestNG testcase (Extent Reports < 3.0 ver)

    import java.io.File; import org.testng.Assert; import org.testng.ITestResult; import org.testng.SkipException; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import com.relevantcodes.extentreports.ExtentReports; import com.relevantcodes.extentreports.ExtentTest; import com.relevantcodes.extentreports.LogStatus; import libraries.*; public class ExtentReportsClass { ExtentReports...

    Read More
  • 21
    Sep

    Enable groovy scripting in Jenkins

    Traditionally user create jobs in Jenkins by providing necessary build / post build actions by filling the job details manually.  With introduction of Pipeline plugin, users now can now implement...

    Read More
  • 21
    Sep

    Setup delivery pipelines in Jenkins

    Steps required to configure “Delivery pipeline” in Jenkins.   #1.  Create jobs which needs to be chained together to perform “Delivery pipeline” tasks / builds. In order to configure...

    Read More
  • 21
    Sep

    java.io.IOException: Cannot run program “sh” (in directory “C:\xxx\path

    For your Jenkins installation if you specify build step as “Execute Shell” with any shell commands (eg. ls or dir), following error is observed, if you have not specified...

    Read More
  • 16
    Aug

    Invoke a task every 1 minute

    In order to invoke a task / function periodically (say every one minute) we can use following code snippet. Step 1: Create a class which calls “function” to be...

    Read More
  • 06
    Aug

    Execute your Selenium script from Jenkins

    There are multiple ways to integrate Selenium with Jenkins. In these step, I will use “Windows batch” file to execute. Step 1: create a Selenium script eg. @Test //TestNG...

    Read More
  • 05
    Aug

    Installing Jenkins on windows OS

    Pre-requisites: #1. Install JDK on your system JAVA_HOME: set it to “JDK Installation location” PATH: update it to “bin” folder path of JDK Installation #2. Download latest war file...

    Read More