Professional Documents
Culture Documents
==========================
' 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"), "", "", "")
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
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