Git Product home page Git Product logo

framework_webautomation_java's Introduction

Framework Web - Java

Usage

Package Core

This package contains the framework base structure. You can select which browser you want to use to run tests by changing the value of BROWSER. You can also change the browser behavior after finish a test by changing the value of CLOSE_BROWSER:

public class ProjectProperties {

	/**
	 * Define if the browser must close after a test.
	 */
	public static boolean CLOSE_BROWSER = false;
	
	/**
	 * Define which browser should be used to run the tests.
	 */
	public static Browsers browser = Browsers.CHROME;

	/**
	 * Enumerate which browsers can run the tests. 
	 * The machine that contains the project must have the chosen one browser installed.
	 * @author BrunoFraga
	 */
	public enum Browsers{
		CHROME,
		FIREFOX,
		EDGE
	}
}

Package Features

This package contains the feature files from Cucumber BDDs.

Package Runner

This package contains the Cucumber configurations to run with jUnit.

Package Page Object

This package is where you'll create the page actions and the element mapping.

public class ExamplePage extends BasePage{

    public void changeUrl(String url) {
		utils.goToUrl(url);
	}
	...

}

Package Steps

This package contains the steps from the current Scenario that will be test. The class BindingSteps.java contains a few configurations related to the Cucumber steps, such as custom configurations for @Before and @After tags.

public class ExampleSteps extends ExamplePage{

	@Given("I want to access Google homepage")
	public void mustChangeUrl(){
		changeUrl("http://www.google.com.br");
	}
	
	@Then("Check the tittle of the page")
	public void checkTheTittleOfThePage(){
		assertEquals("Google", getDriver().getTitle());
	}
    ...
}

Package Util

This package contains all the generics methods from the framework. Feel free to add more methods if you have to, just remember to add a JavaDoc Commentary explaining what the method executes by adding /** and pressing [Enter] before the method.

Dependencies

This version is making use of:

Please make sure to update tests as appropriate.

framework_webautomation_java's People

Contributors

bsfraga avatar

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.