Functional and Regression Test Automation Job Aid - GitActions
Functional and Regression Test Automation Job Aid - GitActions
Table OF Contents
Table OF Contents 2
1. Scope .....................................................................................................................................................................3
2. Introduction ...........................................................................................................................................................3
3. System Requirements .............................................................................................................................................3
4. Pre-Requisites.........................................................................................................................................................3
5. Eclipse Installation and Configuration 4
6. Selenium Installation and Configuration 4
7. HP ALM Requirements 4
8. Framework set up 4
9. GitHub configuration...............................................................................................................................................6
10. Guidelines for Creating Automated Test Scripts ......................................................................................................7
11. Example of How to Create an Automated Script......................................................................................................8
12. Execution of Scripts...............................................................................................................................................8
13. Configuration for Internet Explorer ........................................................................................................................8
14. Password Encrypt Utility ........................................................................................................................................9
15. DevOps Integration ............................................................................................................................................ 10
16. How to verify functional testing invoked? ............................................................................................................ 13
17. How to view results in Jenkins job? ..................................................................................................................... 15
17. How to automate using Selenium Recording Option? ........................................................................................... 16
18. Integrate recorded script into Jenkins pipeline ..................................................................................................... 17
19. How to check results in Jenkins pipeline .............................................................................................................. 19
20. Tips and Tricks to use in Selenium Recording ........................................................................................................ 20
Owner – 11780 DealerCONNECT-DCQA Technical and Testing Service-N-P................................................................... 22
Refrence Document:................................................................................................................................................. 22
1. Scope
This document details the steps required to install and configure applications required for functional and regression
test automation for DealerCONNECT applications. After completing these instructions users will be able to
create and execute automated test scripts using HP ALM, Selenium, and Eclipse .
2. Introduction
This document is intended for application teams supporting DealerCONNECT applictions that require functional
and/or regression testing.
3. System Requirements
1. Windows 64 bit system
2. 4 GB Ram
3. Atleast 20 GB free hard disk space
4. Pre-Requisites
1. Updated JDK(64 bit) is installed on the system(current version : 1.8.0_201, You can check current vers ion by
typing java –version in command prompt)
2. System environment variables have path and java_home variables with required path for JDK.
3. Eclipse(same bit version as java) is downloaded and up and running. (We will need instructions for installing
and configuring eclipse including link to software instal).
4. Selenium (We will need instructions for installing and configuring eclipse.)
5. HP ALM installed (Add any requirements that are needed like regression test cases documented in HP ALM
and placed in regression testing foder)
6. Framework set up jar files are extracted and stored at local system.
7. HP ALM Requirements
- HP alm desktop client is installed and user has access to required project and domain.
- Test cases which are to be automated are kept in TestLab, executed atleast once with screenshots at each step.
8. Framework set up
1. Create a folder with name as “functionalTest” in local drive(Base location).
2. Keep Mastersheet.xlsx, TestData.xlsx and RunTest.xml in the created folder.
3. Copy the contents of <RequiredJarFiles> folder and keep at base location. Will need these jars below.
4. The folder structure(base location) will be same as shown below:
8. Enter project name (any) and click next->finish to create the project
9. Now right click on the created project, select Properties->Java Build Path->Libraries->Add external jars—Add the
jar files as shown below(jars extracted in step 4)
10. Create structure (with exact package name) similar to one below in eclipse:
-ApplicationCommonFunctions: Java file which contains customized, user created common functions which we
will be using for AUT.
-RunScript: Java file to run the test script. No need to change anything in file .Required for test execution
initializationduring script development phase.
-OR: Interface file short name for Object Repository, where we store xpath of objects from AUT.
-Driver: Framework required file which defines the execution path, flow and creates required instances.
9. GitHub configuration
1. User needs to get access to GitHub repository to access the framework setup files.
2. Right click on empty space in Project Explorer area of eclipse and select Import.
3. Select Git ->Projects from Git from the dialog box:
7. Click on Next button and check the branch as BranchForDevelopment from the dialog box,uncheck others.
8. Click on Next button.
9. Select the local destination directory and click on Next.
10. Click on “Import existing Eclipse Project” and click on Next
11. Click on Finish button.
12. Now the project is connected to GitHub.
1. Open IE
2. Go to Internet Options->Security
3. Check Enable Protected Mode for all zones(internet, local Intranet, trusted Sites and Restricted)
4. Go to Advanced Tab→ Security
5. Check ☑ Enable 64-bit processes for Enhanced Protected Mode(screenshot below)
• TestScripts folder contains your testcscripts, Object repository and Runscript.java file. For eg: we have all
methods in DealerScoreBoard.java for dealesrscoreboard application. You can have multiple files for 1
application, just make sure to give same name in Runtest.xml(File located in functionalTest folder.)
• That’s all. Now, automation framework will be invoked whenever there is commit done on the repo code..
4. Search for “Running TestScripts ” in the logs. If found, we can verify the logs as seen in the reports.
3. Download the artifact, extract the zip file on your local system
4. Navigate to ExecutionReports folder and view the results
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency org="junit" name="junit" rev="4.13.1"/>
<dependency org="fca" name="RecordedSelenium" rev="1.0">
<artifact name="RecordedSelenium" ext="jar"/>
</dependency>
3. Download the artifact, extract the zip file on your local system
4. Navigate to Reports folder and view the results
At times when we record the script, there are few fields that are not recorded
properly. To avoid scripts failing at time of re-run, we can modify the steps as per
scenarios mentioned below.
• In Value text box – provide the exact text that needs to be verified. This verification is case sensitive, so
provide exact text to avoid unnecessary failures.
Refrence Document:
In driveIT - KB0032311