This project contains a basic Protractor/Jasmine/Webdriver framework that includes Chromedriver for direct connect usage. The project uses the page object model to break ultra pages into sections and then provide methods per page section.
- Clone the repository
- Move into the new directory
- Install the package by running
yarn
- To watch the single provided test go through its process, run
yarn test
This package makes use of an .env
file that you can add to the base of the
project. There are 4 values needed to start the tests properly:
learnAdminUsername=
learnAdminPassword=
baseUrl=
seleniumServerUrl=
*These have to be for a working Ultra Learn instance
- Add all driver and assertion methods in the page_objects directory
- Add specs to the tests directory
- Additional specs or suites can be specified in the protractor.conf.ts file
- Logging is also controlled in the protractor.conf.ts file (see Protractor site for more info on which types of logging can be controlled from this config file)
More information about page object model: