Code Monkey home page Code Monkey logo

automationframewok's Introduction

Search all method inside the class by ctrl + o

Instruction of the Project from the scratch to Architecture Level****

Create a Java Project

Convert the Project to Maven Project

- download maven into local machine (https://maven.apache.org/download.cgi)
- Set up environment for maven
-Validation 
	- CMD>mvn -version (appear version number)

Add dependencies into POM.XML File

<build>
<plugins>
<plugin>
<configuration>
<dependencies>
<dependency>

Create a TestNG.XML suite for all test cases

Create a simple Test Case under the src folder

- GmailRegistrationTest (straight forward test case which is can be executed from the test case level)
- Validate
	- Execute properly
		- Break down this Test Case into multipule packages (use TestNG framework concept and POM concept)

Create Package for TestCases

- Create a base class (BaseTest) for TestNG Framework
	- @@Parameters("browser")
	- @BeforeClass (Browser configuration globally)
	- @BeforeMethod (Navigate to the URL)
	- @AfterMethod
	- @AfterClass (Close the browser)
	- Creare Customize Thread.sleep

- Create Test Class For TestCase
	- @Test

Create Package for PageObjectModel (POM Pages)

- Create a BasePage (abstract class) for initalization of webelement

- Create a Pom Pages Class corresponding to the eatch web pages

Create Package Global for String enam & Int enam also data Provider class

	- Create Data Provider Class for accessing the data into test class
		- @DataProvider(name="LogInTest")

Add TestNG Listner Class into the project for Fail Test case to execute

TestNG Parameterization with Excel

- add poi api library file
- add Excell reading file (ExcelReader which is I created into project 
- Create a Test Class 
	- @DataProvider
		- Create a method 
			- Create a object of the ExcelReader class file
			- Add the excel sheet into the project
				- Name it testngdata
				- Sheet name loginTest
			- Create a variable of the row Count
			- Create a variable of the column count

Generating Custom Report (relevantcodes.com)

http://extentreports.com/docs/versions/3/java/
https://mvnrepository.com/artifact/com.aventstack/extentreports/3.0.3
add the dependencis into POM file

Create connection to DataBase (MySQL)

add jar file (mysql-connector-java)
sqljdbc4

Add test class file 
	DbManager.java
	TestCofig.java

Create a test class and call the DbManager class into it

automationframewok's People

Watchers

Md Shahnewaz Zaman 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.