CI/CD

  • 11
    Jun

    Register a hub based on property file contents

    Register a Hub (based on property file contents) Grid.properties HubRole=hub HubHost=127.0.0.1 HubPort=4444 FileRead.java

    Read More
  • 22
    May

    executing maven profile from command line

    Step 1: Define pom.xml with true profile and other profiles with activation properties eg. Profile with default activation ———————————— INT true com.github.houbb heaven 0.1.2 ……. maven profiles with activation...

    Read More
  • 22
    May

    Maven properties

    ${project.basedir} => location where the current pom.xml file is located. ${project.build.directory} => This represents by default the target folder. ${project.build.outputDirectory} => This represents by default the target/classes folder. ${project.build.testOutputDirectory}...

    Read More
  • 22
    May

    Maven profiles – to manage dependencies

    Creating a pom.xml for all your needs sometimes causes un-necessary dependencies downloaded to your project. Following pom.xml defines Maven profiles, which when invoked, will download only required dependencies (based...

    Read More
  • 25
    Apr

    profiles in pom.xml

    Inside pom.xml we can create profiles as follow: linux64 true linux gtk x86_64 win64 env win64 win32 win32 x86_64 ….. org.eclipse.tycho target-platform-configuration ${tycho.version} ${build_os} ${build_ws} ${build_arch} In this example...

    Read More
  • 25
    Apr

    how to pass property values from command prompt

    Generally pom.xml contains section to define project specific properties eg. value hardcoded in pom.xml we can pass “myproperty” value from command as follow: mvn install “-Dmyproperty=new value”

    Read More
  • 29
    Mar

    Maven & GitHub & Jenkins & TestNG Integration – CI Automation

    Maven & GitHub & Jenkins & TestNG Integration – CI Automation Skip to end of metadataGo to start of metadata Last updated: Sep 14, 2017 14:06 Build a maven...

    Read More
  • 21
    Feb

    Configuring external jars via POM.xml in Maven

    Configuring external jars via POM.xml in Maven Maven uses the concept of Repositories to configure dependencies at run time. In case if required dependency is not available in maven...

    Read More
  • 28
    Nov

    How to execute TestNG regression suite from Maven commands

    Step 1.  Create TestNG tests  eg. import org.testng.annotations.Test; public class testClass { @Test public void myFunction() { System.out.println(“Testing 123……”); } }   Step 2: Configure surefire plugin in TestNG.xml...

    Read More
  • 19
    Oct

    Generate ExtentReport for multiple TestNG test scenarios

    Dependencies: extentreports-3.0.0.jar freemarker-2.3.28.jar mongo-java-driver-2.10.1.jar or org.jsoup jsoup 1.8.3 org.xerial sqlite-jdbc 3.8.11.1 org.freemarker freemarker 2.3.23 org.mongodb mongodb-driver 3.0.4 Step 1:  Create a baseclass which implements setup and teardown of extent...

    Read More