You are on page 1of 139

'===============================================================================

==========================
' Name of the Script : Master File Reports DR
' Scope of the Script : This test script covers 45 te
st cases related to the MF Reports DR
' Author
: Mohan Gummadi
' Description : Master File --
> DR
' Date and / or Version : 23-12-2008,version 1.0
'===============================================================================
============================
Sub MFReportsDR()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
'''''''''Test case count
Const TC_COUNT = 45
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "DR"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","DR"
,"DR"
Environment.Value("strSheetName") = "DR"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom
ePageVerification","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
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
Call login("MasterFile","Login Page","User","MFLogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = True
Environment.Value("TestCase_Log")=True
If DataTable("TestRunFlag","DR")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","DR") & "' ########### ","Execution of Test
Case '" & DataTable("TestCaseDesc","DR") & "' Started"
strFuncName = "MFReportsDR_TC" & intTCCount & "()"
''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = True Th
en
Call Execution_log("",Datatable.
Value("TestCaseID", "DR"), Datatable.Value("TestCaseDesc", "DR"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "DR"), Datatable.Value("TestCaseDesc", "DR"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","DR") & "###########","The Test Case Exec
ution Completed"
End If

strPrevious=Trim(DataTable.Value("TestCaseID","DR"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","DR"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","DR"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************

End Sub

Public Function MFReportsDR_TC1()


Environment.Value("TestCase_Log")="True"
'Step #1 & Step #2
'Login Operation is included in the Driver Script.
'Step #3
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 3: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: User Navig
ate to Reports - > DR - > Search","User is able to navigate to Reports - DR Sear
ch screen"
Else
Reporter.ReportEvent micFail,"Step 4: User Navig
ate to Reports - > DR - > Search","User is not able to navigate to Reports - DR
Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call set_WebEdit_Value ("MasterFile","Reports - DR Search","DRNa
me",DataTable.Value("DRName","DR"))
Call Select_Combo_Value("MasterFile","Reports - DR Search","SU",
DataTable.Value("SU","DR"))
Call Select_Combo_Value("MasterFile","Reports - DR Search","Succ
essor",DataTable.Value("Successor","DR"))
Call Select_Combo_Value("MasterFile","Reports - DR Search","ETDa
te",DataTable.Value("ETDate","DR"))
Call Select_Combo_Value("MasterFile","Reports - DR Search","DREx
change",DataTable.Value("DRExchange","DR"))
Call pageCheck_ImageOR("MasterFile","Reports - DR Search","Sear
ch;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: User has t
o give one or more search criteria","User is able to give search criteria and Se
arch and Clear button are present."
Else
Reporter.ReportEvent micFail,"Step 5:User has to
give one or more search criteria","User is not able to give search criteria and
Search and Clear button are not present."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Reports - DR Search","Clear")
strDRName=Trim(Browser("MasterFile").Page("Reports - DR Search")
.WebEdit("DRName").GetROProperty("value"))
strSU=Trim(Browser("MasterFile").Page("Reports - DR Search").Web
List("SU").GetROProperty("selection"))
strSuccessor=Trim(Browser("MasterFile").Page("Reports - DR Searc
h").WebList("Successor").GetROProperty("selection"))
strETDate=Trim(Browser("MasterFile").Page("Reports - DR Search")
.WebList("ETDate").GetROProperty("selection"))
strDRExchange=Trim(Browser("MasterFile").Page("Reports - DR Sear
ch").WebList("DRExchange").GetROProperty("selection"))
If strDRName="" And strSU="All" And strSuccessor="All" And strE
TDate="All" And strDRExchange="" Then
Reporter.ReportEvent micPass,"Verify all the fie
lds are cleared or not","All the fields are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify all the fie
lds are cleared or not","All the fields are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on c
lear button","Values entered in the field should get cleared"
Else
Reporter.ReportEvent micFail,"Step 6:Click on cl
ear button","Values entered in the field should not get cleared"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #7 To Step #8
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 8: Enter
search criteria and click on Search button","Reports - DR Search page is displa
yed with report"
Else
Reporter.ReportEvent micFail,"Step 7 To 8: Enter
search criteria and click on Search button","Reports - DR Search page is not di
splayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search
Results","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Profile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Profile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("DRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 12: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call select_Menu("MasterFile","DR Profile",DataTable.Value("MenuPath","DR
"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: User clic
ks on the Reports->DR->Search","User is able to navigate to Reports - DR Search
screen"
Else
Reporter.ReportEvent micFail,"Step 13: User clic
ks on the Reports->DR->Search","User is not able to navigate to Reports - DR Sea
rch screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #14
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 14: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search Resu
lts","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 15: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16: From the
Profile Menu Select DR","Profile - DR Search page is opened"
Else
Reporter.ReportEvent micFail,"Step 16: From the
Profile Menu Select DR","Profile - DR Search page is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRNam
e").Set DataTable.Value("DRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 17:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #18
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 18: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call select_Menu("MasterFile","DR Profile",DataTable.Value("Menu
Path","DR"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: User clic
ks on the Reports->DR->Search","User is able to navigate to Reports - DR Search
screen"
Else
Reporter.ReportEvent micFail,"Step 19: User clic
ks on the Reports->DR->Search","User is not able to navigate to Reports - DR Sea
rch screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #20
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 20: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #21
Browser("MasterFile").Page("Reports - DR Search Results").WebTab
le("Item").WebElement("html tag:=TD","index:=0","innertext:=" & DataTable.Value(
"SelectIssuerName","DR")).Click
strDRProfilePage=Trim(Browser("MasterFile").Page("Issuer Profile").WebEl
ement("IssuerProfile").GetROProperty("innertext"))
If strDRProfilePage="Issuer Profile" Then
Reporter.ReportEvent micPass,"Verify Issuer Prof
ile page is displayed or not","Issuer Profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Issuer Prof
ile page is displayed or not","Issuer Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Deta
il").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","Name;MarketingName;CID;Status;CountryofIncorporation;CountryofManagement
;DividendCurrency;EffectiveDepositaries;WebAddress;GroupEmailAddress;EffectiveDa
te;TerminationDate;MarketCapitalization;Industry;GovernmentOwned;StandingCashIns
truction;EffectiveSU")
Call pageCheck_ImageOR("MasterFile","Issuer Prof
ile","CADREvents;ContactRoles;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("BNYC
ontacts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("BNYContacts").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","BNYContacts","IssuerProfileBNYContactsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("UndS
ecMarkets").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("UndSecMarkets").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","UnderlyingSecurityMarket","IssuerProfileUnderlyingSecurityMarketsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Cust
odians").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Custodians").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersPreferredCustodian","IssuerProfileCustodiansTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Advi
sers").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Advisers").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersAdvisers","IssuerProfileAdvisersTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Prod
ucts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Products").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","Products","IssuerProductsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("DrSe
rvices").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("DrServices").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","DRServices","IssuerDRServicesTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Comm
ents").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Comments").Click
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","AppointmentSignature;BusinessProfile;Comments")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21 : User Cli
cks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is
displayed with all the tabs and fields"
Else
Reporter.ReportEvent micFail,"Step 21 : User Cli
cks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is
not displayed with all the tabs and fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #22
Call select_Menu("MasterFile","Issuer Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22: From the
Profile Menu Select DR","Profile - DR Search page is opened"
Else
Reporter.ReportEvent micFail,"Step 22: From the
Profile Menu Select DR","Profile - DR Search page is not opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #23
Browser("MasterFile").Page("Profile - DR Search").WebEdit("Issue
rName").Set DataTable.Value("SelectIssuerName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23:Enter the
'Issuer Name' in the Issuer Name search criteria Field and click Search","Profi
le - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 23:Enter the
'Issuer Name' in the Issuer Name search criteria Field and click Search","Profi
le - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATAB
LE_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #24
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 24: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 24: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","DR Profile",DataTable.Value("Menu
Path","DR"))
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #25
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 17: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #26
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search Resu
lts","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 26: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 26: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #27
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 27: From the
Profile Menu Select DR ","User is able to navigate to Profile - DR Search screen
"
Else
Reporter.ReportEvent micFail,"Step 27: From the
Profile Menu Select DR ","User is not able to navigate to Profile - DR Search sc
reen"
Environment.Value("TestCase_Log")="True"
End If
'Step #28
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRNam
e").Set DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 28:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 28:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #29
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Wait(5)
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
Wait(5)
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call chkMFProfileHeader("MasterFile","DR Profile","CUSIPSummaryA
dd","DRProfileCUSIPSummaryAddTab")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
Wait(5)
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 29: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 29: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #30
Call select_Menu("MasterFile","DR Profile",DataTable.Value("Menu
Path","DR"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 30: User clic
ks on the Reports->DR->Search","User is able to navigate to Reports - DR Search
screen"
Else
Reporter.ReportEvent micFail,"Step 30: User clic
ks on the Reports->DR->Search","User is not able to navigate to Reports - DR Sea
rch screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #31
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 31: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 31: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #32
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search Resu
lts","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 32: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 32: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #33
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 33: From the
Profile Menu Select DR ","User is able to navigate to Profile - DR Search screen
"
Else
Reporter.ReportEvent micFail,"Step 33: From the
Profile Menu Select DR ","User is not able to navigate to Profile - DR Search sc
reen"
Environment.Value("TestCase_Log")="True"
End If
'Step #34
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRNam
e").Set DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 34:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 34:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #35
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 35: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 35: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #36
Call select_Menu("MasterFile","DR Profile",DataTable.Value("Menu
Path","DR"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 36: User clic
ks on the Reports->DR->Search","User is able to navigate to Reports - DR Search
screen"
Else
Reporter.ReportEvent micFail,"Step 36: User clic
ks on the Reports->DR->Search","User is not able to navigate to Reports - DR Sea
rch screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #37
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 37: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 37: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #38
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search Resu
lts","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 38: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 38: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #39
Call select_Menu("MasterFile","DR Profile","Reports;DR;Search")
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search").WebEl
ement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 39: User Navi
gate to Reports - > DR - > Search","User is able to navigate to Reports - DR Sea
rch screen"
Else
Reporter.ReportEvent micFail,"Step 39: User Navi
gate to Reports - > DR - > Search","User is not able to navigate to Reports - DR
Search screen"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #40
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 40: Enter sea
rch criteria and click on Search button","Reports - DR Search page is displayed
with report"
Else
Reporter.ReportEvent micFail,"Step 40: Enter sea
rch criteria and click on Search button","Reports - DR Search page is not displa
yed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #41
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search Resu
lts","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 41: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 41: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #42
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile - D
R Search page is displayed or not","Profile - DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 42: From the
Profile Menu Select DR ","User is able to navigate to Profile - DR Search screen
"
Else
Reporter.ReportEvent micFail,"Step 42: From the
Profile Menu Select DR ","User is not able to navigate to Profile - DR Search sc
reen"
Environment.Value("TestCase_Log")="True"
End If
'Step #43
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRNam
e").Set DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 43:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 43:Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #44
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 44: User clic
ks on the DR name link under DR Name field","User is navigated to DR Profile pag
e"
Else
Reporter.ReportEvent micFail,"Step 44: User clic
ks on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #45
Call select_Menu("MasterFile","DR Profile","Reports;DR;Search")
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search").WebEl
ement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 45: User Navi
gate to Reports - > DR - > Search","User is able to navigate to Reports - DR Sea
rch screen"
Else
Reporter.ReportEvent micFail,"Step 45: User Navi
gate to Reports - > DR - > Search","User is not able to navigate to Reports - DR
Search screen"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - DR Search","Home;DR Hom
e")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","DR Name",DataTable.Value("SelectDRName","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button","Reports - DR Search page
is displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4: Do not sel
ect any search criteria and click on 'Search' button","Reports - DR Search page
is not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search
Results","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 5: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("DRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("DRName","DR")).Click
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 8: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","DR"))
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
'Step #1
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","S/U",DataTable.Value("SU","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Successor",DataTable.Value("Successor","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Security Desc.",DataTable.Value("SecurityDescription","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:In the Repo
rts-DR Search page, in the S/U field choose 'Sponsored', in Successor field choo
se 'Yes' and in security description field choose 'ADR' and click on search","In
the search results that appear for the first three records verify that 'S' appe
ars under the Sponsored field, 'Yes' appears under the Successor field and 'ADR'
appears under Security Desc. Field"
Else
Reporter.ReportEvent micFail,"Step 1:In the Repo
rts-DR Search page, in the S/U field choose 'Sponsored', in Successor field choo
se 'Yes' and in security description field choose 'ADR' and click on search","In
the search results that appear for the first three records verify that 'S' appe
ars under the Sponsored field, 'Yes' not appeared under the Successor field and
'ADR' not appeared under Security Desc. Field"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
Call select_Menu("MasterFile","Reports - DR Search Results",Data
Table.Value("MenuPath","DR"))
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
'Step #2
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","S/U",DataTable.Value("SU","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Successor",DataTable.Value("Successor","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Security Desc.",DataTable.Value("SecurityDescription","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:In the Repo
rts-DR Search page, in the Depository field choose 'Bank of New York Mellon', in
Status field choose 'Effective' and in Type field choose 'Level I' and click on
search","In the search results that appear for the first three records verify t
hat 'Bank of New York Mellon' appears under the Depository field, 'Effective' ap
pears under the Status field and 'Level I' appears under Type Field"
Else
Reporter.ReportEvent micFail,"Step 2:In the Repo
rts-DR Search page, in the Depository field choose 'Bank of New York Mellon', in
Status field choose 'Effective' and in Type field choose 'Level I' and click on
search","In the search results that not appeared for the first three records ve
rify that 'Bank of New York Mellon' appears under the Depository field, 'Effecti
ve' is not appeared under the Status field and 'Level I' not appeared under Type
Field"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
Call select_Menu("MasterFile","Reports - DR Search Results",DataTable.Va
lue("MenuPath","DR"))
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
'Step #3
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","S/U",DataTable.Value("SU","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Successor",DataTable.Value("Successor","DR"))
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","Security Desc.",DataTable.Value("SecurityDescription","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3:In the Repo
rts-DR Search page, in the Industry field choose 'Banks', in Origin field choose
'New Program' and in Relationship Manager field choose 'Drouin, Laurent' and cl
ick on search","In the search results that appear for the first three records ve
rify that 'Banks' appeared under the Industry field, 'New Program' appeared unde
r the Status field and 'Drouin, Laurent' appeared under Type Field"
Else
Reporter.ReportEvent micFail,"Step 3:In the Repo
rts-DR Search page, in the Industry field choose 'Banks', in Origin field choose
'New Program' and in Relationship Manager field choose 'Drouin, Laurent' and cl
ick on search","In the search results that appear for the first three records ve
rify that 'Banks' not appeared under the Industry field, 'New Program' not appea
red under the Status field and 'Drouin, Laurent' not appeared under Type Field"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCAEventNameInReport("MasterFile","Reports - DR Search
Results","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC5()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("From","DR"),"GreaterThan")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("To","DR"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call FilterCriteria("MasterFile","Reports - DR Search Results","
Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression",
"DR"),DataTable.Value("FilterVal","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To7: Verifi
cation of filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("From","DR"),"GreaterThan")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("To","DR"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call FilterCriteria("MasterFile","Reports - DR Search Results","
Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression",
"DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Reports - DR Search Res
ults","Filter","Filter:","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To7: Verifi
cation of filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC7()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("From","DR"),"GreaterThan")
Call DateComparision("MasterFile","Reports - DR Search Results",
"Item","Effective Date",DataTable.Value("To","DR"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call FilterCriteria("MasterFile","Reports - DR Search Results","
Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression",
"DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Reports - DR Search Res
ults","Filter","Filter:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To8: Verifi
cation of filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC8()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Reports - DR Search Results").WebEle
ment("DRNameHeader").Click
Call chkSortOrder("MasterFile","Reports - DR Search Results", "I
tem","DR Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 : Verify th
e Sort order","Records are sorted in ascending order"
Else
Reporter.ReportEvent micFail,"Step 6 : Verify th
e sort order","Records are not sorted in asscending order"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC9()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","DR Name",DataTable.Value("DRName","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call SortCriteria("MasterFile","Reports - DR Search Results","So
rt",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7 : Veri
fication of sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC10()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","DR Name",DataTable.Value("DRName","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call MultipleSortCriteria("MasterFile","Reports - DR Search Resu
lts","Sort",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR")
)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8 : Veri
fication of sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC11()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","DR Name",DataTable.Value("DRName","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call SortCriteria("MasterFile","Reports - DR Search Results","So
rt",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","Reports - DR Search Res
ults","Sort","Sort:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8 : Veri
fication of sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsDR_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
strDrSearch=Trim(Browser("MasterFile").Page("Reports - DR Search
").WebElement("DRSearchPage").GetROProperty("innertext"))
If strDrSearch="Reports - DR Search" Then
Reporter.ReportEvent micPass,"Verify DR Search p
age is displayed or not","DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Search p
age is displayed or not","DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is able to navigate to Reports - DR
Search screen"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
Navigate to Reports - > DR - > Search","User is not able to navigate to Reports
- DR Search screen"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call DRReportsSearchCriteria("MasterFile","Reports - DR Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - DR Search Results").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - DR Search Results","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - DR Search Result
s").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Reports - DR Search Resul
ts")
Call chkReportHeader("MasterFile","Reports - DR Search Results",
"DRSearchResults")
Call chkReportValues("MasterFile","Reports - DR Search Results",
"Item","DR Name",DataTable.Value("DRName","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : Ente
r any search criteria and click on 'Search' button","Reports - DR Search page is
displayed with report"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: Enter
any search criteria and click on 'Search' button","Reports - DR Search page is
not displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #9
Browser("MasterFile").Page("Reports - DR Search Results").WebEle
ment("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Repor
ts - DR Search Results","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - DR Search Results","Hom
e; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC13()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Asset Committee Termi
nation Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Asset Committee Termination Re
port").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Asset Committee Termination Re
port","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Asset Committee Terminatio
n Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Asset Committee Terminati
on Report")
Call chkReportHeader("MasterFile","Asset Committee Termination R
eport","AssetCommitteeTerminationReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
'Step #6
Call SelectCAEventNameInReport("MasterFile","Asset Committee Ter
mination Report","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC14()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Asset Committee Termi
nation Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Asset Committee Termination Re
port").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Asset Committee Termination Re
port","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Asset Committee Terminatio
n Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Asset Committee Terminati
on Report")
Call chkReportHeader("MasterFile","Asset Committee Termination R
eport","AssetCommitteeTerminationReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #10
Call FilterCriteria("MasterFile","Asset Committee Termination Re
port","Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpre
ssion","DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Asset Committee Termina
tion Report","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","Asset Committee Termination
Report","Filter")
Call FilterSort_clkAddDelButton("MasterFile","Asset Committee Te
rmination Report", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("Asset Committee Te
rmination Report").WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("Asset Committee Te
rmination Report").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Asset Committee Termination Report")
.Image("Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 10 : Ver
ification filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 10 : Ver
ification filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Asset Committee Termination Repor
t","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC15()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Asset Committee Termi
nation Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Asset Committee Termination Re
port").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Asset Committee Termination Re
port","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Asset Committee Terminatio
n Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Asset Committee Terminati
on Report")
Call chkReportHeader("MasterFile","Asset Committee Termination R
eport","AssetCommitteeTerminationReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #10
Call SortCriteria("MasterFile","Asset Committee Termination Repo
rt","Sort",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","Asset Committee Termination Rep
ort","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","Asset Committee Termination
Report","Sort")
Call FilterSort_clkAddDelButton("MasterFile","Asset Committee Te
rmination Report", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("Asset Committee Term
ination Report").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("Asset Committee Te
rmination Report").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Asset Committee Termination Report")
.Image("Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 10 : Ver
ification sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 10 : Ver
ification sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Asset Committee Termination Repor
t","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC16()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Asset Committee Termi
nation Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Asset Committee Termination' tab","Asset Committee Termination Report
screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Asset Committee Termination Re
port").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Asset Committee Termination Re
port","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Asset Committee Terminatio
n Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Asset Committee Terminati
on Report")
Call chkReportHeader("MasterFile","Asset Committee Termination R
eport","AssetCommitteeTerminationReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #9
Browser("MasterFile").Page("Asset Committee Termination Report")
.WebElement("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Asset
Committee Termination Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Asset Committee Termination Repor
t","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC17()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Initial Sale Date Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on ' Initial Sale Date Report' tab","Initial Sale Date Search screen is di
splayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Initial Sale Date Report' tab","Initial Sale Date Search screen is no
t displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Initial Sale Date Report").Web
Element("TimeStamp"))
Call chkReportLinks("MasterFile","Initial Sale Date Report","DR"
,"ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Initial Sale Date Report")
.WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Initial Sale Date Report"
)
Call chkReportHeader("MasterFile","Initial Sale Date Report","In
itialSaleDateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCAEventNameInReport("MasterFile","Initial Sale Date R
eport","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC18()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Initial Sale Date Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on 'Initial Sale Date Report' tab","Initial Sale Date Search screen is dis
played"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on ' Initial Sale Date Report' tab","Initial Sale Date Search screen is no
t displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Initial Sale Date Report").Web
Element("TimeStamp"))
Call chkReportLinks("MasterFile","Initial Sale Date Report","DR"
,"ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Initial Sale Date Report")
.WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Initial Sale Date Report"
)
Call chkReportHeader("MasterFile","Initial Sale Date Report","In
itialSaleDateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #10
Call FilterCriteria("MasterFile","Initial Sale Date Report","Fil
ter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression","DR
"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Initial Sale Date Repor
t","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","Initial Sale Date Report","F
ilter")
Call FilterSort_clkAddDelButton("MasterFile","Initial Sale Date
Report", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("Initial Sale Date
Report").WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("Initial Sale Date
Report").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Initial Sale Date Report").Image("Fi
lter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 10 : Ver
ification filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 10 : Ver
ification filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Initial Sale Date Report","Home;
DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC19()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Initial Sale Date Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on 'Initial Sale Date Report' tab","Initial Sale Date Search screen is dis
played"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on 'Initial Sale Date Report","Initial Sale Date Search screen is not disp
layed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Initial Sale Date Report").Web
Element("TimeStamp"))
Call chkReportLinks("MasterFile","Initial Sale Date Report","DR"
,"ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Initial Sale Date Report")
.WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Initial Sale Date Report"
)
Call chkReportHeader("MasterFile","Initial Sale Date Report","In
itialSaleDateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #10
Call SortCriteria("MasterFile","Initial Sale Date Report","Sort"
,DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","Initial Sale Date Repor
t","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","Initial Sale Date Report","S
ort")
Call FilterSort_clkAddDelButton("MasterFile","Initial Sale Date
Report", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("Initial Sale Date Re
port").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("Initial Sale Date
Report").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Initial Sale Date Report").Image("So
rt_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 10 : Ver
ification sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 10 : Ver
ification sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Initial Sale Date Report","Home;
DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC20()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","Initial Sale Date Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on 'Initial Sale Date Report' tab","Initial Sale Date Search screen is dis
played"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on 'Initial Sale Date Report' tab","Initial Sale Date Search screen is not
displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call fnc_wait(Browser("MasterFile").Page("Initial Sale Date Report").Web
Element("TimeStamp"))
Call chkReportLinks("MasterFile","Initial Sale Date Report","DR"
,"ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Initial Sale Date Report")
.WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkDRSearchCriteria("MasterFile","Initial Sale Date Report"
)
Call chkReportHeader("MasterFile","Initial Sale Date Report","In
itialSaleDateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is d
isplayed with report"
Else
Reporter.ReportEvent micFail,"Step 5 : User has
to give values to 'From' and 'To' fields and click on search","Reports page is n
ot displayed with report"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #9
Browser("MasterFile").Page("Initial Sale Date Report").WebElemen
t("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Initi
al Sale Date Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Initial Sale Date Report","Home;
DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC21()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs and their Corresponding Sp
ecialist Firms Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs and their Corresponding Sp
ecialist Firms Report","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs and their Correspondin
g Specialist Firms Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs and their Corresponding Specialis
t Firms Report","DRsandtheirCorrespondingSpecialistFirmsReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify th
e DRs and their Corresponding Specialist Firms","Reports page is displayed with
report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify th
e DRs and their Corresponding Specialist Firms","Reports page is not displayed w
ith report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call SelectDeclaredCUSIP("MasterFile","DRs and their Correspondi
ng Specialist Firms Report","Item",DataTable.Value("SelectIssuerName","DR"))
If Browser("MasterFile").Page("Issuer Profile").WebElement("Deta
il").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","Name;MarketingName;CID;Status;CountryofIncorporation;CountryofManagement
;DividendCurrency;EffectiveDepositaries;WebAddress;GroupEmailAddress;EffectiveDa
te;TerminationDate;MarketCapitalization;Industry;GovernmentOwned;StandingCashIns
truction;EffectiveSU")
Call pageCheck_ImageOR("MasterFile","Issuer Prof
ile","CADREvents;ContactRoles;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("BNYC
ontacts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("BNYContacts").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","BNYContacts","IssuerProfileBNYContactsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("UndS
ecMarkets").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("UndSecMarkets").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","UnderlyingSecurityMarket","IssuerProfileUnderlyingSecurityMarketsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Cust
odians").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Custodians").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersPreferredCustodian","IssuerProfileCustodiansTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Advi
sers").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Advisers").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersAdvisers","IssuerProfileAdvisersTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Prod
ucts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Products").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","Products","IssuerProductsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("DrSe
rvices").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("DrServices").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","DRServices","IssuerDRServicesTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Comm
ents").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Comments").Click
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","AppointmentSignature;BusinessProfile;Comments")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : User Clic
ks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is d
isplayed with all the tabs and fields"
Else
Reporter.ReportEvent micFail,"Step 5 : User Clic
ks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is n
ot displayed with all the tabs and fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Issuer Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Profile - DR Search").WebEdit("IssuerName").
Set DataTable.Value("SelectIssuerName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search
").WebElement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Isser Profi
le DR Search page is displayed or not","Profile - DR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Isser Profi
le DR Search page is displayed or not","Profile - DR Search page is not displaye
d"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Enter the '
Issuer Name' in the Issuer Name search criteria Field and click Search","Profil
e - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7:Enter the '
Issuer Name' in the Issuer Name search criteria Field and click Search","Profil
e - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=1","innertext:=" & DataTable.Value("SelectIssuerName","DR"))
.Click
strDrSearch=Trim(Browser("MasterFile").Page("Issuer Profile").We
bElement("IssuerProfile").GetROProperty("innertext"))
If strDrSearch="Issuer Profile" Then
Reporter.ReportEvent micPass,"Verify Isser Profi
le page is displayed or not","Issuer Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Isser Profi
le page is displayed or not","Issuer Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Deta
il").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","Name;MarketingName;CID;Status;CountryofIncorporation;CountryofManagement
;DividendCurrency;EffectiveDepositaries;WebAddress;GroupEmailAddress;EffectiveDa
te;TerminationDate;MarketCapitalization;Industry;GovernmentOwned;StandingCashIns
truction;EffectiveSU")
Call pageCheck_ImageOR("MasterFile","Issuer Prof
ile","CADREvents;ContactRoles;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("BNYC
ontacts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("BNYContacts").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","BNYContacts","IssuerProfileBNYContactsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("UndS
ecMarkets").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("UndSecMarkets").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","UnderlyingSecurityMarket","IssuerProfileUnderlyingSecurityMarketsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Cust
odians").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Custodians").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersPreferredCustodian","IssuerProfileCustodiansTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Advi
sers").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Advisers").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","IssuersAdvisers","IssuerProfileAdvisersTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Prod
ucts").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Products").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","Products","IssuerProductsTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("DrSe
rvices").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("DrServices").Click
Call chkMFProfileHeader("MasterFile","Issuer Pro
file","DRServices","IssuerDRServicesTab")
End If
If Browser("MasterFile").Page("Issuer Profile").WebElement("Comm
ents").GetROProperty("visible") Then
Browser("MasterFile").Page("Issuer Profile").Web
Element("Comments").Click
Call pageCheck_WebEditOR("MasterFile","Issuer Pr
ofile","AppointmentSignature;BusinessProfile;Comments")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9 : User Clic
ks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is d
isplayed with all the tabs and fields"
Else
Reporter.ReportEvent micFail,"Step 9 : User Clic
ks on any of the options in the 'Issuer Name' cloumn","Issuer Profile page is n
ot displayed with all the tabs and fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Issuer Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC22()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs and their Corresponding Sp
ecialist Firms Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs and their Corresponding Sp
ecialist Firms Report","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs and their Correspondin
g Specialist Firms Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs and their Corresponding Specialis
t Firms Report","DRsandtheirCorrespondingSpecialistFirmsReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is displayed with rep
ort and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is not displayed with
report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #10
Call FilterCriteria("MasterFile","DRs and their Corresponding Sp
ecialist Firms Report","Filter",DataTable.Value("FilterColVal","DR"),DataTable.V
alue("FilterExpression","DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","DRs and their Correspon
ding Specialist Firms Report","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","DRs and their Corresponding
Specialist Firms Report","Filter")
Call FilterSort_clkAddDelButton("MasterFile","DRs and their Corr
esponding Specialist Firms Report", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("DRs and their Corr
esponding Specialist Firms Report").WebList("FilterColumn").GetROProperty("selec
tion"))
strFilterVal=Trim(Browser("MasterFile").Page("DRs and their Corr
esponding Specialist Firms Report").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DRs and their Corresponding Speciali
st Firms Report").Image("Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 10 : Ver
ification filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 5 To 10 : Ver
ification filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","DRs and their Corresponding Speci
alist Firms Report","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC23()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs and their Corresponding Sp
ecialist Firms Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs and their Corresponding Sp
ecialist Firms Report","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs and their Correspondin
g Specialist Firms Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs and their Corresponding Specialis
t Firms Report","DRsandtheirCorrespondingSpecialistFirmsReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is displayed with rep
ort and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is not displayed with
report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call SortCriteria("MasterFile","DRs and their Corresponding Spec
ialist Firms Report","Sort",DataTable.Value("SortColumn","DR"),DataTable.Value("
SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","DRs and their Correspon
ding Specialist Firms Report","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","DRs and their Corresponding
Specialist Firms Report","Sort")
Call FilterSort_clkAddDelButton("MasterFile","DRs and their Corr
esponding Specialist Firms Report", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("DRs and their Corres
ponding Specialist Firms Report").WebList("SortColumn").GetROProperty("selection
"))
strSortOrder=Trim(Browser("MasterFile").Page("DRs and their Corr
esponding Specialist Firms Report").WebList("SortOrder").GetROProperty("selectio
n"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DRs and their Corresponding Speciali
st Firms Report").Image("Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DRs and their Corresponding Speci
alist Firms Report","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC24()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is displayed with two fields From an
d To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs and their Corresponding Specialist Firms' Report","DRs and their C
orresponding Specialist Firms Report screen is not displayed with two fields Fro
m and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs and their Corresponding Sp
ecialist Firms Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs and their Corresponding Sp
ecialist Firms Report","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs and their Correspondin
g Specialist Firms Report").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs and their Corresponding Specialis
t Firms Report","DRsandtheirCorrespondingSpecialistFirmsReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is displayed with rep
ort and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s and their Corresponding Specialist Report","Reports page is not displayed with
report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #8
Browser("MasterFile").Page("DRs and their Corresponding Speciali
st Firms Report").WebElement("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","DRs a
nd their Corresponding Specialist Firms Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","DRs and their Corresponding Speci
alist Firms Report","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC25()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is d
isplayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is n
ot displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs With Pre-Release Report").
WebElement("TimeStamp"))
DateTimetext=Trim(Browser("MasterFile").Page("DRs With Pre-Release Repor
t").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs With Pre-Release Report","DRsWith
PreReleaseReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify th
e Drs with Pre-Release report","Reports page is displayed with report and all th
e fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify th
e DRs with Pre-Release report","Reports page is not displayed with report and al
l the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkReportLinks("MasterFile","DRs With Pre-Release Report","
DR","ReportLinks")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : Check for
the Links in the result screen","Links are displayed successfully"
Else
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call clickRecordinTableDOM("MasterFile","DRs With Pre-Release Re
port","Item",DataTable.Value("SelectDRName","DR"))
Call fnc_wait(Browser("MasterFile").Page("DR Profile").WebElemen
t("DRProfile"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").WebElemen
t("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC26()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is d
isplayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is n
ot displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs With Pre-Release Report").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs With Pre-Release Report","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs With Pre-Release Repor
t").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs With Pre-Release Report","DRsWith
PreReleaseReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s with pre-release report","Reports page is displayed with report and all the fi
leds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s with pre-release report","Reports page is not displayed with report and all th
e fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call FilterCriteria("MasterFile","DRs With Pre-Release Report","
Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression",
"DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","DRs With Pre-Release Re
port","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","DRs With Pre-Release Report"
,"Filter")
Call FilterSort_clkAddDelButton("MasterFile","DRs With Pre-Relea
se Report", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("DRs With Pre-Relea
se Report").WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("DRs With Pre-Relea
se Report").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DRs With Pre-Release Report").Image(
"Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","DRs With Pre-Release Report","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC27()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is d
isplayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is n
ot displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs With Pre-Release Report").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs With Pre-Release Report","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs With Pre-Release Repor
t").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs With Pre-Release Report","DRsWith
PreReleaseReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s with pre-release report","Reports page is displayed with report and all the fi
leds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s with pre-release report","Reports page is not displayed with report and all th
e fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call SortCriteria("MasterFile","DRs With Pre-Release Report","So
rt",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","DRs With Pre-Release Re
port","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","DRs With Pre-Release Report"
,"Sort")
Call FilterSort_clkAddDelButton("MasterFile","DRs With Pre-Relea
se Report", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("DRs With Pre-Release
Report").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("DRs With Pre-Relea
se Report").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DRs With Pre-Release Report").Image(
"Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","DRs With Pre-Release Report","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC28()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is d
isplayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'DRs With Pre-Release' Report","DRs With Pre-Release Report screen is n
ot displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("DRs With Pre-Release Report").
WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DRs With Pre-Release Report","
DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("DRs With Pre-Release Repor
t").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DRs With Pre-Release Report","DRsWith
PreReleaseReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify DR
s with pre-release report","Reports page is displayed with report and all the fi
leds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify DR
s with pre-release report","Reports page is not displayed with report and all th
e fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #8
Browser("MasterFile").Page("DRs With Pre-Release Report").WebEle
ment("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","DRs W
ith Pre-Release Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_MenuOR("MasterFile","DRs With Pre-Release Report","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC29()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP screen is not"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective BNY Sponsored DRs Wi
thout GBD or DRIP").WebElement("TimeStamp"))
DateTimetext=Trim(Browser("MasterFile").Page("Effective BNY Sponsored DR
s Without GBD or DRIP").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective BNY Sponsored DRs Without G
BD or DRIP","EffectiveBNYSponsoredDRsWithoutGBDorDRIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify th
e Effective BNY Sponsored DRs Without GBD or DRIP report","Reports page is displ
ayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify th
e Effective BNY Sponsored DRs Without GBD or DRIP report","Reports page is not d
isplayed with report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkReportLinks("MasterFile","Effective BNY Sponsored DRs Wi
thout GBD or DRIP","DR","ReportLinks")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : Check for
the Links in the result screen","Links are displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 5 : Check for
the Links in the result screen","Links are not displayed successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCAEventNameInReport("MasterFile","Effective BNY Spons
ored DRs Without GBD or DRIP","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC30()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective BNY Sponsored DRs Wi
thout GBD or DRIP").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective BNY Sponsored DRs Wi
thout GBD or DRIP","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective BNY Sponsored DR
s Without GBD or DRIP").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective BNY Sponsored DRs Without G
BD or DRIP","EffectiveBNYSponsoredDRsWithoutGBDorDRIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is displayed
with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is not displ
ayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #10
Call FilterCriteria("MasterFile","Effective BNY Sponsored DRs Wi
thout GBD or DRIP","Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value
("FilterExpression","DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Effective BNY Sponsored
DRs Without GBD or DRIP","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","Effective BNY Sponsored DRs
Without GBD or DRIP","Filter")
Call FilterSort_clkAddDelButton("MasterFile","Effective BNY Spon
sored DRs Without GBD or DRIP", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("Effective BNY Spon
sored DRs Without GBD or DRIP").WebList("FilterColumn").GetROProperty("selection
"))
strFilterVal=Trim(Browser("MasterFile").Page("Effective BNY Spon
sored DRs Without GBD or DRIP").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Effective BNY Sponsored DRs Without
GBD or DRIP").Image("Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 10 : Ver
ification filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 5 To 10 : Ver
ification filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Effective BNY Sponsored DRs Witho
ut GBD or DRIP","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC31()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective BNY Sponsored DRs Wi
thout GBD or DRIP").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective BNY Sponsored DRs Wi
thout GBD or DRIP","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective BNY Sponsored DR
s Without GBD or DRIP").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective BNY Sponsored DRs Without G
BD or DRIP","EffectiveBNYSponsoredDRsWithoutGBDorDRIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is displayed
with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is not displ
ayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call SortCriteria("MasterFile","Effective BNY Sponsored DRs With
out GBD or DRIP","Sort",DataTable.Value("SortColumn","DR"),DataTable.Value("Sort
Order","DR"))
Call FilterSort_ClkButtons("MasterFile","Effective BNY Sponsored
DRs Without GBD or DRIP","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","Effective BNY Sponsored DRs
Without GBD or DRIP","Sort")
Call FilterSort_clkAddDelButton("MasterFile","Effective BNY Spon
sored DRs Without GBD or DRIP", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("Effective BNY Sponso
red DRs Without GBD or DRIP").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("Effective BNY Spon
sored DRs Without GBD or DRIP").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Effective BNY Sponsored DRs Without
GBD or DRIP").Image("Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Effective BNY Sponsored DRs Witho
ut GBD or DRIP","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC32()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective BNY Sponsored DRs Without GBD or DRIP' Report","Effective BN
Y Sponsored DRs Without GBD or DRIP screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective BNY Sponsored DRs Wi
thout GBD or DRIP").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective BNY Sponsored DRs Wi
thout GBD or DRIP","DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective BNY Sponsored DR
s Without GBD or DRIP").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective BNY Sponsored DRs Without G
BD or DRIP","EffectiveBNYSponsoredDRsWithoutGBDorDRIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is displayed
with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective BNY Sponsored DRs Without GBD or DRIP report","Reports page is not displ
ayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #8
Browser("MasterFile").Page("Effective BNY Sponsored DRs Without
GBD or DRIP").WebElement("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Effec
tive BNY Sponsored DRs Without GBD or DRIP","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Effective BNY Sponsored DRs Witho
ut GBD or DRIP","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC33()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective GBD or DRIP' Report","Effective GBD or DRIP Report screen is
displayed with two fields From and To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective GBD or DRIP ' Report","Effective GBD or DRIP Report screen i
s not displayed with two fields From and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective GBD or DRIP Report")
.WebElement("TimeStamp"))
DateTimetext=Trim(Browser("MasterFile").Page("Effective GBD or DRIP Repo
rt").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective GBD or DRIP Report","Effect
iveGBDorDRIPReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify th
e Effective GBD or DRIP Report","Reports page is displayed with report and all t
he fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify th
e Effective GBD or DRIP Report","Reports page is not displayed with report and a
ll the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkReportLinks("MasterFile","Effective GBD or DRIP Report",
"DR","ReportLinks")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : Check for
the Links in the result screen","Links are displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 5 : Check for
the Links in the result screen","Links are not displayed successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCAEventNameInReport("MasterFile","Effective GBD or DR
IP Report","Item",DataTable.Value("SelectDRName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices"
).GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC34()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' ","Effective GBD or DRIP Report screen i
s displayed with two fields From and To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' "," Effective GBD or DRIP Report screen
is not displayed with two fields From and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective GBD or DRIP Report")
.WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective GBD or DRIP Report",
"DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective GBD or DRIP Repo
rt").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective GBD or DRIP Report","Effect
iveGBDorDRIPReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is displayed with report and all the f
ileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is not displayed with report and all t
he fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call FilterCriteria("MasterFile","Effective GBD or DRIP Report",
"Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression"
,"DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Effective GBD or DRIP R
eport","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","Effective GBD or DRIP Report
","Filter")
Call FilterSort_clkAddDelButton("MasterFile","Effective GBD or D
RIP Report", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("Effective GBD or D
RIP Report").WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("Effective GBD or D
RIP Report").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Effective GBD or DRIP Report").Image
("Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Effective GBD or DRIP Report","Ho
me; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC35()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' ","Effective BNY Sponsored DRs Without G
BD or DRIP Report screen is displayed with two fields From and To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' ","Effective BNY Sponsored DRs Without G
BD or DRIP screen is not displayed with two fields From and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective GBD or DRIP Report")
.WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective GBD or DRIP Report",
"DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective GBD or DRIP Repo
rt").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective GBD or DRIP Report","Effect
iveGBDorDRIPReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is displayed with report and all the f
ileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is not displayed with report and all t
he fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call SortCriteria("MasterFile","Effective GBD or DRIP Report","S
ort",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","Effective GBD or DRIP R
eport","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","Effective GBD or DRIP Report
","Sort")
Call FilterSort_clkAddDelButton("MasterFile","Effective GBD or D
RIP Report", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("Effective GBD or DRI
P Report").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("Effective GBD or D
RIP Report").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Effective GBD or DRIP Report").Image
("Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Effective GBD or DRIP Report","Ho
me; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC36()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' ","Effective GBD or DRIP Report screen i
s displayed with two fields From and To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on 'Effective GBD or DRIP Report' ","Effective GBD or DRIP Report screen i
s not displayed with two fields From and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Effective GBD or DRIP Report")
.WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Effective GBD or DRIP Report",
"DR","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page("Effective GBD or DRIP Repo
rt").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Effective GBD or DRIP Report","Effect
iveGBDorDRIPReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is displayed with report and all the f
ileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Ef
fective GBD or DRIP Report","Reports page is not displayed with report and all t
he fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #8
Browser("MasterFile").Page("Effective GBD or DRIP Report").WebEl
ement("DRNameHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Effec
tive GBD or DRIP Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Effective GBD or DRIP Report","Ho
me; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC37()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on Theshold Report","Theshold Report screen is displayed with two fields F
rom and To fields"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on Threshold Report","Threshold Report screen is not displayed with two fi
elds From and To fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Threshold Report").WebElement(
"TimeStamp"))
DateTimetext=Trim(Browser("MasterFile").Page("Threshold Report").WebElem
ent("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Threshold Report","ThresholdReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify th
e Threshold Report","Reports page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify th
e Threshold Report","Reports page is not displayed with report and all the filed
s"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call chkReportLinks("MasterFile","Threshold Report","DR","Report
Links")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : Check for
the Links in the result screen","Links are displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 5 : Check for
the Links in the result screen","Links are not displayed successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call clickRecordinTableDOM("MasterFile","Threshold Report","Item",DataTa
ble.Value("SelectDRName","DR"))
Call fnc_wait(Browser("MasterFile").Page("DR Profile").WebElemen
t("DRProfile"))
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDR
Services").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","DR Profile","Profile;DR")
strDrSearch=Trim(Browser("MasterFile").Page("Profile - DR Search").WebEl
ement("ProfileDRSearch").GetROProperty("innertext"))
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: From the P
rofile Menu Select DR","Profile - DR Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRName").Set
DataTable.Value("SelectDRName","DR")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If strDrSearch="Profile - DR Search" Then
Reporter.ReportEvent micPass,"Verify Profile DR
Search page is displayed or not","ProfileDR Search page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile DR
Search page is displayed or not","Profile DR Search page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
DR Name' in the DR Name search criteria Field and click Search","Profile - DR S
earch page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - DR Search").WebElement("ht
ml tag:=TD","index:=0","innertext:=" & DataTable.Value("SelectDRName","DR")).Cli
ck
strDRProfilePage=Trim(Browser("MasterFile").Page("DR Profile").W
ebElement("DRProfile").GetROProperty("innertext"))
If strDRProfilePage="DR Profile" Then
Reporter.ReportEvent micPass,"Verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServices
").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call pageCheck_WebElementOR("MasterFile","DR Pro
file","Detail;CUSIPSummaryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Name;Type;Depositary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversi
on;Comments;Origin;SU;EffectiveDate;TerminationDate;TerminationReason;SingleList
ed")
Call pageCheck_ImageOR("MasterFile","DR Profile"
,"CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profil
e","SecurityDescription;QualifiedForeignCorp;Status;DateDividendQualified")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSum
maryAdd").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("CUSIPSummaryAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profil
e","Type;CUSIP;DRExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentC
USIP")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Offering
s").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElement("Off
erings").Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offer
ings","DRProfileOfferingsFields")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("Addition
alDRExchanges").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("AdditionalDRExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","AdditionalDRExchanges","DRProfileAdditionalDRExchangeFileds")
End If
If Browser("MasterFile").Page("DR Profile").WebElement("OtherDRS
ervices").GetROProperty("visible") Then
Browser("MasterFile").Page("DR Profile").WebElem
ent("OtherDRServices").Click
Call chkMFProfileHeader("MasterFile","DR Profile
","OtherDRServices","DRProfileOtherDRServicesFields")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: User click
s on the DR name link under DR Name field","User is navigated to DR Profile page
"
Else
Reporter.ReportEvent micFail,"Step 9: User click
s on the DR name link under DR Name field","User is not navigated to DR Profile
page"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","DR Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC38()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on Threshold Report' ","Threshold Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on Threshold Report' "," Threshold Report screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Threshold Report").WebElement(
"TimeStamp"))
Call chkReportLinks("MasterFile","Threshold Report","DR","Report
Links")
DateTimetext=Trim(Browser("MasterFile").Page("Threshold Report").WebElem
ent("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Threshold Report","ThresholdReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Th
reshold Report","Reports page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Th
reshold Report","Reports page is not displayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call FilterCriteria("MasterFile","Threshold Report","Filter",Dat
aTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpression","DR"),DataT
able.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","Threshold Report","Filt
er","Filter:","Delete")
Call click_WebElement("MasterFile","Threshold Report","Filter")
Call FilterSort_clkAddDelButton("MasterFile","Threshold Report",
"Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("Threshold Report")
.WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("Threshold Report")
.WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Threshold Report").Image("Filter_Clo
seButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 5 To 9 : Veri
fication filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","Threshold Report","Home;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC39()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on Threshold Report' ","Threshold Report screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on Threshold Report ","Threshold Report screen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Threshold Report").WebElement(
"TimeStamp"))
Call chkReportLinks("MasterFile","Threshold Report","DR","Report
Links")
DateTimetext=Trim(Browser("MasterFile").Page("Threshold Report").WebElem
ent("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Threshold Report","ThresholdReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Th
reshold Report","Reports page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Th
reshold Report","Reports page is not displayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #9
Call SortCriteria("MasterFile","Threshold Report","Sort",DataTab
le.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","Threshold Report","Sort
","Sort:","Delete")
Call click_WebElement("MasterFile","Threshold Report","Sort")
Call FilterSort_clkAddDelButton("MasterFile","Threshold Report",
"Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("Threshold Report").W
ebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("Threshold Report")
.WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("Threshold Report").Image("Sort_Close
Button").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_MenuOR("MasterFile","Threshold Report","Home;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC40()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on Effective GBD or DRIP Report ","Effective GBD or DRIP Report screen is
displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on Effective GBD or DRIP Report ","Effective GBD or DRIP Report screen is
not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call fnc_wait(Browser("MasterFile").Page("Threshold Report").WebElement(
"TimeStamp"))
Call chkReportLinks("MasterFile","Threshold Report","DR","Report
Links")
DateTimetext=Trim(Browser("MasterFile").Page("Threshold Report").WebElem
ent("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","Threshold Report","ThresholdReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 : Verify Th
reshold Report","Reports page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 4 : Verify Th
reshold Report","Reports page is not displayed with report and all the fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #8
Browser("MasterFile").Page("Threshold Report").WebElement("DRNam
eHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Thres
hold Report","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 5 To 8: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_MenuOR("MasterFile","Threshold Report","Home;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC41()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee s
creen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #6
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is displayed with report and all th
e fileds"
Else
Reporter.ReportEvent micFail,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is not displayed with report and al
l the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SelectCARelationEventName("MasterFile","DSF Forecast Report
- Maximum Fee","Item",DataTable.Value("SelectCUSIPName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile"
).WebElement("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detai
l").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Manag
ementReport").GetROProperty("visible") Then
Browser("MasterFile").Page("CUSIP Profile").WebE
lement("Management Report").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Pro
file","ReportStartDate;ShowPreRelease;InstitutionalHolders;CUSIPLinking;Generate
Reports")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is dis
played with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 7 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is not
displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Click on P
ROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Click on P
ROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIPName").Set DataTable.Value("SelectCUSIPName","DR")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
strDrSearch=Trim(Browser("MasterFile").Page("Profile - CUSIP Sea
rch").WebElement("ProfileCUSIPSearch").GetROProperty("innertext"))
If strDrSearch="Profile - CUSIP Search" Then
Reporter.ReportEvent micPass,"Verify Profile - C
USIP Search Search page is displayed or not","Profile - CUSIP Search page is dis
played"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile Pro
file - CUSIP Search page is displayed or not","Profile - CUSIP Search page is no
t displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Enter the '
CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 9:Enter the '
CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","index:=1","innertext:=" & DataTable.Value("SelectCUSIPName","DR"
)).Click
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile"
).WebElement("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detai
l").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Manag
ementReport").GetROProperty("visible") Then
Browser("MasterFile").Page("CUSIP Profile").WebE
lement("Management Report").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Pro
file","ReportStartDate;ShowPreRelease;InstitutionalHolders;CUSIPLinking;Generate
Reports")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is di
splayed with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 10 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is no
t displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #11
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: User clic
ks on Reports->DR-> Pre defined","User navigates to Reports->Pre defined"
Else
Reporter.ReportEvent micFail,"Step 11: User clic
ks on Reports->DR-> Pre defined","User not navigates to Reports->Pre defined"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To 13
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 12 To 13 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is not displayed with report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call SelectCARelationEventName("MasterFile","DSF Forecast Report
- Maximum Fee","Item",DataTable.Value("SelectCUSIPName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile"
).WebElement("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detai
l").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Manag
ementReport").GetROProperty("visible") Then
Browser("MasterFile").Page("CUSIP Profile").WebE
lement("Management Report").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Pro
file","ReportStartDate;ShowPreRelease;InstitutionalHolders;CUSIPLinking;Generate
Reports")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is di
splayed with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 14 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is no
t displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Click on
PROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Click on
PROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIPName").Set DataTable.Value("SelectCUSIPName","DR")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
strDrSearch=Trim(Browser("MasterFile").Page("Profile - CUSIP Sea
rch").WebElement("ProfileCUSIPSearch").GetROProperty("innertext"))
If strDrSearch="Profile - CUSIP Search" Then
Reporter.ReportEvent micPass,"Verify Profile - C
USIP Search Search page is displayed or not","Profile - CUSIP Search page is dis
played"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile Pro
file - CUSIP Search page is displayed or not","Profile - CUSIP Search page is no
t displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16:Enter the
'CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 16:Enter the
'CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","index:=1","innertext:=" & DataTable.Value("SelectCUSIPName","DR"
)).Click
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile"
).WebElement("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detai
l").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Manag
ementReport").GetROProperty("visible") Then
Browser("MasterFile").Page("CUSIP Profile").WebE
lement("Management Report").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Pro
file","ReportStartDate;ShowPreRelease;InstitutionalHolders;CUSIPLinking;Generate
Reports")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is di
splayed with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 17 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is no
t displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #18
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: User clic
ks on Reports->DR-> Pre defined","User navigates to Reports->Pre defined"
Else
Reporter.ReportEvent micFail,"Step 18: User clic
ks on Reports->DR-> Pre defined","User not navigates to Reports->Pre defined"
Environment.Value("TestCase_Log")="True"
End If
'Step #19 To 20
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19 To 20 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 19 To 20 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is not displayed with report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #21
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee
",DataTable.Value("MenuPath","DR"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: User clic
ks on Reports->DR-> Pre defined","User navigates to Reports->Pre defined"
Else
Reporter.ReportEvent micFail,"Step 21: User clic
ks on Reports->DR-> Pre defined","User not navigates to Reports->Pre defined"
Environment.Value("TestCase_Log")="True"
End If
'Step #22
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report - Maximum
Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22 : Enter se
arch criteria in DSF Forecast Report - Maximum Fee, click on search","Reports pa
ge is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 22 : Enter se
arch criteria in DSF Forecast Report - Maximum Fee, click on search","Reports pa
ge is not displayed with report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("DR").SetCurrentRow(Environment.Value("DATATA
BLE_ROW"))
'Step #23
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee
",DataTable.Value("MenuPath","DR"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23: User clic
ks on Reports->DR-> Pre defined","User navigates to Reports->Pre defined"
Else
Reporter.ReportEvent micFail,"Step 23: User clic
ks on Reports->DR-> Pre defined","User not navigates to Reports->Pre defined"
Environment.Value("TestCase_Log")="True"
End If
'Step #24 To 25
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report - Maximum
Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 24 To 25 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is displayed with report and all the fileds"
Else
Reporter.ReportEvent micFail,"Step 24 To 25 : En
ter search criteria in DSF Forecast Report - Maximum Fee, click on search","Repo
rts page is not displayed with report and all the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #26
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee","Home;
DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 26: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 26: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC42()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 3: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 3: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee s
creen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 : DSF Forec
ast Report - Maximum Fee","Reports page is displayed with report and all the fil
eds"
Else
Reporter.ReportEvent micFail,"Step 5 : DSF Forec
ast Report - Maximum Fee","Reports page is not displayed with report and all the
fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCARelationEventName("MasterFile","DSF Forecast Report
- Maximum Fee","Item",DataTable.Value("SelectCUSIPName","DR"))
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile").WebEle
ment("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detai
l").GetROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is dis
played with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 6 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is not
displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on P
ROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Click on P
ROFILE Menu ,Select CUSIP","Profile - CUSIP Search page is displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIPName").Set DataTable.Value("SelectCUSIPName","DR")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
strDrSearch=Trim(Browser("MasterFile").Page("Profile - CUSIP Sea
rch").WebElement("ProfileCUSIPSearch").GetROProperty("innertext"))
If strDrSearch="Profile - CUSIP Search" Then
Reporter.ReportEvent micPass,"Verify Profile - C
USIP Search Search page is displayed or not","Profile - CUSIP Search page is dis
played"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify Profile Pro
file - CUSIP Search page is displayed or not","Profile - CUSIP Search page is no
t displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Enter the '
CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8:Enter the '
CUSIP Name' in the CUSIP Name search criteria Field and click Search","Profile
- CUSIP Search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","index:=1","innertext:=" & DataTable.Value("SelectCUSIPName","DR"
)).Click
strDRProfilePage=Trim(Browser("MasterFile").Page("CUSIP Profile"
).WebElement("CUSIPProfile").GetROProperty("innertext"))
If strDRProfilePage="CUSIP Profile" Then
Reporter.ReportEvent micPass,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is displayed"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify CUSIP Profi
le page is displayed or not","CUSIP Profile page is not displayed"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
If Browser("MasterFile").Page("CUSIP Profile").WebElement("Detail").G
etROProperty("visible") Then
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRISIN;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;SU;Deposit
ory;F6Threshold;EffectiveFlag;CUSIP;Type;Price;ActiveFlag;PreReleaseLimit;DRSEDO
L;NomineeAccount;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag
")
Call pageCheck_ImageOR("MasterFile","CUSIP Profi
le","CADREvents;PreviewProfile;ProfileAudit;RelatedProfiles")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is dis
played with all tabs and fields in it"
Else
Reporter.ReportEvent micFail,"Step 9 : Click on
the CUSIP link in the searchr esults that populate","CUSIP Profile screen is not
displayed with all tabs and fields in it"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","CUSIP Profile","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC43()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee s
creen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #6
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is displayed with report and all th
e fileds"
Else
Reporter.ReportEvent micFail,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is not displayed with report and a
ll the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #11
Call FilterCriteria("MasterFile","DSF Forecast Report - Maximum
Fee","Filter",DataTable.Value("FilterColVal","DR"),DataTable.Value("FilterExpres
sion","DR"),DataTable.Value("FilterVal","DR"))
Call FilterSort_ClkButtons("MasterFile","DSF Forecast Report - M
aximum Fee","Filter","Filter:","Delete")
Call click_WebElement("MasterFile","DSF Forecast Report - Maximu
m Fee","Filter")
Call FilterSort_clkAddDelButton("MasterFile","DSF Forecast Repor
t - Maximum Fee", "Filter:","Delete")
strFilterCol=Trim(Browser("MasterFile").Page("DSF Forecast Repor
t - Maximum Fee").WebList("FilterColumn").GetROProperty("selection"))
strFilterVal=Trim(Browser("MasterFile").Page("DSF Forecast Repor
t - Maximum Fee").WebEdit("Value").GetROProperty("value"))
If strFilterCol="" And strFilterVal="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the filter column and filter value fields","Values
are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DSF Forecast Report - Maximum Fee").
Image("Filter_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 11 : Ver
ification filter criteria process","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 To 11 : Ver
ification filter criteria process","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee
","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC44()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee s
creen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #6
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is displayed with report and all th
e fileds"
Else
Reporter.ReportEvent micFail,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is not displayed with report and a
ll the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #11
Call SortCriteria("MasterFile","DSF Forecast Report - Maximum Fe
e","Sort",DataTable.Value("SortColumn","DR"),DataTable.Value("SortOrder","DR"))
Call FilterSort_ClkButtons("MasterFile","DSF Forecast Report - M
aximum Fee","Sort","Sort:","Delete")
Call click_WebElement("MasterFile","DSF Forecast Report - Maximu
m Fee","Sort")
Call FilterSort_clkAddDelButton("MasterFile","DSF Forecast Repor
t - Maximum Fee", "Sort:","Delete")
strSortCol=Trim(Browser("MasterFile").Page("DSF Forecast Report
- Maximum Fee").WebList("SortColumn").GetROProperty("selection"))
strSortOrder=Trim(Browser("MasterFile").Page("DSF Forecast Repor
t - Maximum Fee").WebList("SortOrder").GetROProperty("selection"))
If strSortCol="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are cleared"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify whether the
values are cleared or not in the sort column and sort order value fields","Valu
es are not cleared"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Browser("MasterFile").Page("DSF Forecast Report - Maximum Fee").
Image("Sort_CloseButton").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 9 : Veri
fication sort criteria process","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9 : Veri
fication sort criteria process","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee
","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
Public Function MFReportsDR_TC45()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #4
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","D
R"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNames","DR"),DataTable.Value("SelectReportName","
DR"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee i
s displayed"
Else
Reporter.ReportEvent micFail,"Step 1 To 4: User
click on DSF Forecast Report - Maximum Fee","DSF Forecast Report - Maximum Fee s
creen is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5 To Step #6
Call DRReportsSearchCriteria("MasterFile","DSF Forecast Report -
Maximum Fee")
Call fnc_wait(Browser("MasterFile").Page("DSF Forecast Report - Maximum
Fee").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","DSF Forecast Report - Maximum
Fee","DR","ReportLinks")
Call chkDRSearchCriteria("MasterFile","DSF Forecast Report - Max
imum Fee")
DateTimetext=Trim(Browser("MasterFile").Page("DSF Forecast Report - Maxi
mum Fee").WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Call captureScreenshot()
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")=False
Environment.Value("TestCase_Log")=False
End If
Call chkReportHeader("MasterFile","DSF Forecast Report - Maximum Fee","D
SFForecastReportMaximumFee")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is displayed with report and all th
e fileds"
Else
Reporter.ReportEvent micFail,"Step 5 To 6 : DSF
Forecast Report - Maximum Fee","Reports page is not displayed with report and a
ll the fileds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Browser("MasterFile").Page("DSF Forecast Report - Maximum Fee").
WebElement("CUSIPNameHeader").Click
Browser("MasterFile").Page("DSF Forecast Report - Maximum Fee").
WebElement("PageName").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","DSF F
orecast Report - Maximum Fee","DR","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is workin
g successfully"
Else
Reporter.ReportEvent micFail,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is not wo
rking successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","DSF Forecast Report - Maximum Fee
","Home; DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

You might also like