akanagar / mrchecker

End to End (E2E) test framework - MrChecker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MrChecker template

This repository includes a template to make test using MrChecker and an example.

How to use

To use this template the following steps have to be followed:

  • Download the template.

  • Import it as Maven project using and IDE like Eclipse or InteliJ.

  • Write the code to test an application.

What is included?

Commons

  • resources/settings.properties: List of properties for each test module.

  • resources/secretData: File used to encrypt/decrypt sensitive data used during test execution. For safety please do not keep this file in repository, read more How to keep sensitive data .

  • resources/environments/environments.csv: List of variables with different values based of used test environment. Read more How to use test environments.

Classic Junit structure

  • test/java/com.capgemini.mrchecker/<Module_name>/junit: Folder which includes a java file (MainTest.java) with methods recommended to build a basic test.

  • main/java/com.capgemini.mrchecker/<Module_name>/: Contains a template (MainPage.java) with methods necessary to build a basic page object.

Cucumber structure

  • test/java/com.capgemini.mrchecker/cucumber: Folder to store the cucumber tests (MainCucumberTest.java).

  • test/java/com.capgemini.mrchecker/cucumber/features: Directory to keep cucumber files with features for each test module (basicScenario.features).

  • test/java/com.capgemini.mrchecker/cucumber/stepdefs: Directory to keep cucumber files with steps definition for each test module.

  • test/java/com.capgemini.mrchecker/cucumber/shared: Directory to keep cucumber files with shared data tables for each test module.

The example folder also has a the following tests:

  • Test Data Driven (TDD) Inside test/java/com.capgemini.mrchecker/core/datadriven.

  • Behaviour Driven Development (BDD): Situated on test/java/com.capgemini.mrchecker/cucumber.

We are in a process of tranition to JUNIT5 examples for JUNIT4 are available here

About

End to End (E2E) test framework - MrChecker

License:Apache License 2.0


Languages

Language:Java 97.6%Language:Gherkin 0.9%Language:JavaScript 0.5%Language:FreeMarker 0.4%Language:Batchfile 0.4%Language:Groovy 0.3%