Académique Documents
Professionnel Documents
Culture Documents
==========================
' Name of the Script : Corporate Actions Reports Reg
ional Head Summary
' Scope of the Script : This test script covers 13 te
st cases related to the CA reports --> Regional Head Summary
' Author : Shyam H D
' Description : Corporate Actions Reports Reg
ional Head Summary
' Date and / or Version : 13-11-2008,version 1.0
'===============================================================================
============================
Sub CAReportsRegionalHeadSummary()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
'''''''''Test case count
Const TC_COUNT = 13
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intPathCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intPathCount
er) &"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "CAReportsRegionalHeadSummaryTC.vbs"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "CALogin"
DataTable.ImportSheet strDataPath & "Login.xls","CALogin","CALog
in"
DataTable.AddSheet "RegionalHeadSummary"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","RegionalHeadSummary","RegionalHeadSummary"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","ReportHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "CorporateActionsReports.xls
","HomePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
DataTable.GetSheet("CALogin").SetCurrentRow(1)
Call invoke_URL("CorporateActions","Login Page",DataTable.Value(
"URL","CALogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("CorporateActions","Login Page","username
;j_password","")
Call pageCheck_WebButton("CorporateActions","Login Page","Login"
,"")
'****Entering username and password and login into the masterfil
e application
Call login("CorporateActions","Login Page","User","CALogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("RegionalHeadSummary").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","RegionalHeadSummary")="Y" Th
en ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","RegionalHeadSummary") & "' ########### ","
Execution of Test Case '" & DataTable("TestCaseDesc","RegionalHeadSummary") & "'
Started"
strFuncName = "CAReportsRHSummary_TC" & intTCCou
nt & "()" ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "RegionalHeadSummary"), Datatable.Value("TestCaseDesc", "Reg
ionalHeadSummary"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "RegionalHeadSummary"), Datatable.Value("TestCaseDesc", "Reg
ionalHeadSummary"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","RegionalHeadSummary") & "###########","T
he Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","RegionalH
eadSummary"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("RegionalHeadSummary").SetCurrentRow(
Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","RegionalHeadS
ummary"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("RegionalHeadSummary").SetCur
rentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Regio
nalHeadSummary"))
Wend
Next
Call logoutfromApp("CorporateActions","Depositary Receipt Divisi
on's")
'***************************************** TC Driver End *******
************************************************
End Sub
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - For Processing does not exist and hence not able to click on any o
f the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
strValue = Split(strLinkRequired(intValCounter),"-",-1,1)
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("Approved Underlying Events").Exist(5) Then
strCAEventName = SelectLinkinTable("CorporateActions","Reports Regional Head Sum
mary","Approved Underlying Events",strValue(0))
If Browser("CorporateActions").Page("Underlying Event").Exist(5) Then
strAppData = get_WebEdit_Value("CorporateActions","Underlying Event","EventName"
)
If Trim(strCAEventName) = Trim(strAppData) Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the Page is Displayed and the
Event Name is displayed or NOT","The Page Underlying Event is dispalyed success
fuly and the Event Name displayed is " & strCAEventName
Else
Reporter.ReportEvent micFail,"Step 9: Verifying the Event Name is displayed in t
he Page","The Event Name displayed is NOT displayed as " & strCAEventName
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Event",DataTable.Value("MenuPath
","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Step 9:Verifying the Page after clicking on the li
nk" & strValue(0) ,"The page Underlying Event is NOT dispalyed successfully"
Environment.Value("Execution_Log") = False
End If
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table E
xceptions - Missing Source does not exist and hence not able to click on any of
the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
End Select
Next
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC4()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Rep
orts Regional Head Summary Report").WebTable("New Messages - For Processing").Ex
ist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("New Messages - Information").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
Information","RHNewMessagesInformation")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - Inform
ation does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
vents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("New Messages - Information").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","New M
essages - Information",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - Information does not exist and hence not able to click on any of t
he Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC5()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
strLinkRequired = Split(DataTable.Value("ClickLink","RegionalHea
dSummary"),";",-1,1)
For intValCounter = 0 to UBound(strLinkRequired)
' Entering the Search Criteria
Call RHSummarySearchCriteria("CorporateA
ctions","Reports Regional Head Summary Search","Search")
' Verifying the Searrch Results
Call chkRHSummarySearchCriteria("Corpora
teActions","Reports Regional Head Summary Report")
' Verifying the Table Hearder if the Tab
le exists
If Browser("CorporateActions").Page("Rep
orts Regional Head Summary Report").WebTable("New Messages - For Processing").Ex
ist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","New Messages -
For Processing","RHNewMessagesForProcessing")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table New Messages - For Pr
ocessing does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Su
mmary Report").WebTable("Exceptions - Missing Source").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
ssing Source","RHExceptionsMissingSource")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Missing
Source does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Exceptions - Mismatched Event Dates").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Exceptions - Mi
smatched Event Dates","RHExceptionsMismatchedEventDates")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Exceptions - Mismatch
ed Event Dates does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Dividends Requiring RM Certifications").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Dividends Requi
ring RM Certifications","RHDividendsRequiringRMCertifications")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Dividends Requiring R
M Certifications does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Unowned Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Unowned Underly
ing Events","RHUnownedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Unowned Underlying Ev
ents does not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head S
ummary Report").WebTable("Approved Underlying Events").Exist(5) Then
Call chkRHSummaryReportH
eader("CorporateActions","Reports Regional Head Summary Report","Approved Underl
ying Events","RHApprovedUnderlyingEvents")
Else
Reporter.ReportEvent mic
Fail,"Verifying the Report Header of the Table","The Table Approved Underlying E
ventsdoes not Exist"
Environment.Value("TestC
ase_Log") = False
Environment.Value("Execu
tion_Log") = False
End If
Select Case strLinkRequired(intValCounte
r)
Case "Re
ceived Date"
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are generated as per the Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Generated Results for the En
tered Search Criteria","The Reports are NOT generated as per the Search Criteria
"
Environment.Value("Execution_Log") = False
End If
If Browser("CorporateActions").Page("Reports Regional Head Summary Report").WebT
able("New Messages - For Processing").Exist(5) Then
Call SelectLinkinTable("CorporateActions","Reports Regional Head Summary","New M
essages - For Processing",strLinkRequired(intValCounter))
If Browser("CorporateActions").Page("Underlying Notification").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying the Page after clicking on the l
ink" & strLinkRequired(intValCounter),"The page Underlying Notification is dispa
lyed successfully"
Else
Reporter.ReportEvent micFail,"Step 3:Verifying the Page after clicking on the Re
ceived Date link","The page Underlying Notification is NOT dispalyed successfull
y"
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Underlying Notification",DataTable.Value("M
enuPath","RegionalHeadSummary"))
Else
Reporter.ReportEvent micFail,"Verifying if the Table Exists or Not","The Table N
ew Messages - For Processing does not exist and hence not able to click on any o
f the Received Date Value"
Environment.Value("Execution_Log") = False
Call select_Menu("CorporateActions","Reports Regional Head Summary Report",DataT
able.Value("MenuPath","RegionalHeadSummary"))
End If
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC6()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = DataTable.Value("RequiredMessage","RegionalHe
adSummary")
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If InStr(1,strDialogValue,strRequiredValue) <> 0 Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC7()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Search")
strRequiredValue = DataTable.Value("RequiredMessage","RegionalHe
adSummary")
strDialogValue = Browser("CorporateActions").Dialog("Microsoft I
nternet Explorer").Static("MessageText").GetROProperty("text")
If Instr(1,Trim(strDialogValue), Trim(strRequiredValue)) <> 0 Th
en
Reporter.ReportEvent micPass,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s Displayed successfully with the message " & strRequiredValue
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Erro
r Message diaplyed when Searched only with Department Name","The Error Message i
s NOT Displayed successfully with the message " & strRequiredValue
Environment.Value("Execution_Log") = False
End If
Browser("CorporateActions").Dialog("Microsoft Internet Explorer"
).WinButton("OK").Click
Call select_Menu("CorporateActions","Reports Regional Head Summa
ry Search","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function CAReportsRHSummary_TC8()
Environment.Value("TestCase_Log") = True
Call Click_WebElement("CorporateActions","Depositary Receipt Division's"
,"CorporateActions")
' # Step 1
Call Select_Menu("CorporateActions","CorporateActions",DataTable
.Value("MenuPath","RegionalHeadSummary"))
blnFlag = Browser("CorporateActions").Page("Reports Regional Hea
d Summary Search").Exist(1)
If blnFlag = "False" Then
Environment.Value("TestCase_Log") = False
End If
If Environment.Value("TestCase_Log") = True Then
Reporter.ReportEvent micPass,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying
the Reports Regional Head Summary Search page","The Page Reports Regional Head S
ummary Search is NOT Displayed"
Environment.Value("TestCase_Log") = True
End If
' # Step 2:
Call RHSummarySearchCriteria("CorporateActions","Reports Regiona
l Head Summary Search","Clear")
strFromDateValue = get_WebEdit_Value("CorporateActions","Reports
Regional Head Summary Search","FromDate")
strToDateValue = get_WebEdit_Value("CorporateActions","Reports R
egional Head Summary Search","ToDate")
strDepartmentValue = get_WebList_Value("CorporateActions","Repor
ts Regional Head Summary Search","Department")
If strFromDateValue = "" AND strToDateValue = "" AND Trim(strDepartmentV
alue) ="" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the Valu
es in the Fields present after clicking on Clear Image","The Values in the Field
are Cleared and its NULL"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the Valu
es in the Fields present after clicking on Clear Image","The Values in the Field
are NOT Cleared."
Environment.Value("Execution_Log") = False
End If
Call select_Menu("CorporateActions","Reports Regional Head Summary Searc
h","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++