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"))

ADRMF_ReportsUnderlyingSecurity

  • Upload
    imaarha

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 1/42

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

Sub MFReportsUnderlyingSecurity()

'****Declaration of Environmental VariableEnvironment.Value("Execution_Log")="True"

'''''''''Test case countConst TC_COUNT = 22

strVar = Environment("TestDir")strIndVar = Split(strVar,"\",-1,1)strBound = UBound(strIndVar)strAllPath =""

For i= 0 to strBound - 1strAllPath = strAllPath & strIndVar(i) &"\"

Next

strPath = Trim(strPath)strDataPath = strAllPath & "DataTables\"strLibPath = strAllPath & "Function_Library\"

'****Adding MFLogin sheet to the dataTable and Importing the Input 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","ReportHeader","ReportHeader"DataTable.AddSheet "HomePageVerification"DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom

ePageVerification","HomePageVerification"

' Logs the Scenario name Execution in a .csv fileCall Execution_log(DataTable.Value("Scenario_Name", "Master"), "

", "", "")Call Execution_log(DataTable.Value(3, "Master"), "", "", "")

'****Invoking IE and navigating to the ADR Login pageDataTable.GetSheet("MFLogin").SetCurrentRow(1)Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",

"MFLogin"))

Page 2: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 2/42

'****Checking the username, password and login objects in the login page

Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","")

Call pageCheck_WebButton("MasterFile","Login Page","Login","")

'****Entering username and password and login into the masterfile 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("NormalUser"))

Environment.Value("DATATABLE_ROW")=1DataTable.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 tableReporter.ReportEvent micDone,"######## BEGIN TEST CASE - '"

& DataTable("TestCaseID","UnderlyingSecurity") & "' ########### ","Execution ofTest Case '" & DataTable("TestCaseDesc","UnderlyingSecurity") & "' Started"

strFuncName = "MFReportsUnderlyingSecurity_TC" & intTCCount & "()" ' 'Formation of function name

''Call FunctionExecute "Call " & strFuncNameIf Environment.Value("Execution

_Log") = "True"ThenCall Execution_l

og("",Datatable.Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("TestCaseDesc", "UnderlyingSecurity"), "PASS")

ElseCall Execution_l

og("",Datatable.Value("TestCaseID", "UnderlyingSecurity"), Datatable.Value("TestCaseDesc", "UnderlyingSecurity"), "FAIL")

End IfReporter.ReportE

vent micDone,"######### END OF TEST CASE - '" & DataTable("TestCaseID","UnderlyingSecurity") & "###########","The Test Case Execution Completed"

End IfstrPrevious=Trim(DataTable.Value("TestCaseID","U

nderlyingSecurity"))''Increment the test data table rowEnvironment.Value("DATATABLE_ROW") = Environment

.Value("DATATABLE_ROW") + 1DataTable.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

Page 3: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 3/42

DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

strNext=Trim(DataTable.Value("TestCaseID","UnderlyingSecurity"))

Wend

NextCall 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 #3Call 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 to DR Home page after successful login.","Successfully verified the links - " & DataTable.Value("HomePageLinks","HomePageVerification")

ElseReporter.ReportEvent micFail,"Step 3: Navigate t

o DR Home page after successful login.","The links - '" & DataTable.Value("HomePageLinks","HomePageVerification") & "' are not displayed"

Environment.Value("TestCase_Log")="True"End If

'Step #4Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP

ath","UnderlyingSecurity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 4: Click on Reports Link","The Report Link list is containing Underlying Security"

ElseReporter.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 #5Call 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

Page 4: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 4/42

Search","Search;Clear","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 5: Under Reports menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall 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 Name which needs to be searched in the Name Edit Box and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Type the N

ame 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 #7Call SelectCAEventNameInReport("MasterFile","Reports - Underlyin

g Security Search Results","Item",DataTable.Value("SelectName","UnderlyingSecurity"))

strProfile=Trim(Browser("MasterFile").Page("Underlying SecurityProfile").WebElement("PageTitle").GetROProperty("innertext"))

If strProfile="Underlying Security Profile" ThenReporter.ReportEvent micPass,"Verify Underlying

security profile page is displayed or not","Underlying security profile page isdisplayed"

ElseReporter.ReportEvent micFail,"Verify Underlying

Page 5: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 5/42

security profile page is displayed or not","Underlying security profile page isnot displayed"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfWait(5)Call pageCheck_WebEditOR("MasterFile","Underlying Security Profi

le","BoardLot;Comments;CommonCode;CountryofExchange;Currency;LocalCode;MaturityDate;Name;ParValue;PSET;ShareClass;SharesOutstanding;UnderlyingExchange;UnderlyingIsin;UnderlyingSEDOL;UnderlyingTickerSymbol;Yield")

Call pageCheck_WebListOR("MasterFile","Underlying Security Profile","CapitalStructure;ShareForm;Status;Type;Unlisted")

Call pageCheck_WebElementOR("MasterFile","Underlying Security Profile","DetailHeading;DetailTab;FixedIncomeData;Comments;UnderlyingSecurityRelatedTab")

Browser("MasterFile").Page("Underlying Security Profile").WebElement("UnderlyingSecurityRelatedTab").Click

Call chkMFProfileHeader("MasterFile","Underlying Security Profile","UnderlyingSecurityRelated","UnderlyingSecurityProfileRelated")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7: Click on the Name link in the report","Undelrying Security Profile page is displayed withall fields"

ElseReporter.ReportEvent micFail,"Step 7: Click on t

he Name link in the report","Undelrying Security Profile page is not displayed with all fields"

Environment.Value("TestCase_Log")="True"End If

'Step #8Call 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 Underlying security search page is opened or not","Profile-Underlying security Search page is opened"

ElseReporter.ReportEvent micFail,"Verify Profile Und

erlying security search page is opened or not","Profile-Underlying security Search page is notopened"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 8: Click on PROFILE Menu ,Select Underlying Security","Profile - Underlying Security Search opened"

ElseReporter.ReportEvent micFail,"Step 8: Click on P

ROFILE Menu ,Select Underlying Security","Profile - Underlying Security Search not opened"

Environment.Value("TestCase_Log")="True"End If

'Step #9 To Step #10Browser("MasterFile").Page("Profile - Underlying Security Search

").WebEdit("IssuerName").Set DataTable.Value("SelectName","UnderlyingSecurity")

Page 6: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 6/42

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","UnderlyingSecurity"),"index:=1").Click

strProfile=Trim(Browser("MasterFile").Page("Underlying SecurityProfile").WebElement("PageTitle").GetROProperty("innertext"))

If strProfile="Underlying Security Profile" ThenReporter.ReportEvent micPass,"Verify Underlying

security profile page is displayed or not","Underlying security profile page isdisplayed"

ElseReporter.ReportEvent micFail,"Verify Underlying

security profile page is displayed or not","Underlying security profile page isnot displayed"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall pageCheck_WebEditOR("MasterFile","Underlying Security Profi

le","BoardLot;Comments;CommonCode;CountryofExchange;Currency;LocalCode;MaturityDate;Name;ParValue;PSET;ShareClass;SharesOutstanding;UnderlyingExchange;UnderlyingIsin;UnderlyingSEDOL;UnderlyingTickerSymbol;Yield")

Call pageCheck_WebListOR("MasterFile","Underlying Security Profile","CapitalStructure;ShareForm;Status;Type;Unlisted")

Call pageCheck_WebElementOR("MasterFile","Underlying Security Profile","DetailHeading;DetailTab;FixedIncomeData;Comments;UnderlyingSecurityRelatedTab")

Browser("MasterFile").Page("Underlying Security Profile").WebElement("UnderlyingSecurityRelatedTab").Click

Call chkMFProfileHeader("MasterFile","Underlying Security Profile","UnderlyingSecurityRelated","UnderlyingSecurityProfileRelated")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 9 To 10: Clic

k on Name link in the Underliyng security search results","Underlying Security Profile page is opened with all fields"

ElseReporter.ReportEvent micFail,"Step 9 To 10: Clic

k on Name link in the Underliyng security search results","Underlying Security Profile page is not opened with all fields"

Environment.Value("TestCase_Log")="True"End If

Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

'Step #11 To Step #13Call 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 SecuritySearch","Search;Clear","")

Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - Underlying Security Search")

Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying Security

Page 7: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 7/42

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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 11 To 13: Typ

e the ISIN which needs to be searched in the Name Edit Box and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 11 To 13: Typ

e the ISIN 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

Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")+ 1

DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

'Step #14 To Step #16Call 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 SecuritySearch","Search;Clear","")

Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - Underlying Security Search")

Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying SecuritySearch Results").WebElement("TimeStamp"))

Call chkReportLinks("MasterFile","Reports - Underlying Security Search Results","UnderlyingSecurity","ReportLinks")

Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports- Underlying Security Search Results")

DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Security Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" Then

Page 8: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 8/42

Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"

ElseReporter.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 IfCall 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: Type 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"

ElseReporter.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 #17Call 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 theHome menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 17: From the

Home menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

Page 9: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 9/42

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))If DateTimetext<>"" Then

Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"

ElseReporter.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 IfCall 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 Status which needs to be searched in the Name Edit Box and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Type the S

tatus 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 #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding links"

Environment.Value("TestCase_Log")="True"End If

End Function

Page 10: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 10/42

'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Public Function MFReportsUnderlyingSecurity_TC3()

Environment.Value("TestCase_Log")="True"Call click_WebElement("MasterFile","Depositary Receipt Division'

s","MasterFile")

'Step #1 To Step #5Call 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" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying ISIN number in the Field: Underlying ISIN and click Search","Underlying

Page 11: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 11/42

Security Report generated related to the search criteria entered"Else

Reporter.ReportEvent micFail,"Step 6: Provide Underlying 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 #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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

Page 12: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 12/42

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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall 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 SecuritySearch Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying ISIN number and Status, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Provide Un

derlying ISIN number and Status, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu

Page 13: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 13/42

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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - Underlying Security Search")

Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying SecuritySearch Results").WebElement("TimeStamp"))

Call chkReportLinks("MasterFile","Reports - Underlying Security Search Results","UnderlyingSecurity","ReportLinks")

Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports- Underlying Security Search Results")

DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Security Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Capital Structure",DataTable.Value("CapitalStructure","

UnderlyingSecurity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Provide Underlying ISIN number and Capital Structure, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Provide Un

derlying ISIN number and Capital Structure, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call select_Menu("MasterFile","Reports - Underlying Security Sea

Page 14: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 14/42

rch Results","Home;Dr Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 7: From the Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Page 15: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 15/42

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Type",DataTable.Value("Type","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying ISIN number and Type, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.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 #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

Page 16: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 16/42

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))If DateTimetext<>"" Then

Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"

ElseReporter.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 IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Share Form",DataTable.Value("ShareForm","UnderlyingSecu

rity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Provide Underlying ISIN number and Share Form, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Provide Un

derlying ISIN number and Share From, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding links"

Page 17: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 17/42

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 #5Call 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 Security Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange")

Call pageCheck_Image("MasterFile","Reports - Underlying SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Page 18: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 18/42

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch 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" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying ISIN number, Currency and Country of Exchange, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6: Provide Un

derlying ISIN number, 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 #7Call select_Menu("MasterFile","Reports - Underlying Security Search Results","Home;Dr Home")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7: From the H

ome menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

Else

Page 19: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 19/42

Reporter.ReportEvent micFail,"Step 5: Under Reports menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" Then

Reporter.ReportEvent micPass,"Verify the Date and Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying SEDOL and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Provide Und

erlying SEDOL and click Search","Underlying Security Report generated related tothe search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding links"

Environment.Value("TestCase_Log")="True"End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Page 20: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 20/42

+++++++++++++++++

Public Function MFReportsUnderlyingSecurity_TC10()

Environment.Value("TestCase_Log")="True"Call click_WebElement("MasterFile","Depositary Receipt Division'

s","MasterFile")

'Step #1 To Step #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 5: Under Reports menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Status",DataTable.Value("Status","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying SEDOL and Status and Status, click Search","Underlying Security Report

Page 21: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 21/42

generated related to the search criteria entered"Else

Reporter.ReportEvent micFail,"Step 6:Provide Underlying SEDOL and Status, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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

Page 22: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 22/42

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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall 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 SecuritySearch Results","Item","Capital Structure",DataTable.Value("CapitalStructure","

UnderlyingSecurity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Provide Underlying SEDOL and Capital Structure, click Search","Underlying Security Reportgenerated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Provide Und

erlying SEDOL and Capital Structure, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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

Page 23: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 23/42

Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","UnderlyingSecurity"))

Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Security Search","Name;UnderlyingISIN;UnderlyingSEDOL")

Call pageCheck_WebListOR("MasterFile","Reports - Underlying Security Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange")

Call pageCheck_Image("MasterFile","Reports - Underlying SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Type",DataTable.Value("Type","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying SEDOL and Type, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Provide Und

erlying SEDOL and Type, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7

Page 24: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 24/42

Call select_Menu("MasterFile","Reports - Underlying Security Search Results","Home;Dr Home")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7: From the H

ome menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"

Page 25: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 25/42

ElseReporter.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 IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Share Form",DataTable.Value("ShareForm","UnderlyingSecu

rity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Provide Underlying SEDOL and Share Form, click Search","Underlying Security Report generated related to the search criteria entered"

Else

Reporter.ReportEvent micFail,"Step 6:Provide Underlying SEDOL and Share Form, click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

Page 26: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 26/42

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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 Security Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch 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" ThenReporter.ReportEvent micPass,"Step 6: Provide Un

derlying SEDOL, Currency and Country of Exchange, click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Provide Und

erlying 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 #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the correspondi

Page 27: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 27/42

ng links"Else

Reporter.ReportEvent micFail,"Step 7: From the Home menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","UnderlyingSecurity"))

Call pageCheck_WebEditOR("MasterFile","Reports - Underlying Security Search","Name;UnderlyingISIN;UnderlyingSEDOL")

Call pageCheck_WebListOR("MasterFile","Reports - Underlying Security Search","Status;CapitalStructure;Type;ShareForm;Currency;CountryofExchange")

Call pageCheck_Image("MasterFile","Reports - Underlying SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

Page 28: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 28/42

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying SEDOL",DataTable.Value("UnderlyingSEDOL","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Currency",DataTable.Value("Currency","UnderlyingSecurit

y"))Call chkReportValues("MasterFile","Reports - Underlying Security

Search Results","Item","Underlying ISIN",DataTable.Value("UnderlyingISIN","UnderlyingSecurity"))

Call chkReportValues("MasterFile","Reports - Underlying SecuritySearch Results","Item","Country of Exchange",DataTable.Value("CountryofExchange

","UnderlyingSecurity"))If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Provide Underlying 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 Underlying 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 #7Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 7: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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

Page 29: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 29/42

Search","Search;Clear","")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 5: Under Reports menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Enter value

s for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7 To Step #8Call FilterCriteria("MasterFile","Reports - Underlying Security

Search Results","Filter",DataTable.Value("FilterColValue","UnderlyingSecurity"),DataTable.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("FilterValue","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7 & 8: Select

any one from column List, Select the Expression and enter the corresponding value for the selected column List and click OK Button ","Filter Criteria is Verified"

ElseReporter.ReportEvent micFail,"Step 7 & 8:Select

any one from column List, Select the Expression and enter the Underlying Security Report generated related to the search criteria entered","Filter Criteria is

Page 30: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 30/42

not Verified"Environment.Value("TestCase_Log")="True"

End If

'Step #9Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 9: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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

Page 31: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 31/42

ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Enter value

s for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"Environment.Value("TestCase_Log")="True"

End If

'Step #7 To Step #8Call MultipleFilterCriteria("MasterFile","Reports - Underlying Security

Search Results",DataTable.Value("FilterColValue","UnderlyingSecurity"),DataTable.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("FilterValue","UnderlyingSecurity"),DataTable.Value("FilterCondition","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7 & 8: Verifi

cation of multiple filter criteria","Filter criteria is working correctly"Else

Reporter.ReportEvent micFail,"Step 7 & 8: Verification of multiple filter criteria","Filter criteria is not working correctly"

Environment.Value("TestCase_Log")="True"End If

'Step #9Call 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 Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 9: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding links"

Environment.Value("TestCase_Log")="True"End If

End Function

'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Public Function MFReportsUnderlyingSecurity_TC18()

Environment.Value("TestCase_Log")="True"

Page 32: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 32/42

Call click_WebElement("MasterFile","Depositary Receipt Division's","MasterFile")

'Step #1 To Step #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"Environment.Value("TestCase_Log")="True"

End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Enter value

s for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7 To Step #8Call FilterCriteria("MasterFile","Reports - Underlying Security

Page 33: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 33/42

Search Results","Filter",DataTable.Value("FilterColValue","UnderlyingSecurity"),DataTable.Value("FilterExpression","UnderlyingSecurity"),DataTable.Value("FilterValue","UnderlyingSecurity"))

Call FilterSort_ClkButtons("MasterFile","Reports - Underlying Security Search Results","Filter","Filter:","Delete")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 7 & 8: Click

on Delete button","Window with Name Filter: deleted a row with the following fields Column [List box], Expression [List box], Value [Question Mark] and And/Or [List box]"

ElseReporter.ReportEvent micFail,"Step 7 & 8: Click

on Delete Button","Window with Name Filter: not deleted a row with the followingfields 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 Results","Home;Dr Home")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 9: From the Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 9: From the H

ome menu, select DR Home","DR Home page should not displayed with the corresponding 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 #1Call 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 SecuritySearch","Search;Clear","")

Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - Underlying Security Search")

Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying SecuritySearch Results").WebElement("TimeStamp"))

Call chkReportLinks("MasterFile","Reports - Underlying Security Search Results","UnderlyingSecurity","ReportLinks")

Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports

Page 34: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 34/42

- Underlying Security Search Results")DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur

ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and 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 #3Browser("MasterFile").Page("Reports - Underlying Security Search

Results").WebElement("UnderlyingISINHeader").ClickCall chkSortOrder("MasterFile","Reports - Underlying Security Se

arch Results", "Item","Underlying ISIN","Ascending")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 2 To 3: In the results displayed, click on the ''Underlying ISIN'' header","The results should be sorted in ascending Order based on 'Underlying ISIN'"

ElseReporter.ReportEvent micFail,"Step 2 To 3: In th

e results displayed, click on the ''Underlying ISIN'' header","The results should not be sorted in ascending Order based on 'Underlying ISIN'"

Environment.Value("TestCase_Log")="True"End If

'Step #4 To Step #5Browser("MasterFile").Page("Reports - Underlying Security Search

Results").WebElement("UnderlyingISINHeader").ClickCall 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 the results displayed, click on the ''Underlying ISIN'' header","The results should be sorted in descending Order based on 'Underlying ISIN'"

ElseReporter.ReportEvent micFail,"Step4 To 5: In the

results displayed, click on the ''Underlying ISIN'' header","The results shouldnot be sorted in descending Order based on 'Underlying ISIN'"

Environment.Value("TestCase_Log")="True"End If

'Step #6 To Step #7Browser("MasterFile").Page("Reports - Underlying Security Search

Results").WebElement("UnderlyingSEDOLHeader").ClickCall 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 the results displayed, click on the ''Underlying SEDOL'' header","The results should be sorted in ascending Order based on 'Underlying SEDOL'"

ElseReporter.ReportEvent micFail,"Step 6 To 7: In th

e results displayed, click on the ''Underlying SEDOL'' header","The results should not be sorted in ascending Order based on 'Underlying SEDOL'"

Environment.Value("TestCase_Log")="True"

Page 35: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 35/42

End If

'Step #8 To Step #9Browser("MasterFile").Page("Reports - Underlying Security Search

Results").WebElement("UnderlyingSEDOLHeader").ClickCall 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 the results displayed, click on the ''Underlying SEDOL'' header","The results should be sorted in descending Order based on 'Underlying SEDOL'"

ElseReporter.ReportEvent micFail,"Step 8 To 9: In th

e results displayed, click on the ''Underlying SEDOL'' header","The results should 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 SearchResults").WebElement("NameHeader").ClickCall 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: Inthe results displayed, click on the ''Name'' header","The results should be sorted in ascending Order based on 'Name'"

ElseReporter.ReportEvent micFail,"Step 10 To 11: In

the results displayed, click on the ''Name'' header","The results should not besorted in ascending Order based on 'Name'"

Environment.Value("TestCase_Log")="True"End If

'Step #12 To Step #13Browser("MasterFile").Page("Reports - Underlying Security Search

Results").WebElement("NameHeader").ClickCall 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: Inthe results displayed, click on the ''Name'' header","The results should be sorted in descending Order based on 'Name'"

ElseReporter.ReportEvent micFail,"Step 12 To 13: In

the results displayed, click on the ''Name'' header","The results should not besorted in descending Order based on 'Name'"

Environment.Value("TestCase_Log")="True"End If

'Step #14 To Step #16Call SortCriteria("MasterFile", "Reports - Underlying Security Search Re

sults","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataTable.Value("SortOrder","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 14 To 16 : Ve

rfication of Sort Criteria","Sort Criteria is verified successfully"Else

Reporter.ReportEvent micFail,"Step 14 To 16: Verfication of Sort Criteria","Sort Criteria is not verified successfully"

Page 36: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 36/42

Environment.Value("TestCase_Log")="True"End If

Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

'Step #17Call SortCriteria("MasterFile", "Reports - Underlying Security S

earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataTable.Value("SortOrder","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 17 : Verficat

ion of Sort Criteria","Sort Criteria is verified successfully"Else

Reporter.ReportEvent micFail,"Step 17: Verfication of Sort Criteria","Sort Criteria is not verified successfully"

Environment.Value("TestCase_Log")="True"

End IfEnvironment.Value("DATATABLE_ROW") = Environment.Value("DATATABL

E_ROW") + 1DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environme

nt.Value("DATATABLE_ROW"))

'Step #18Call SortCriteria("MasterFile", "Reports - Underlying Security S

earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataTable.Value("SortOrder","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 18 : Verficat

ion of Sort Criteria","Sort Criteria is verified successfully"Else

Reporter.ReportEvent micFail,"Step 18: Verfication of Sort Criteria","Sort Criteria is not verified successfully"

Environment.Value("TestCase_Log")="True"End If

Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1

DataTable.GetSheet("UnderlyingSecurity").SetCurrentRow(Environment.Value("DATATABLE_ROW"))

'Step #19Call SortCriteria("MasterFile", "Reports - Underlying Security S

earch Results","Sort",DataTable.Value("SortColValue","UnderlyingSecurity"),DataTable.Value("SortOrder","UnderlyingSecurity"))

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 19 : Verficat

ion of Sort Criteria","Sort Criteria is verified successfully"Else

Reporter.ReportEvent micFail,"Step 19: Verfication of Sort Criteria","Sort Criteria is not verified successfully"

Environment.Value("TestCase_Log")="True"End If

'Step #20Call select_Menu("MasterFile","Reports - Underlying Security Sea

rch Results","Home;Dr Home")

Page 37: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 37/42

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 20: From the

Home menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 20: From the

Home menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date an

Page 38: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 38/42

d Timestamp of the report","Date and Timestamp is not displayed successfully"Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Enter value

s for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7 To Step #8Call 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: Clickon Add button","Window with Name Sort: added a row with the following fields Column [List box], Order [List box]"

ElseReporter.ReportEvent micFail,"Step 7 & 8: Click

on Add button","Window with Name Sort:not added a row with the following fieldsColumn [List box], Order [List box]"

Environment.Value("TestCase_Log")="True"End If

'Step #9Call 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 theHome menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 18: From the

Home menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu

Page 39: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 39/42

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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call MFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports - Underlying Security Search")

Call fnc_wait(Browser("MasterFile").Page("Reports - Underlying SecuritySearch Results").WebElement("TimeStamp"))

Call chkReportLinks("MasterFile","Reports - Underlying Security Search Results","UnderlyingSecurity","ReportLinks")

Call chkMFReportsUnderlyingSecuritySearchCriteria("MasterFile","Reports- Underlying Security Search Results")

DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Security Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

ElseReporter.ReportEvent micFail,"Step 6:Enter value

s for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7 To Step #8Call 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: Verfication of multiple Sort Criteria","Sort Criteria is verified successfully"

Else

Page 40: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 40/42

Reporter.ReportEvent micFail,"Step 7 & 8: Verfication of multiple Sort Criteria","Sort Criteria is not verified successfully"

Environment.Value("TestCase_Log")="True"End If

'Step #9Call 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 theHome menu, select DR Home","DR Home page should be displayed with the corresponding links"

ElseReporter.ReportEvent micFail,"Step 18: From the

Home menu, select DR Home","DR Home page should not displayed with the corresponding 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 #5Call 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 SecuritySearch","Search;Clear","")

If Environment.Value("TestCase_Log")="True" ThenReporter.ReportEvent micPass,"Step 5: Under Repo

rts menu select IDC Underlying Security","Expected fields are displayed in search criteria"

ElseReporter.ReportEvent micFail,"Step 5: Under Repo

rts menu select Underlying Security","Expected fields are not displayed in search criteria"

Environment.Value("TestCase_Log")="True"End If

'Step #6Call 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

Page 41: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 41/42

- Underlying Security Search Results")DateTimetext=Trim(Browser("MasterFile").Page("Reports - Underlying Secur

ity Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outertext"))

If DateTimetext<>"" ThenReporter.ReportEvent micPass,"Verify the Date an

d Timestamp of the report",DateTimetext&" is displayed successfully"Else

Reporter.ReportEvent micFail,"Verify the Date and Timestamp of the report","Date and Timestamp is not displayed successfully"

Environment.Value("Execution_Log")="False"Environment.Value("TestCase_Log")="False"

End IfCall chkReportHeader("MasterFile","Reports - Underlying Security

Search Results","UnderlyingSecurity")If Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 6: Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Else Reporter.ReportEvent micFail,"Step 6:Enter values for the fields in Underlying Security search page and click Search","Underlying Security Report generated related to the search criteria entered"

Environment.Value("TestCase_Log")="True"End If

'Step #7var_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 asExcel popup is opened or not","Save as Excel popup is opened"

ElseReporter.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 IfIf Environment.Value("TestCase_Log")="True" Then

Reporter.ReportEvent micPass,"Step 7: Click on Save 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 Save as Excel ","A new window should open and also a pop-up window not opened having options to Open ,Save and cancel the Xls"

Environment.Value("TestCase_Log")="True"End If

'Step #8 To Step #10strExcelPath=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

Page 42: ADRMF_ReportsUnderlyingSecurity

8/7/2019 ADRMF_ReportsUnderlyingSecurity

http://slidepdf.com/reader/full/adrmfreportsunderlyingsecurity 42/42

k on Save option in jsp window","Results iss aved to excel. The saved Excel is having the same content as present in the Reports - Event Creation Results page"

ElseReporter.ReportEvent micFail,"Step 8 to 10: Clic

k on Save option in jsp window","Results is saved to excel. The saved Excel is not having the same content as present in the Reports - Event Creation Results page"

Environment.Value("TestCase_Log")="True"End IfCall select_Menu("MasterFile","Reports - Underlying Security Sea

rch Results","HOME;DR Home")

End Function