The
following are the steps to download and setup testing masters framework
1)
Click
on this link to download framework.
2)
UnZip
the downloaded project.
3)
The
testscripts can be executed in two ways mainly
a.
From
trigger.bat file – Windows Explorer
b.
From
testng.xml file – eclipse editor
Case a):
o
open
the project location in the windows explorer.
o
And
double click on trigger.bat file.
o
the
execution will get started and results will be generated.
Case b):
o
Open
eclipse, import framework to workspace.
[File>>Import>>ExistingProjectToWprkspace>>SelectProject>Finish]
o
Right
click on testng.xml file
o
Select
RunAs>>TestNG Suite.
4)
View
current execution status in the results folder along with date and time stamp.
1)
Go
through the manual testcase.
2)
Check
if the functionality and the testdata are provided correctly in the testcase.
3)
Check
the functionality/the flow of testcase once manually.
4)
If
any queries or the preconditions missing, then we have to interact with the
manual team and get them clarified and documented.
5)
Import
the project to current workspace
6)
The
following are the components that are to be updated mainly.
a)
Update
Object Repository
b)
Update
TestScript Definitions
c)
Execute
Individual TestCase.
d)
Update
Run Manager.
e)
Final
Execution
Step a):Update Object
Repository:
o
Create
a class for the new webpage to be added in the application.
o
Add
every interacting webelements to the
class.
o
Use
below naming convention while updating the object repository
i.
TextField
--> Edt_
ii.
Button --> Btn_
iii.
Checkbox
-->Cb_
iv.
SelectBox
-->Lst_
v.
RadioButton-->RbBtn_
vi.
Message -->Msg_
o
Create
static set methods if the properties has to be set dynamically for the
webelements in the webpage.
Step
b)UpdateTestScriptDefinitions:
o
Make
a copy of the SampleTestScript.java
file inside the desired module package.
o
Rename
the SampleTestScript.java file based on
the testcase going to be automated.
Example: TC201_AddQualificationDetails_WorkExperience
o
Now
start writing the testscript in the using the webibrary methods.
o
If
any reusable code is identified, update them in the userlibrary file.
Step c)Execute
Individual TestCase:
o
Execute
individual testscript to verify the script status.
i.
Right
click on selected TestCase
ii.
Select
RunAs>>TestNG Test.
o
If
the script is failed, analyse and fix thge issues by debugging process.
i.
Place
BreakPoint on the desired step.
ii.
Right
click on selected TestCase
iii.
Select
DebugAs>>TestNG Test.
Step d)Update RunManager:
o
Update
ExecutionController Sheet with the testcase information.
i.
ModuleName
ii.
TestCaseName
iii.
TestCaseDescription
iv.
ExecutionStatus{ whether
to execute testcase or not}
v.
Priority
{Impacted TestCases should be given first priority}
o
Update
TestData Sheet with the Testdata of the testcase.
i.
ModuleName
ii.
TestCaseName
iii.
Update
Cell According to the testdata required for execution
o
Fill
the testdata in the form of FieldName:=FieldValue
o
Update
CommonTestData Sheet
i.
Update
the testdata which is common accross al the testcases.
ii.
Select
the option to record the screen while execution.
iii.
Select
the option to highlight webelements while execution.
iv.
Selct
option to take screenshot while execution.
Step e)Final Execution:
o
Select
execution as true for the testscripts that
are to be executed in the current run.
Execution Case1:
i.
Open
eclipse, import framework to workspace.
ii.
Right
click on testng.xml file
iii.
Select
RunAs>>TestNG Suite.
Execution Case2:
i.
open
the project location in the windows explorer.
ii.
And
double click on trigger.bat file.
iii.
the
execution will get started and results will be generated.
o
After
Execution check the final status in the results\LAstRun folder