You are on page 1of 42

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

==========================
' Name of the Script : Master File Reports Underlyin
g Security
' Scope of the Script : This test script covers 24 te
st cases related to the MF reports --> Underlying security
' Author : Mohan Gummadi
' Description : MF Reports Underlying securit
y
' Date and / or Version : 26-11-2008,version 1.0
'===============================================================================
============================

Sub MFReportsUnderlyingSecurity()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
'''''''''Test case count
Const TC_COUNT = 22
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For i= 0 to strBound - 1
strAllPath = strAllPath & strIndVar(i) &"\"
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 "UnderlyingSecurity"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Und
erlyingSecurity","UnderlyingSecurity"
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"), "
", "", "")
Call Execution_log(DataTable.Value(3, "Master"), "", "", "")

'****Invoking IE and navigating to the ADR Login page


DataTable.GetSheet("MFLogin").SetCurrentRow(1)
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
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
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("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","UnderlyingSecurity")
="Y" Then ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '"
& DataTable("TestCaseID","UnderlyingSecurity") & "' ########### ","Execution of
Test Case '" & DataTable("TestCaseDesc","UnderlyingSecurity") & "' Started"
strFuncName = "MFReportsUnderlyi
ngSecurity_TC" & intTCCount & "()" ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution
_Log") = "True"Then
Call Execution_l
og("",Datatable.Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("Test
CaseDesc", "UnderlyingSecurity"), "PASS")
Else
Call Execution_l
og("",Datatable.Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("Test
CaseDesc", "UnderlyingSecurity"), "FAIL")
End If
Reporter.ReportE
vent micDone,"######### END OF TEST CASE - '" & DataTable("TestCaseID","Underlyi
ngSecurity") & "###########","The Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","U
nderlyingSecurity"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurr
entRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Under
lyingSecurity"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW
") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("UnderlyingSe
curity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("Te
stCaseID","UnderlyingSecurity"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub
'***************************************************** TestCase #1 to TestCase #
24******************************
Public Function MFReportsUnderlyingSecurity_TC1()
Environment.Value("TestCase_Log")="True"
'Step #1 To Step #2
'Covered 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 check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on R
eports Link","The Report Link list is containing Underlying Security"
Else
Reporter.ReportEvent micFail,"Step 4: Click on R
eports Link","The Report Link list is not containing Underlying Security"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Name",DataTable.Value("Name","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Type the N
ame which needs to be searched in the Name Edit Box and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Type the N
ame which needs to be searched in the Name Edit Box and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SelectCAEventNameInReport("MasterFile","Reports - Underlyin
g Security Search Results","Item",DataTable.Value("SelectName","UnderlyingSecuri
ty"))
strProfile=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebElement("PageTitle").GetROProperty("innertext"))
If strProfile="Underlying Security Profile" Then
Reporter.ReportEvent micPass,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
not displayed"
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Wait(5)
Call pageCheck_WebEditOR("MasterFile","Underlying Security Profi
le","BoardLot;Comments;CommonCode;CountryofExchange;Currency;LocalCode;MaturityD
ate;Name;ParValue;PSET;ShareClass;SharesOutstanding;UnderlyingExchange;Underlyin
gIsin;UnderlyingSEDOL;UnderlyingTickerSymbol;Yield")
Call pageCheck_WebListOR("MasterFile","Underlying Security Profi
le","CapitalStructure;ShareForm;Status;Type;Unlisted")
Call pageCheck_WebElementOR("MasterFile","Underlying Security Pr
ofile","DetailHeading;DetailTab;FixedIncomeData;Comments;UnderlyingSecurityRelat
edTab")
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("UnderlyingSecurityRelatedTab").Click
Call chkMFProfileHeader("MasterFile","Underlying Security Profil
e","UnderlyingSecurityRelated","UnderlyingSecurityProfileRelated")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he Name link in the report","Undelrying Security Profile page is displayed with
all fields"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he Name link in the report","Undelrying Security Profile page is not displayed w
ith all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Underlying Security Profile","Pro
file;Underlying Security")
strPageTitle=Trim(Browser("MasterFile").Page("Profile - Underlyi
ng Security Search").WebElement("PageTitle").GetROProperty("innertext"))
If strPageTitle="Profile - Underlying Security Search" Then
Reporter.ReportEvent micPass,"Verify Profile Und
erlying security search page is opened or not","Profile-Underlying security Sear
ch page is opened"
Else
Reporter.ReportEvent micFail,"Verify Profile Und
erlying security search page is opened or not","Profile-Underlying security Sear
ch page is notopened"
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Click on P
ROFILE Menu ,Select Underlying Security","Profile - Underlying Security Search o
pened"
Else
Reporter.ReportEvent micFail,"Step 8: Click on P
ROFILE Menu ,Select Underlying Security","Profile - Underlying Security Search n
ot opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #9 To Step #10
Browser("MasterFile").Page("Profile - Underlying Security Search
").WebEdit("IssuerName").Set DataTable.Value("SelectName","UnderlyingSecurity")
Browser("MasterFile").Page("Profile - Underlying Security Search
").Image("Search").Click
Browser("MasterFile").Page("Profile - Underlying Security Search
").WebElement("html tag:=TD","innertext:=" & DataTable.Value("SelectName","Under
lyingSecurity"),"index:=1").Click
strProfile=Trim(Browser("MasterFile").Page("Underlying Security
Profile").WebElement("PageTitle").GetROProperty("innertext"))
If strProfile="Underlying Security Profile" Then
Reporter.ReportEvent micPass,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
displayed"
Else
Reporter.ReportEvent micFail,"Verify Underlying
security profile page is displayed or not","Underlying security profile page is
not displayed"
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call pageCheck_WebEditOR("MasterFile","Underlying Security Profi
le","BoardLot;Comments;CommonCode;CountryofExchange;Currency;LocalCode;MaturityD
ate;Name;ParValue;PSET;ShareClass;SharesOutstanding;UnderlyingExchange;Underlyin
gIsin;UnderlyingSEDOL;UnderlyingTickerSymbol;Yield")
Call pageCheck_WebListOR("MasterFile","Underlying Security Profi
le","CapitalStructure;ShareForm;Status;Type;Unlisted")
Call pageCheck_WebElementOR("MasterFile","Underlying Security Pr
ofile","DetailHeading;DetailTab;FixedIncomeData;Comments;UnderlyingSecurityRelat
edTab")
Browser("MasterFile").Page("Underlying Security Profile").WebEle
ment("UnderlyingSecurityRelatedTab").Click
Call chkMFProfileHeader("MasterFile","Underlying Security Profil
e","UnderlyingSecurityRelated","UnderlyingSecurityProfileRelated")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9 To 10: Clic
k on Name link in the Underliyng security search results","Underlying Security P
rofile page is opened with all fields"
Else
Reporter.ReportEvent micFail,"Step 9 To 10: Clic
k on Name link in the Underliyng security search results","Underlying Security P
rofile page is not opened with all fields"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #11 To Step #13
Call select_Menu("MasterFile","Underlying Security Profile",DataTable.Va
lue("MenuPath","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11 To 13: Typ
e the ISIN which needs to be searched in the Name Edit Box and click Search","Un
derlying Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 11 To 13: Typ
e the ISIN which needs to be searched in the Name Edit Box and click Search","Un
derlying Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #14 To Step #16
Call select_Menu("MasterFile","Reports - Underlying Security Search Resu
lts",DataTable.Value("MenuPath","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16: Typ
e the Status which needs to be searched in the Name Edit Box and click Search","
Underlying Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Typ
e the Status which needs to be searched in the Name Edit Box and click Search","
Underlying Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;Dr Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: From the
Home menu, select DR Home","DR Home page should be displayed with the correspond
ing links"
Else
Reporter.ReportEvent micFail,"Step 17: From the
Home menu, select DR Home","DR Home page should not displayed with the correspon
ding links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Type the S
tatus which needs to be searched in the Name Edit Box and click Search","Underly
ing Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Type the S
tatus which needs to be searched in the Name Edit Box and click Search","Underly
ing Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number in the Field: Underlying ISIN and click Search","Underlying
Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number in the Field: Underlying ISIN and click Search","Underlying
Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number and Status, click Search","Underlying Security Report gener
ated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number and Status, click Search","Underlying Security Report gener
ated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC5()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Capital Structure",DataTable.Value("CapitalStructure","
UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number and Capital Structure, click Search","Underlying Security R
eport generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number and Capital Structure, click Search","Underlying Security R
eport generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Type",DataTable.Value("Type","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number and Type, click Search","Underlying Security Report generat
ed related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number and Type, click Search","Underlying Security Report generat
ed related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC7()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Share Form",DataTable.Value("ShareForm","UnderlyingSecu
rity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number and Share Form, click Search","Underlying Security Report g
enerated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number and Share From, click Search","Underlying Security Report g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC8()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Currency",DataTable.Value("Currency","UnderlyingSecurit
y"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Country of Exchange",DataTable.Value("CountryofExchange
","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN number, Currency and Country of Exchange, click Search","Underlyin
g Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6: Provide Un
derlying ISIN number, Currency and Country of Exchange, click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC9()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL and click Search","Underlying Security Report generated related t
o the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL and click Search","Underlying Security Report generated related to
the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC10()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL and Status and Status, click Search","Underlying Security Report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL and Status, click Search","Underlying Security Report generated re
lated to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC11()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Capital Structure",DataTable.Value("CapitalStructure","
UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL and Capital Structure, click Search","Underlying Security Report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL and Capital Structure, click Search","Underlying Security Report g
enerated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Type",DataTable.Value("Type","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL and Type, click Search","Underlying Security Report generated rel
ated to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL and Type, click Search","Underlying Security Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC13()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Share Form",DataTable.Value("ShareForm","UnderlyingSecu
rity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL and Share Form, click Search","Underlying Security Report generat
ed related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL and Share Form, click Search","Underlying Security Report generate
d related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC14()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Currency",DataTable.Value("Currency","UnderlyingSecurit
y"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Country of Exchange",DataTable.Value("CountryofExchange
","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying SEDOL, Currency and Country of Exchange, click Search","Underlying Secu
rity Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying SEDOL, Currency and Country of Exchange, click Search","Underlying Secur
ity Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC15()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","Un
derlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Currency",DataTable.Value("Currency","UnderlyingSecurit
y"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","Unde
rlyingSecurity"))
Call chkReportValues("MasterFile","Reports - Underlying Security
Search Results","Item","Country of Exchange",DataTable.Value("CountryofExchange
","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Provide Un
derlying ISIN, Underlying SEDOL, Currency and Country of Exchange, click Search"
,"Underlying Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Provide Und
erlying ISIN, Underlying SEDOL, Currency and Country of Exchange, click Search",
"Underlying Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC16()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call FilterCriteria("MasterFile","Reports - Underlying Security
Search Results","Filter",DataTable.Value("FilterColValue","UnderlyingSecurity"),
DataTable.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("Filter
Value","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 & 8: Select
any one from column List, Select the Expression and enter the corresponding va
lue for the selected column List and click OK Button ","Filter Criteria is Verif
ied"
Else
Reporter.ReportEvent micFail,"Step 7 & 8:Select
any one from column List, Select the Expression and enter the Underlying Securi
ty Report generated related to the search criteria entered","Filter Criteria is
not Verified"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Underlying Security Search Resu
lts","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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC17()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call MultipleFilterCriteria("MasterFile","Reports - Underlying Security
Search Results",DataTable.Value("FilterColValue","UnderlyingSecurity"),DataTable
.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("FilterValue","U
nderlyingSecurity"),DataTable.Value("FilterCondition","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 & 8: Verifi
cation of multiple filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 & 8: Verif
ication of multiple filter criteria","Filter criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Underlying Security Search Resu
lts","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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC18()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call FilterCriteria("MasterFile","Reports - Underlying Security
Search Results","Filter",DataTable.Value("FilterColValue","UnderlyingSecurity"),
DataTable.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("Filter
Value","UnderlyingSecurity"))
Call FilterSort_ClkButtons("MasterFile","Reports - Underlying Se
curity Search Results","Filter","Filter:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 & 8: Click
on Delete button","Window with Name Filter: deleted a row with the following fie
lds Column [List box], Expression [List box], Value [Question Mark] and And/Or [
List box]"
Else
Reporter.ReportEvent micFail,"Step 7 & 8: Click
on Delete Button","Window with Name Filter: not deleted a row with the following
fields Column [List box], Expression [List box], Value [Question Mark] and And/
Or [List box]"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Underlying Security Search Resu
lts","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 should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page should not displayed with the correspond
ing links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC19()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - U
nderlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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
'Step #2 To Step #3
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("UnderlyingISINHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Underlying ISIN","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3: In th
e results displayed, click on the ''Underlying ISIN'' header","The results shoul
d be sorted in ascending Order based on 'Underlying ISIN'"
Else
Reporter.ReportEvent micFail,"Step 2 To 3: In th
e results displayed, click on the ''Underlying ISIN'' header","The results shoul
d not be sorted in ascending Order based on 'Underlying ISIN'"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("UnderlyingISINHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Underlying ISIN","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: In th
e results displayed, click on the ''Underlying ISIN'' header","The results shoul
d be sorted in descending Order based on 'Underlying ISIN'"
Else
Reporter.ReportEvent micFail,"Step4 To 5: In the
results displayed, click on the ''Underlying ISIN'' header","The results should
not be sorted in descending Order based on 'Underlying ISIN'"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("UnderlyingSEDOLHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Underlying SEDOL","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: In th
e results displayed, click on the ''Underlying SEDOL'' header","The results shou
ld be sorted in ascending Order based on 'Underlying SEDOL'"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: In th
e results displayed, click on the ''Underlying SEDOL'' header","The results shou
ld not be sorted in ascending Order based on 'Underlying SEDOL'"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("UnderlyingSEDOLHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Underlying SEDOL","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9: In th
e results displayed, click on the ''Underlying SEDOL'' header","The results shou
ld be sorted in descending Order based on 'Underlying SEDOL'"
Else
Reporter.ReportEvent micFail,"Step 8 To 9: In th
e results displayed, click on the ''Underlying SEDOL'' header","The results shou
ld not be sorted in descending Order based on 'Underlying SEDOL'"
Environment.Value("TestCase_Log")="True"
End If
'Step #10 To Step #11
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("NameHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 To 11: In
the results displayed, click on the ''Name'' header","The results should be sort
ed in ascending Order based on 'Name'"
Else
Reporter.ReportEvent micFail,"Step 10 To 11: In
the results displayed, click on the ''Name'' header","The results should not be
sorted in ascending Order based on 'Name'"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To Step #13
Browser("MasterFile").Page("Reports - Underlying Security Search
Results").WebElement("NameHeader").Click
Call chkSortOrder("MasterFile","Reports - Underlying Security Se
arch Results", "Item","Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13: In
the results displayed, click on the ''Name'' header","The results should be sort
ed in descending Order based on 'Name'"
Else
Reporter.ReportEvent micFail,"Step 12 To 13: In
the results displayed, click on the ''Name'' header","The results should not be
sorted in descending Order based on 'Name'"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #16
Call SortCriteria("MasterFile", "Reports - Underlying Security Search Re
sults","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataTable.Val
ue("SortOrder","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16 : Ve
rfication of Sort Criteria","Sort Criteria is verified successfully"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Ver
fication of Sort Criteria","Sort Criteria is not verified successfully"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #17
Call SortCriteria("MasterFile", "Reports - Underlying Security S
earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataT
able.Value("SortOrder","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17 : Verficat
ion of Sort Criteria","Sort Criteria is verified successfully"
Else
Reporter.ReportEvent micFail,"Step 17: Verficati
on of Sort Criteria","Sort Criteria is not verified successfully"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #18
Call SortCriteria("MasterFile", "Reports - Underlying Security S
earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataT
able.Value("SortOrder","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18 : Verficat
ion of Sort Criteria","Sort Criteria is verified successfully"
Else
Reporter.ReportEvent micFail,"Step 18: Verficati
on of Sort Criteria","Sort Criteria is not verified successfully"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
'Step #19
Call SortCriteria("MasterFile", "Reports - Underlying Security S
earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataT
able.Value("SortOrder","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19 : Verficat
ion of Sort Criteria","Sort Criteria is verified successfully"
Else
Reporter.ReportEvent micFail,"Step 19: Verficati
on of Sort Criteria","Sort Criteria is not verified successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","Home;Dr Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: From the
Home menu, select DR Home","DR Home page should be displayed with the correspond
ing links"
Else
Reporter.ReportEvent micFail,"Step 20: From the
Home menu, select DR Home","DR Home page should not displayed with the correspon
ding links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC20()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call MultipleSortCriteria("MasterFile", "Reports - Underlying Se
curity Search Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity
"),DataTable.Value("SortOrder","UnderlyingSecurity"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 & 8: Click
on Add button","Window with Name Sort: added a row with the following fields Col
umn [List box], Order [List box]"
Else
Reporter.ReportEvent micFail,"Step 7 & 8: Click
on Add button","Window with Name Sort:not added a row with the following fields
Column [List box], Order [List box]"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: From the
Home menu, select DR Home","DR Home page should be displayed with the correspond
ing links"
Else
Reporter.ReportEvent micFail,"Step 18: From the
Home menu, select DR Home","DR Home page should not displayed with the correspon
ding links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC21()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call FilterSort_ClkButtons("MasterFile","Reports - Underlying Se
curity Search Results","Sort","Sort:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 & 8: Verfic
ation of multiple Sort Criteria","Sort Criteria is verified successfully"
Else
Reporter.ReportEvent micFail,"Step 7 & 8: Verfic
ation of multiple Sort Criteria","Sort Criteria is not verified successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: From the
Home menu, select DR Home","DR Home page should be displayed with the correspond
ing links"
Else
Reporter.ReportEvent micFail,"Step 18: From the
Home menu, select DR Home","DR Home page should not displayed with the correspon
ding links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsUnderlyingSecurity_TC22()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","UnderlyingSecurity"))
Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Secu
rity Search","Name;UnderlyingISIN;UnderlyingSEDOL")
Call pageCheck_WebListOR("MasterFile","Reports - Underlying Secu
rity Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange"
)
Call pageCheck_Image("MasterFile","Reports - Underlying Security
Search","Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select IDC Underlying Security","Expected fields are displayed in searc
h criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Underlying Security","Expected fields are not displayed in searc
h criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Rep
orts - Underlying Security Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security
Search Results").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Underlying Security Search R
esults","UnderlyingSecurity","ReportLinks")
Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports
- Underlying Security Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur
ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("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","Reports - Underlying Security
Search Results","UnderlyingSecurity")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Enter valu
es for the fields in Underlying Security search page and click Search","Underlyi
ng Security Report generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6:Enter value
s for the fields in Underlying Security search page and click Search","Underlyin
g Security Report generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
var_X = Browser("MasterFile").Page("Reports - Underlying Securit
y Search Results").WebElement("SaveAsExcel").GetROProperty("x")
var_Y = Browser("MasterFile").Page("Reports - Underlying Securit
y Search Results").WebElement("SaveAsExcel").GetROProperty("y")
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Call fnc_wait(Dialog("text:=File Download"))
If Dialog("text:=File Download").Exist(3) Then
Reporter.ReportEvent micPass,"Verify the Save as
Excel popup is opened or not","Save as Excel popup is opened"
Else
Reporter.ReportEvent micFail,"Verify the Save as
Excel popup is opened or not","Save as Excel popup is not opened"
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on S
ave as Excel ","A new window should open and also a pop-up window opened having
options to Open ,Save and cancel the Xls"
Else
Reporter.ReportEvent micFail,"Step 7: Click on S
ave as Excel ","A new window should open and also a pop-up window not opened ha
ving options to Open ,Save and cancel the Xls"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #10
strExcelPath=SaveASExcel("MasterFile","Reports - Underlying Secu
rity Search Results","UnderlyingSecurity","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 to 10: Clic
k on Save option in jsp window","Results iss aved to excel. The saved Excel is h
aving the same content as present in the Reports - Event Creation Results page"
Else
Reporter.ReportEvent micFail,"Step 8 to 10: Clic
k on Save option in jsp window","Results is saved to excel. The saved Excel is n
ot having the same content as present in the Reports - Event Creation Results pa
ge"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Underlying Security Sea
rch Results","HOME;DR Home")
End Function

You might also like