Validation of notice to customer services through automated testing using JS with Selenium and Jasmine.
This framework is made up of the following tools:
1. Javascript: The programing language to build the test logic.
2. NodeJS: The Runtime environment that allows packaging and manage the dependencies.
3. Jasmine: The testing framework that provides a BDD and easy-to-read syntax
4. Selenium webdriver: Framework used to automate the actions in the browser and locate elements.
The relevant framework files are included in the “testing-framework” folder. The framework is based on Page Object model, so that inside the “testing-framework” folder there is a folder corresponding to each of the application pages (class folders) and additionally there is a folder (Components) that includes classes utilities, with specific functions that serve to build automated tests more easily. Finally it includes a folder to store the tests (Tests).
Base page helper: Includes methods that are common to all classes (pages). All the helper classes, of all the pages of the application extend from this.
Expectations helper: This class includes the main verifications in a generic way, using this class the specific verifications of each page are created.
HTML helper: Includes HTML tags and attribute names.
Logger helper: Includes the logger.
Page helper: It contains specific methods that manipulate the page or the browser itself.
test-suites Includes the tests to be executed
Wait helper: Includes methods where expected.
* happyPath.spec.js => Test in which all mandatory fields are filled out and the form is sent successfully. During this process each step is validated.
* negativeTests.spec.js => Test in which only the email field is filled out and the form is prevented from sending. During this process each step is validated.
npm i
to install dependencies