A simple framework to run Functional Test Scripts for Niki mobile application. The framework has been developed using Java, Selenium, TestNG and Appium.
-
BaseDriver.java : Creates and returns WebDriver instance to run automated tests against the test android app.
-
BasePage.java : BasePage with constructor to initialize driver. This class is Inherited by all Pages of the application.
-
DashboardPage.java : Dashboard Page page object.
-
HelpSectionPage.java : Help Section Page page object.
-
SidePanelPage.java : Side Panel Page page object.
-
HelperManager.java : Contains generic methods to be used across the entire framework.
-
ReportNGReport.java : Contains ReportNG Report screenshot and report creation functionality.
-
AppTests.java : Test Class with all test scripts.
-
BaseTest.java : Base Test class with BeforeSuite and BeforeClass/AfterClass configurations.
Screenshots folder - This folder contains the screenshots captured in the test scripts.
Screenshots are stored at ./Resources/Screenshots
Test Reports are generated under Resources folder:
- ReportNG Reports :
./test-output/html/index.html
To run the scripts: Right click on testng.xml and run as testng suite.