Alfresco ADF automation QA exercise
Do you love automation testing and you know how to solve the following exercise? Contact us! We may have a job for you :)
Exercise
Fork this GitHub repository and push the produced code in your fork repository.
Automate the following scenario using protractor:
- Access to http://qaexercise.envalfresco.com/settings
- Change Provider to ECM
- Click Apply
- Navigate to http://qaexercise.envalfresco.com/login
- Insert Username and Password
- Username : guest@example.com
- Password : Password
- Click Login
- Navigate to http://qaexercise.envalfresco.com/files
- Click on 'create new folder' icon.
- New folder dialog is displayed.
- Introduce your Github username (for example in my case) "magemello".
- Name has been added.
- Click on 'Create' button.
- The dialog is closed. Folder with your Github username is created in the current folder.
- Click on 'create new folder' icon.
- New folder dialog is displayed.
- Introduce your Github username (for example in my case) "magemello".
- Name has been added.
- Click on 'Create' button.
- The dialog is not closed.
- The message "There's already a folder with this name. Try a different name" is displayed.
- Select the folder with your Github username
- Open Options window (3 dots)
- Click delete
In the README file of the repository we want to see also the following sections:
- Description The follow steps descrive the steps to run the implementation.
To run the test the following steps should be done:
- Access to GitHub
- Go to https://github.com/carodrigues/adf-automation-qa
- Download project zip file from GitHub
- Extract project from zip
- Via command line prompt go to the project “adf-automation-qa” directory
- Execute command “protractor starter\conf.js”
Or
- Access to GitHub
- Go to https://github.com/carodrigues/adf-automation-qa
- Download project zip file from GitHub
- Extract project from zip
- Start Vistual Studio Code and open folder “adf-automation-qa”
- Open a new Terminal and execute the command “protractor starter\conf.js”
Expected results:
- Explanation
The implementation of this solution was made by using protractor with jasmine. For the implementation to be more clear, the test case was splitted with 4 areas (it):
- Change provide
- Login in QA exercise
- Create new folder – carodrigues
- Delete folder – carodrigues
- Prerequisites
If not installed, install
-
Execute instructions described on ReadMe.md file in starter directory
-
Install jasmine: npm install -g jasmine
-
Install jasmine-spec-reporter: npm install jasmine-spec-reporter --save-dev
-
Visual Studio Code must have JavaScript and TypeScript installed.
Starter
The framework has already been setup in the /starter folder, please add your teest case in the spec.js file.
Some info about protractor
- https://github.com/angular/protractor
- https://blog.cloudboost.io/building-your-first-tests-for-angular5-with-protractor-a48dfc225a75