INTRODUCTION & SETTING ENVIRONMENT
INTRODUCTION
ABOUT JAVA
INTRODUCTION
HOW IT WORKS?
INTRODUCTION
JAVA PLATFORMS
ENVIRONMENT SETTINGS
IDE
JDK
Maven archetype
System Environment Varibles
Github
SETTINGS:
INTELLIJ INTEGRATEDDEVELOPMENTENVIRONMENT
Download IDE : https://www.jetbrains.com/idea/download/ and run exe:
JAVADEVELOPMENTKIT
Download JDK link: https://www.oracle.com/java/technologies/javase-downloads.html
Run Exe:
MAVEN
Download ‘Binary zip archive’: https://maven.apache.org/download.cgi
Dearchive in location: ‘C:\Users\YourUser’
What can Maven do? How?
ENVIRONMENT VARIABLES
Start search ‘Environment Variables’
1. Add variables(replace the path with your location): 2. Add in ‘path’ the path through the bin-ul of 2 variables:
GITHUB
Check the acces on IBM GitHub: https://github.ibm.com/loreal/testing
About java versioning and maven:
https://en.wikipedia.org/wiki/Java_version_history
https://www.oracle.com/java/technologies/javase/j
dk8-naming.html
https://maven.apache.org/what-is-maven.html
https://www.youtube.com/watch?v=KNGQ9JBQ
WhQ
FRAMEWORK PRESENTATION
MAIN
Main represents the part where is developed the framework with all
of the functionalities like: Password encryption, xml reader, POM,
different methods used in the process of testing
(e.g.waitElementToBeDisplayed).
HELPERS
Helpers consists in 2 clases: StringEncryptionHelper (Encrypt and
decrypt the password), and XmlReader ( in this class is made the way
of reading the xml file).
XML file is used to get information like: login credentials,
environment url
PAGES
Pages is used in order to use Page Object Model design patern
Every web page needs a class that with the help of Page Factory we
identify the elements from each page that is part of the test cases
implemented
UTILS
Utils is used in order to store all the necessary methods that are used
in order to develop a test case ( clickJS, click,sendKeys,
isElementDisplayed etc)
TEST DEVELOPMENT PRESENTATION
FEATURES
Features represents the section where the TestCase is described in key
words: Give, When And Then.
This is the Cucumber functionality
STEPS
Steps is the place where the TestCase defined in feature files is
implemented
TestRunner class is the class from Cucumber Framework that gives
the possibility to run the test cases that we need.
The class CommonSteps represent a class that conatin the common
steps that are used in the TestCases like accessing a specific url, login
etc
CONFIG XML
This section represents the file that contains information that is used
in the test cases like: url to different environments, username,
password.
POM XML
Here is the place for dependencies that is
part of the framework
RESULTS
Cucumber Framework allows a representation
of the results in different format: html,xml
The file is exported to a location
The results represents the number of steps passed
and the time for each step