Professional Documents
Culture Documents
===========================
' Name of the Script : Corporate Actions Home
' Scope of the Script : This test script covers 4 te
st cases related to the CA Home page
' Author
: Renuka
' Description : Corporate Actions Home
' Date and / or Version : 10-12-2008,version 1.0
'===============================================================================
============================
Sub CA_Home()
'****Declaration of Environmenta
l Variable
Environment.Value("Execution_Log
")="true"
'''''''''Test case count
Const TC_COUNT = 4
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,
1)
strBound = UBound(strIndVar)
strAllPath =""
For intPathCounter = 0 to strBou
nd - 1
strAllPath = str
AllPath & strIndVar(intPathCounter) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "Data
Tables\"
strLibPath = strAllPath & "Funct
ion_Library\"
Environment.Value("Execution_Log") = "true"
If DataTable("TestRunFlag","CAHome")="Y" Then ''If run flag is Y in te
st data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & DataTable("TestCas
eID","CAHome") & "' ########### ","Execution of Test Case '" & DataTable("TestCa
seDesc","CAHome") & "' Started"
strFuncName = "CAHome_TC" & intTCCount & "()" ''Formation of function
name
''Call Function
Execute "Call " & strFuncName
strPrevious=Trim(DataTable.Value("TestCaseID","CAHome"))
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("CAHome").SetCurrentRow(Environment.Value("DATATABLE_ROW"
))
strNext=Trim(DataTable.Value("TestCaseID","CAHome"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("CAHome").SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","CAHome"))
Wend
Next
Call logoutfromApp("CorporateAct
ions","Depositary Receipt Division's")
''***************************************** TC Driver End **********************
*********************************
End Sub
'**********************************************Test Case 1 *********************
*****************************
Public Function CAHome_TC1()
Environment.Value("TestCase_Log") = "true"
'#Step1
'Navigate to DR Home page after successful login
.
Call chkCAHomePage("CorporateActions","Deposita
ry Receipt Division's",DataTable.Value("HomePageLinks","HomePageVerification"),D
ataTable.Value("UserName","HomePageVerification"))
If Environment.Value("TestCase_
Log") = "true"Then
Reporte
r.ReportEvent micPass,"Step1: Check for DR Home Page","The Required Links and t
he User Details are displayed Successfully"
Else
Reporter
.ReportEvent micFail,"Step1: Check for DR Home Page","The Required Links and the
User Details are NOT displayed Successfully"
Environm
ent.Value("TestCase_Log") = "false"
End If
End Function