Code Monkey home page Code Monkey logo

testng-demo's Introduction

Simple Java Project

This simple maven repository is used for the purpose of demonstrating the testNG capabilities.

To run this Java application, you need to have installed below two applications and they need to be configured as environment variables

  1. Java 8 ( refer this[1] document for setting java into path)
  2. Maven 3.x.x ( refer this[2] doc for more information)

After installing the above two, please follow the below instructions

  1. Go to the home folder of the project and execute mvn clean install in a terminal ( or command prompt)
  2. After successful completion of above, go to the org.dimuth.testng.demo class and execute the main method
  3. You should be able to see an output like below
A + B = 6070.0 A - B = -1770.0 A * B = 8428000.0 A / B = 0.548469387755102 Process finished with exit code 0 [1] - https://www.java.com/en/download/help/path.xml [2] - https://www.baeldung.com/install-maven-on-windows-linux-mac

Useful commands and artifacts

  • To clone the project
    git clone https://github.com/dimuthnc/testng-demo.git
  • TestNG Dependency
    <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>7.3.0</version> <scope>test</scope> </dependency>
  • Mockito Dependency
    <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.10.19</version> <scope>test</scope> </dependency>
  • Maven Surefire Plugin

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M1</version> <configuration> <suiteXmlFiles> <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin>

testng-demo's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.