You are on page 1of 204

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

==========================
' Name of the Script : MasterFile Reports Company
' Scope of the Script : This test script covers 60 te
st cases related to the MF Reports --> Company
' Author : Bhagya
Rekha
' Description : MasterFile Reports Compan
y
' Date and / or Version : 06-11-2008,version 1.0
'===============================================================================
============================
Sub MFReportsCompany()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")= "True"
'''''''''Test case count
Const TC_COUNT = 66
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "MFProfileCompanyTC.vbs"
'****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 "Company"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Com
pany","Company"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Hom
ePageVerification","HomePageVerification"
Environment.Value("strSheetName") = "Company"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
Call Login("MasterFile","Login Page","User","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","Company")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"##
###### BEGIN TEST CASE - '" & DataTable("TestCaseID","Company") & "' ###########
","Execution of Test Case '" & DataTable("TestCaseDesc","Company") & "' Started
"
strFuncName = DataTable.Value("F
unctionName","Company") ''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution
_Log") = "True" Then
Call Execution_l
og("",Datatable.Value("TestCaseID", "Company"), Datatable.Value("TestCaseDesc",
"Company"), "PASS")
Else
Call Execution_l
og("",Datatable.Value("TestCaseID", "Company"), Datatable.Value("TestCaseDesc",
"Company"), "FAIL")
End If
Reporter.ReportEvent micDone,"##
####### END OF TEST CASE - '" & DataTable("TestCaseID","Company") & "###########
","The Test Case Execution Completed"
End If
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("Company").SetCurrentRow(Envi
ronment.Value("DATATABLE_ROW"))
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++
'***************************************************** TestCase #1 to TestCase #
44******************************
Public Function MFReportsCompany_TC1()
Environment.Value("TestCase_Log")= "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")= "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call click_WebElement("MasterFile","Reports - Adviser Search Res
ults","Search")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call set_WebEdit_Value("MasterFile","Reports - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyName")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call SearchCompanyName("MasterFile","Reports - Adviser Search Re
sults",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Adviser Profile").WebE
dit("Details_Name"))
Wait(10)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Advis
er Profile")
If Browser("MasterFile").Page("Adviser Profile").Exist(2) And En
vironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Adviser pr
ofile screen must be opened and collecting the Data","Adviser profile screen is
displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 7: Adviser pr
ofile screen must be opened and collecting the Data","Adviser profile screen is
not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Adviser Profile",DataTable.Value(
"ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Prof
ile menu select Company-Adviser and entering Company name in the search criteria
","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 8: Under Prof
ile menu select Company-Adviser and entering Company name in the search criteria
","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Adviser Profile").WebE
dit("Details_Name"))
If Browser("MasterFile").Page("Adviser Profile").Exist(2) And Environmen
t.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Adviser pr
ofile screen must be opened","Adviser profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Adviser pr
ofile screen must be opened","Adviser profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Wait(10)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Advis
er Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Adviser Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Company-Search and Adviser should be selected in Company combo
box","Adviser is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Company-Search and Adviser should be selected in Company combo
box","Adviser is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
Status",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: Under Rep
orts menu select Company-Search and Adviser should be selected in Company combo
box","Adviser is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 13: Under Rep
orts menu select Company-Search and Adviser should be selected in Company combo
box","Adviser is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'As per Manual Regression TC Step Count mismatches
'Step #14
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Adviser_Role","Exchange")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Adviser_Status",DataTable.Value("Adviser_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 15
Call chkReportLinks("MasterFile","Reports - Adviser Search Resul
ts","Company","ReportLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 15: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Else
Reporter.ReportEvent micFail,"Step 15: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 16: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC2()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Adviser Search Results","Re
portsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: 4.Do not s
elect any search criteria and click on 'Search' button.","Expected results of th
e Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC3()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 2: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #3
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Custodian_AgentType",DataTable.Value("Custodian_AgentType","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","Custodian_AgentType")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Depositary
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Depositary
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 5: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Issuer Search Results",
DataTable.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Issuer_Industry",DataTable.Value("Issuer_Industry","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","Issuer_Industry")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Depositary
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Depositary
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW")+1
DataTable.GetSheet("Company").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Subcompany Search Results",Data
Table.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Vendor_Type",DataTable.Value("Vendor_Type","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","Vendor_Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC4()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Adviser Search Re
sults",DataTable.Value("CompanyName","Company"),"")
If Browser("MasterFile").Page("Adviser Profile").Exist(2) And En
vironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Adviser pr
ofile screen must be opened","Adviser profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Adviser pr
ofile screen must be opened","Adviser profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Browser("MasterFile").Back
If Browser("MasterFile").Page("Reports - Adviser Search Results"
).Exist(2) And Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Reports -
Adviser Search Results screen must be opened","Reports - Adviser Search Results
screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Reports -
Adviser Search Results screen must be opened","Reports - Adviser Search Results
screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC5()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Adviser Search Re
sults","",10)
Wait(5)
If Browser("MasterFile").Page("Enterprise Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Enterprise
profile screen must be opened","Enterprise profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Enterprise
profile screen must be opened","Enterprise profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 7: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC6()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Advise
r Search Results",DataTable.Value("FilterColumn","Company"),DataTable("FilterExp
ression","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC7()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Adviser Search R
esults","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder","Co
mpany"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC8()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Adviser Search Results
","Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Adv
iser Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Adviser Search Results"
,"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC9()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call click_WebElement("MasterFile","Reports - Broker Search Resu
lts","Search")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call set_WebEdit_Value("MasterFile","Reports - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","CompanyName")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call SearchCompanyName("MasterFile","Reports - Broker Search Res
ults",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Broker Profile").WebEd
it("Details_Name"))
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Broke
r Profile")
If Browser("MasterFile").Page("Broker Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Broker pro
file screen must be opened and collecting the Data","Broker profile screen is di
splayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 7: Broker pro
file screen must be opened and collecting the Data","Broker profile screen is no
t displayed and values not noted"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Broker Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Prof
ile menu select Company-Broker and entering Company name in the search criteria"
,"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 8: Under Prof
ile menu select Company-Broker and entering Company name in the search criteria"
,"User unable to navigate to Profile - Company Search screen"
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Broker Profile").WebEd
it("Details_Name"))
If Browser("MasterFile").Page("Broker Profile").Exist(2) And Environment
.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Broker pro
file screen must be opened","Broker profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Broker pro
file screen must be opened","Broker profile screen is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Wait(10)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Broke
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Broker Profile",DataTable.Value("MenuPath
","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Company-Search and Broker should be selected in Company combo b
ox","Broker is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Company-Search and Broker should be selected in Company combo b
ox","Broker is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
Status",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Broker se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Broker se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Broker Search Results",
DataTable.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Broker_Role","Settlement")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Broker_Status",DataTable.Value("Broker_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: Broker se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 13: Broker se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 14
Call chkReportLinks("MasterFile","Reports - Broker Search Result
s","Company","ReportLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Else
Reporter.ReportEvent micFail,"Step 14: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 15: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 15: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC10()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Broker Search Results","Rep
ortsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: 4.Do not s
elect any search criteria and click on 'Search' button.","Expected results of th
e Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC11()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Broker Search Res
ults",DataTable.Value("CompanyName","Company"),"")
If Browser("MasterFile").Page("Broker Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Broker pro
file screen must be opened","Broker profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Broker pro
file screen must be opened","Broker profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Browser("MasterFile").Back
If Browser("MasterFile").Page("Reports - Broker Search Results")
.Exist(2) And Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Reports -
Broker Search Results screen must be opened","Reports - Broker Search Results sc
reen is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Reports -
Broker Search Results screen must be opened","Reports - Broker Search Results sc
reen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC12()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Broker Search Res
ults","",12)
Wait(3)
If Browser("MasterFile").Page("Enterprise Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Enterprise
profile screen must be opened","Enterprise profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Enterprise
profile screen must be opened","Enterprise profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 7: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC13()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 11
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Broker
Search Results",DataTable.Value("FilterColumn","Company"),DataTable("FilterExpr
ession","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 11: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 11: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 12: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC14()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Broker Search Re
sults","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder","Com
pany"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC15()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Broker Search Results"
,"Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Bro
ker Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Broker Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC16()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - C
ustodian Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Custodian Search Results"
,DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If Browser("MasterFile").Page("Custodian Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Custodian
profile screen must be opened and collecting the Data","Custodian profile screen
is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: Custodian
profile screen must be opened and collecting the Data","Custodian profile screen
is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Custodian Profile",DataTable.Valu
e("ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Under Prof
ile menu select Company-Custodian and entering Company name in the search criter
ia","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 7: Under Prof
ile menu select Company-Custodian and entering Company name in the search criter
ia","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
If Browser("MasterFile").Page("Custodian Profile").Exist(2) And Environm
ent.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Custodian
profile screen must be opened","Custodian profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Custodian
profile screen must be opened","Custodian profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
Wait(10)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Custodian Profile",DataTable.Value("MenuP
ath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Company Sear
ch")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 11: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - C
ustodian Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call SearchCompanyName("MasterFile","Reports - Custodian Search
Results","",13)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 13: Expected
Fields should be displayed in Contact Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 13: Expected
Fields should displayed in Contact Profile Page","Expected Fields are not displa
yed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Contact Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Profile -
Contact Search Page should be displayed.","Profile - Contact Search Page is dis
played"
Else
Reporter.ReportEvent micFail,"Step 14: Profile -
Contact Search Page should be displayed","Profile - Contact Search Page is not
displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call SearchEnterpriseName("MasterFile","Profile - Contact Search
","Contact Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(2)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 15: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Contact Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 16: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #17
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Company Sear
ch")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 17: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #18
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - C
ustodian Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 18: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 18: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #19
Call SearchCompanyName("MasterFile","Reports - Custodian Search
Results","",14)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 19: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page.","Expected Header names and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 19: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page","Expected Header names and links are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #20
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Contact Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 20: Profile -
Contact Search Page should be displayed.","Profile - Contact Search Page is dis
played"
Else
Reporter.ReportEvent micFail,"Step 20: Profile -
Contact Search Page should be displayed","Profile - Contact Search Page is not
displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #21
Call SearchEnterpriseName("MasterFile","Profile - Contact Search
","Contact Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
Wait(3)
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 21: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #22
Call select_Menu("MasterFile","Contact Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 22: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 22: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #23
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 23: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 23: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #24
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - C
ustodian Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 24: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 24: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #25
Call SearchCompanyName("MasterFile","Reports - Custodian Search Results"
,"",16)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").W
ebEdit("Name"))
strName = get_WebEdit_Value ("MasterFile","Enterprise Profile","
Name")
Wait(5)
strDetailsData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Reports = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Enterprise Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 25: Expected
Fields should displayed in Enterprise Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 25: Expected
Fields should displayed in Enterprise Profile Page","Expected Fields are not dis
played."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #26
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value("MasterFile","Profile - Enterprise Search","Enter
prise",strName)
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Enterprise Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 26: Profile -
Enterprise Search Page should be displayed.","Profile - Enterprise Search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Step 26: Profile -
Enterprise Search Page should be displayed","Profile - Enterprise Search Page i
s not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #27
Call SelectValueinTable("MasterFile","Profile - Enterprise Searc
h","ResultTable",strName)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").WebEdit("
Name"))
Wait(5)
strDetailsData_Profile = Browser("MasterFile").Page("Enterprise Profile"
).WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Profile = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Profile = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
Wait(5)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strAddressData_Profile = strAddressData_Re
ports And strRelationshipData_Profile = strRelationshipData_Reports Then
Reporter.ReportEvent micPass,"Step 27: Expected
Fields should with the corresponding Values should be displayed in Enterprise Pr
ofile Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 27: Expected
Fields should with the corresponding Values should be displayed in Enterprise Pr
ofile Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #28
Call select_Menu("MasterFile","Enterprise Profile",DataTable.Val
ue("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 28: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 28: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #29
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 29: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #30
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 30: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 31
Call select_Menu("MasterFile","Reports - Custodian Search Result
s",DataTable.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
Status",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Custodian
Search Results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 31: Custodian
Search Results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #32
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 32: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 32: Under Rep
orts menu select Company-Search and Custodian should be selected in Company comb
o box","Custodian is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #33
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Custodi
an_AgentType",DataTable.Value("Custodian_AgentType","Company"))
Call select_Checkbox("MasterFile","Reports - Company Search","Cu
stodian_OwnProgramOnly")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","Custodian_AgentType")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_OwnProgramOnly")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 33: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 33: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 34
Call chkReportLinks("MasterFile","Reports - Custodian Search Res
ults","Company","ReportLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Else
Reporter.ReportEvent micFail,"Step 34: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Environment.Value("TestCase_Log") = "True"
End If
'Step #35
Call select_Menu("MasterFile","Reports - Custodian Search Result
s","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 35: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC17()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Custodian Search Results","
ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: 4.Do not s
elect any search criteria and click on 'Search' button.","Expected results of th
e Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Custodian Search Result
s","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC18()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Custod
ian Search Results",DataTable.Value("FilterColumn","Company"),DataTable("FilterE
xpression","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Custodian Search Result
s","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC19()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Custodian Search
Results","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder","
Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Custodian Search Result
s","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC20()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Custodian Search Resul
ts","Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Cus
todian Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Custodian Search Result
s","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC21()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depositary Se
arch Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Depositary Search
Results",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Depositary Profile").W
ebEdit("Details_Name"))
Wait(5)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Depos
itary Profile")
If Browser("MasterFile").Page("Depositary Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Depositary
profile screen must be opened and collecting the Data","Depositary profile scre
en is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: Depositary
profile screen must be opened and collecting the Data","Depositary profile scre
en is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Depositary Profile",DataTable.Val
ue("ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Under Prof
ile menu select Company-Depositary and entering Company name in the search crite
ria","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 7: Under Prof
ile menu select Company-Depositary and entering Company name in the search crite
ria","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Depositary Profile").W
ebEdit("Details_Name"))
If Browser("MasterFile").Page("Depositary Profile").Exist(2) And Environ
ment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Depositary
profile screen must be opened","Depositary profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Depositary
profile screen must be opened","Depositary profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Depos
itary Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Depositary Profile",DataTable.Value("Menu
Path","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 11: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step # 12
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depositary Se
arch Results","CompanyName")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call SearchCompanyName("MasterFile","Reports - Depositary Search Results
","",11)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").W
ebEdit("Name"))
strName = get_WebEdit_Value ("MasterFile","Enterprise Profile","
Name")
Wait(5)
strDetailsData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Reports = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Enterprise Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 13: Expected
Fields should displayed in Enterprise Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 13: Expected
Fields should displayed in Enterprise Profile Page","Expected Fields are not dis
played."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value("MasterFile","Profile - Enterprise Search","Enter
prise",strName)
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Enterprise Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Profile -
Enterprise Search Page should be displayed.","Profile - Enterprise Search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Profile -
Enterprise Search Page should be displayed","Profile - Enterprise Search Page i
s not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call SelectValueinTable("MasterFile","Profile - Enterprise Searc
h","ResultTable",strName)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").WebEdit("
Name"))
Wait(5)
strDetailsData_Profile = Browser("MasterFile").Page("Enterprise Profile"
).WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Profile = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Profile = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
Wait(5)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strAddressData_Profile = strAddressData_Re
ports And strRelationshipData_Profile = strRelationshipData_Reports Then
Reporter.ReportEvent micPass,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Enterprise Profile",DataTable.Val
ue("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 16: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 17
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
Status",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Depositar
y Search Results should populate and the record searched should be displayed","
Searched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 17: Depositar
y Search Results should populate and the record searched should be displayed","
Searched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #18
Call SearchCompanyName("MasterFile","Reports - Depositary Search
Results","",2)
Call fnc_wait(Browser("MasterFile").Page("Depositary Profile").W
ebEdit("Details_Name"))
If Browser("MasterFile").Page("Depositary Profile").Exist(2) And Environ
ment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 18: Depositar
y profile screen must be opened ","Depositary profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 18: Depositar
y profile screen must be opened ","Depositary profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #19
Call select_Menu("MasterFile","Depositary Profile",DataTable.Value("Menu
Path","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 19: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is not selected in Company combo box"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #20
Call Select_Combo_Value("MasterFile","Reports - Company Search","Deposit
ary_Role","Common Depository")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Depositary_Status",DataTable.Value("Depositary_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 20: Depositar
y search results should populate and the record searched should be displayed","
Searched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 20: Depositar
y search results should populate and the record searched should be displayed","
Searched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 21
Call chkReportLinks("MasterFile","Reports - Depositary Search Re
sults","Company","ReportLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 21: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Else
Reporter.ReportEvent micFail,"Step 21: The Links
" &DataTable.Value("ReportLinks","Company") &" should be available.","The Expec
ted Links are available."
Environment.Value("TestCase_Log") = "True"
End If
'Step #22
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 22: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 22: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC22()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Depositary Search Results",
"ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC23()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Deposi
tary Search Results",DataTable.Value("FilterColumn","Company"),DataTable("Filter
Expression","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC24()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Depositary Searc
h Results","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder",
"Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC25()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Depositary Search Resu
lts","Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Dep
ositary Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Depositary Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC26()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_Industry")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_RelationshipManagerNewYork")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Issuer Search Res
ults",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(5)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Issuer pro
file screen must be opened and collecting the Data","Issuer profile screen is di
splayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: Issuer pro
file screen must be opened and collecting the Data","Issuer profile screen is no
t displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Under Prof
ile menu select Company-Issuer and entering Company name in the search criteria"
,"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 7: Under Prof
ile menu select Company-Issuer and entering Company name in the search criteria"
,"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Environment
.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Issuer pro
file screen must be opened","Issuer profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Issuer pro
file screen must be opened","Issuer profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Wait(15)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("MenuPath
","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 11: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_Industry")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_RelationshipManagerNewYork")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call SearchCompanyName("MasterFile","Reports - Issuer Search Res
ults","",18)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
Wait(10)
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 13: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page.","Expected Header names and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 13: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page","Expected Header names and links are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Contact Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Profile -
Contact Search Page should be displayed.","Profile - Contact Search Page is dis
played"
Else
Reporter.ReportEvent micFail,"Step 14: Profile -
Contact Search Page should be displayed","Profile - Contact Search Page is not
displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call SearchEnterpriseName("MasterFile","Profile - Contact Search
","Contact Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
Wait(10)
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 15: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Contact Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 16: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #17
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 17: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #17
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_Industry")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_RelationshipManagerNewYork")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 17: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #18
Call SearchCompanyName("MasterFile","Reports - Issuer Search Res
ults","",20)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
Wait(10)
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 18: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page.","Expected Header names and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 18: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page","Expected Header names and links are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #19
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Contact Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 19: Profile -
Contact Search Page should be displayed.","Profile - Contact Search Page is dis
played"
Else
Reporter.ReportEvent micFail,"Step 19: Profile -
Contact Search Page should be displayed","Profile - Contact Search Page is not
displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #20
Call SearchEnterpriseName("MasterFile","Profile - Contact Search
","Contact Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
Wait(10)
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 20: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 20: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #21
Call select_Menu("MasterFile","Contact Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 21: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 21: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #22
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 22: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 22: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #23
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_Industry")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_RelationshipManagerNewYork")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 23: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 23: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #24
Call SearchCompanyName("MasterFile","Reports - Issuer Search Res
ults","",19)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
Wait(10)
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 24: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page.","Expected Header names and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 24: Expected
Fields should with the corresponding Links should be displayed in Contact Profil
e Page","Expected Header names and links are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #25
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Contact Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 25: Profile -
Contact Search Page should be displayed.","Profile - Contact Search Page is dis
played"
Else
Reporter.ReportEvent micFail,"Step 25: Profile -
Contact Search Page should be displayed","Profile - Contact Search Page is not
displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #26
Call SearchEnterpriseName("MasterFile","Profile - Contact Search
","Contact Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
Wait(10)
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Details").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 26: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 26: Expected
Fields should with the corresponding Values should be displayed in Contact Profi
le Page","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #27
Call select_Menu("MasterFile","Contact Profile",DataTable.Value("MenuPat
h","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 27: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 27: Under Rep
orts menu select Company-Search and Issuer should be selected in Company combo b
ox","Issuer is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #28
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 28: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 28: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #29
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_Industry")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","Issuer_RelationshipManagerNewYork")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 29: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #30
Call SearchCompanyName("MasterFile","Reports - Issuer Search Results",""
,21)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").W
ebEdit("Name"))
strName = get_WebEdit_Value ("MasterFile","Enterprise Profile","
Name")
Wait(5)
strDetailsData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Reports = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Enterprise Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 30: Expected
Fields should displayed in Enterprise Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 30: Expected
Fields should displayed in Enterprise Profile Page","Expected Fields are not dis
played."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #31
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value("MasterFile","Profile - Enterprise Search","Enter
prise",strName)
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Enterprise Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 31: Profile -
Enterprise Search Page should be displayed.","Profile - Enterprise Search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Step 31: Profile -
Enterprise Search Page should be displayed","Profile - Enterprise Search Page i
s not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #32
Call SelectValueinTable("MasterFile","Profile - Enterprise Searc
h","ResultTable",strName)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").WebEdit("
Name"))
Wait(5)
strDetailsData_Profile = Browser("MasterFile").Page("Enterprise Profile"
).WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Profile = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Profile = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strAddressData_Profile = strAddressData_Re
ports And strRelationshipData_Profile = strRelationshipData_Reports Then
Reporter.ReportEvent micPass,"Step 32: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 32: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #33
Call select_Menu("MasterFile","Enterprise Profile",DataTable.Val
ue("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 33: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 33: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #34
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
Status",DataTable.Value("CompanyStatus","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 34: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #36
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 36: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #37
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Issuer_
Exchange","New York Stock Exchange")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Issuer_Industry",DataTable.Value("Issuer_Industry","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","Issuer_Industry")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 37: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #38
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 38: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #39
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Issuer_
RelationshipManagerNewYork",DataTable.Value("Issuer_RelationshipManagerNewYork",
"Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Issuer_S_U","Sponsored")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","Issuer_RelationshipManagerNewYork")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 39: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #40
Call select_Menu("MasterFile","Reports - Issuer Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 40: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC27()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Issuer Search Results","Rep
ortsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Issuer Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC28()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Issuer
Search Results",DataTable.Value("FilterColumn","Company"),DataTable("FilterExpr
ession","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Issuer Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC29()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Issuer Search Re
sults","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder","Com
pany"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Issuer Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC30()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Issuer Search Results"
,"Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Iss
uer Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Issuer Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC31()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","SearchValue")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
strSubcompanyName = Browser("MasterFile").Page("Reports - Subcom
pany Search Results").WebTable("Item").GetCellData(2,3)
Call SelectValueinTable("MasterFile","Reports - Subcompany Searc
h Results","Item",strSubcompanyName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEdit("Deta
ils_Name"))
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Issuer pro
file screen must be opened and collecting the Data","Issuer profile screen is di
splayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: Issuer pro
file screen must be opened and collecting the Data","Issuer profile screen is no
t displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call Select_Combo_Value("MasterFile","Profile - Company Search",
"Type","Issuer")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",strSubcompanyName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Under Prof
ile menu select Company-Issuer and entering Company name in the search criteria"
,"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 7: Under Prof
ile menu select Company-Issuer and entering Company name in the search criteria"
,"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strSubcompanyName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Environment
.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Issuer pro
file screen must be opened","Issuer profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Issuer pro
file screen must be opened","Issuer profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Wait(20)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("MenuPath
","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 11: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","SearchValue")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
strEnterpriseName = Browser("MasterFile").Page("Reports - Subcom
pany Search Results").WebTable("Item").GetCellData(2,12)
Browser("MasterFile").Page("Reports - Subcompany Search Results"
).WebElement("html tag:=TD", "innertext:= " & strEnterpriseName,"index:=1").Clic
k
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").W
ebEdit("Name"))
strName = get_WebEdit_Value ("MasterFile","Enterprise Profile","
Name")
Wait(5)
strDetailsData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Reports = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Enterprise Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 13: Expected
Fields should displayed in Enterprise Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 13: Expected
Fields should displayed in Enterprise Profile Page","Expected Fields are not dis
played."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value("MasterFile","Profile - Enterprise Search","Enter
prise",strName)
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Enterprise Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Profile -
Enterprise Search Page should be displayed.","Profile - Enterprise Search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Profile -
Enterprise Search Page should be displayed","Profile - Enterprise Search Page i
s not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call SelectValueinTable("MasterFile","Profile - Enterprise Searc
h","ResultTable",strName)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").WebEdit("
Name"))
Wait(5)
strDetailsData_Profile = Browser("MasterFile").Page("Enterprise Profile"
).WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Profile = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Profile = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strAddressData_Profile = strAddressData_Re
ports And strRelationshipData_Profile = strRelationshipData_Reports Then
Reporter.ReportEvent micPass,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Enterprise Profile",DataTable.Val
ue("MenuPath","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is selected in Company combo box"
Else
Reporter.ReportEvent micFail,"Step 16: Under Rep
orts menu select Company-Search and Depositary should be selected in Company com
bo box","Depositary is not selected in Company combo box"
Environment.Value("TestCase_Log") = "True"
End If
'Step #17
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 17: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #18
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","SearchValue")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 18: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 18: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #19
Call SearchCompanyName("MasterFile","Reports - Subcompany Search
Results",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Subcompany Profile").W
ebEdit("Subcompany_Name"))
Wait(5)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Subco
mpany Profile")
If Browser("MasterFile").Page("Subcompany Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19: Subcompan
y profile screen must be opened and collecting the Data","Subcompany profile scr
een is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 19: Subcompan
y profile screen must be opened and collecting the Data","Subcompany profile scr
een is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #20
Call select_Menu("MasterFile","Subcompany Profile",DataTable.Val
ue("ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 20: Under Pro
file menu select Company-Subcompany and entering Company name in the search crit
eria","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 20: Under Pro
file menu select Company-Subcompany and entering Company name in the search crit
eria","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #21
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Subcompany Profile").W
ebEdit("Subcompany_Name"))
If Browser("MasterFile").Page("Subcompany Profile").Exist(2) And Environ
ment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 21: Subcompan
y profile screen must be opened","Subcompany profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Subcompan
y profile screen must be opened","Subcompany profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #22
Wait(2)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Subco
mpany Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 22: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 22: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #23
Call select_Menu("MasterFile","Subcompany Profile","HOME;DR Home
")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 23: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 23: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC32()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Subcompany Search Results",
"ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Subcompany Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC33()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Subcom
pany Search Results",DataTable.Value("FilterColumn","Company"),DataTable("Filter
Expression","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Subcompany Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC34()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Subcompany Searc
h Results","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder",
"Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Subcompany Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC35()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Subcompany Search Resu
lts","Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Sub
company Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Subcompany Search Resul
ts","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC36()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","Vendor_Type")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call SearchCompanyName("MasterFile","Reports - Vendor Search Res
ults",DataTable.Value("CompanyName","Company"),"")
Call fnc_wait(Browser("MasterFile").Page("Vendor Profile").WebEd
it("Details_Name"))
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Vendo
r Profile")
If Browser("MasterFile").Page("Vendor Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Vendor pro
file screen must be opened and collecting the Data","Vendor profile screen is di
splayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: Vendor pro
file screen must be opened and collecting the Data","Vendor profile screen is no
t displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Vendor Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",DataTable.Value("CompanyName","Company"))
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 7: Under Prof
ile menu select Company-Vendor and entering Company name in the search criteria"
,"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 7: Under Prof
ile menu select Company-Vendor and entering Company name in the search criteria"
,"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",DataTable.Value("EnterpriseName","Company"))
Call fnc_wait(Browser("MasterFile").Page("Vendor Profile").WebEd
it("Details_Name"))
If Browser("MasterFile").Page("Vendor Profile").Exist(2) And Environment
.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Vendor pro
file screen must be opened","Vendor profile screen is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Vendor pro
file screen must be opened","Vendor profile screen is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Wait(3)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Vendo
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Vendor Profile",DataTable.Value("MenuPath
","Company"))
If Browser("MasterFile").Page("Reports - Company Search").Exist(2) And E
nvironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search and Reports - Company Search Page should be disp
layed","Reports - Company Search Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Entering
values in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 11: Entering
values in the one or more search Fields.","Values not entered in the search fiel
ds."
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","CompanyName")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","CompanyStatus")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","SearchValue")
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","Vendor_Type")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 12: Type the
Name which needs to be searched and click Search","Company Report generated rela
ted to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call SearchCompanyName("MasterFile","Reports - Vendor Search Results",""
,17)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").W
ebEdit("Name"))
strName = get_WebEdit_Value ("MasterFile","Enterprise Profile","
Name")
Wait(5)
strDetailsData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Reports = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Reports = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Enterprise Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 13: Expected
Fields should displayed in Enterprise Profile Page.","Expected Fields are displa
yed"
Else
Reporter.ReportEvent micFail,"Step 13: Expected
Fields should displayed in Enterprise Profile Page","Expected Fields are not dis
played."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value("MasterFile","Profile - Enterprise Search","Enter
prise",strName)
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Profile - Enterprise Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Profile -
Enterprise Search Page should be displayed.","Profile - Enterprise Search Page
is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Profile -
Enterprise Search Page should be displayed","Profile - Enterprise Search Page i
s not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call SelectValueinTable("MasterFile","Profile - Enterprise Searc
h","ResultTable",strName)
Call fnc_wait(Browser("MasterFile").Page("Enterprise Profile").WebEdit("
Name"))
Wait(5)
strDetailsData_Profile = Browser("MasterFile").Page("Enterprise Profile"
).WebTable("Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Address")
strAddressData_Profile = Browser("MasterFile").Page("Enterprise Profile
").WebTable("Address").GetROProperty("innertext")
Call selectTab("MasterFile","Enterprise Profile"," Relationship
")
strRelationshipData_Profile = Browser("MasterFile").Page("Enter
prise Profile").WebTable("Relationship").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strAddressData_Profile = strAddressData_Re
ports And strRelationshipData_Profile = strRelationshipData_Reports Then
Reporter.ReportEvent micPass,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age.","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Expected
Fields with the corresponding Values should be displayed in Enterprise Profile P
age","Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receipt Divisi
on's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 16: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++=
Public Function MFReportsCompany_TC37()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportHeader("MasterFile","Reports - Vendor Search Results","Rep
ortsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is obtained"
Else
Reporter.ReportEvent micFail,"Step 4: Do not sel
ect any search criteria and click on 'Search' button.","Expected results of the
Blank Search is not obtained"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 5: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC38()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 11
Call MultipleFilterCriteriaAddDel("MasterFile","Reports - Vendor
Search Results",DataTable.Value("FilterColumn","Company"),DataTable("FilterExpr
ession","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 11: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations performed we
ll on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 6 to 11: Perf
orming Add,Del Operations on the Filter Window","Add,Del Operations failed on th
e Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 12: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC39()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6 to 10
Call MultipleSortCriteriaAddDel("MasterFile","Reports - Vendor Search Re
sults","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder","Com
pany"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 6 to 10: Perf
orming Add,Del Operations on the Sort Window","Add,Del Operations failed on the
Sort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC40()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step # 6 to 9
Call SortCriteria("MasterFile","Reports - Vendor Search Results"
,"Sort",DataTable("SortColumn","Company"),DataTable("SortOrder","Company"))
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Ven
dor Search Results","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 9:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Vendor Search Results",
"HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC41()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Reports - Pre-defined").Exist(2)
And Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Products and Se
rvices Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Issuer Products and Services Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Issuer Products and Services
Report","IssuerProductsAndServicesReport")
DateTimetext=Trim(Browser("MasterFile").Page("Issuer Products an
d Services Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
strIssuerName = Browser("MasterFile").Page("Issuer Products and
Services Report").WebTable("Item").GetCellData(2,2)
Call SearchCompanyName("MasterFile","Issuer Products and Service
s Report","",2)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call pageCheck_CompanyProfileSearch("MasterFile","Profile - Comp
any Search","Company Search Results")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
EnterpriseName",strIssuerName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 6: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7 to 8
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strIssuerName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(15)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7 to 8: Comp
aring the Values in Profile and Reports.","The Values displayed in both screens
match"
Else
Reporter.ReportEvent micFail,"Step 7 to 8: Comp
aring the Values in Profile and Reports.","The Values displayed in both screens
does not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC42()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Reports - Pre-defined").Exist(2) And Envi
ronment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Products and Se
rvices Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Issuer Products and Services Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Issuer Products and Services
Report","IssuerProductsAndServicesReport")
DateTimetext=Trim(Browser("MasterFile").Page("Issuer Products an
d Services Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5 to 9
Call MultipleFilterCriteriaAddDel("MasterFile","Issuer Products
and Services Report",DataTable.Value("FilterColumn","Company"),DataTable("Filter
Expression","Company"),DataTable("FilterValue","Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 to 9: Perfo
rming Add,Del Operations on the Filter Window","Add,Del Operations performed wel
l on the Filter window"
Else
Reporter.ReportEvent micFail,"Step 5 to 9: Perfo
rming Add,Del Operations on the Filter Window","Add,Del Operations failed on the
Filter window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_MenuOR("MasterFile","Issuer Products and Services Re
port","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC43()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Browser("MasterFile").Page("Reports - Pre-defined").Exist(2) And Envi
ronment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Predefined and Reports - Pre-defined Page should be disp
layed","Reports - Pre-defined Page is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Products and Se
rvices Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Issuer Products and Services Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Issuer Products and Services
Report","IssuerProductsAndServicesReport")
DateTimetext=Trim(Browser("MasterFile").Page("Issuer Products an
d Services Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5 to 9
Call MultipleSortCriteriaAddDel("MasterFile","Issuer Products and Servic
es Report","Sort",DataTable.Value("SortColumn","Company"),DataTable("SortOrder",
"Company"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 to 9: Perfo
rming Add,Del Operations on the Sort Window","Add,Del Operations performed well
on the Sort window"
Else
Reporter.ReportEvent micFail,"Step 5 to 9: Perfo
rming Add,Del Operations on the Sort Window","Add,Del Operations failed on the S
ort window"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_MenuOR("MasterFile","Issuer Products and Services Re
port","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC44()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Products and Se
rvices Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Issuer Products and Services Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Issuer Products and Services
Report","IssuerProductsAndServicesReport")
DateTimetext=Trim(Browser("MasterFile").Page("Issuer Products an
d Services Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step # 5 to 8
Wait(3)
Browser("MasterFile").Page("Issuer Products and Services Report"
).WebElement("Issuer").Click
Wait(3)
Call SaveAsExcelwithClick_MasterFile("MasterFile","Issuer Produc
ts and Services Report","Company","SAVE")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 to 8: Click on the
Save as Excel and then Click on Save ..","The File has been Saved At the Given
Location"
Else
Reporter.ReportEvent micFail,"Step 5 to 8:Click on the S
ave as Excel and then Click on Save ...","The File has been Saved At the Given
Location"
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call select_MenuOR("MasterFile","Issuer Products and Services Re
port","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 9: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC45()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Issuer Products and Se
rvices Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Issuer Products and Services Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Issuer Products and Services
Report","IssuerProductsAndServicesReport")
DateTimetext=Trim(Browser("MasterFile").Page("Issuer Products an
d Services Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
strIssuerName = Browser("MasterFile").Page("Issuer Products and
Services Report").WebTable("Item").GetCellData(2,2)
Call SearchCompanyName("MasterFile","Issuer Products and Service
s Report","",2)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(5)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
EnterpriseName",strIssuerName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 6: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strIssuerName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True"Then
Reporter.ReportEvent micPass,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC46()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Market Capitaliza
tion by Country by Custodian (Detail)")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on I
Market Capitalization by Country by Custodian (Detail)","Expected fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on I
Market Capitalization by Country by Custodian (Detail)","Expected fields are not
displayed in search criteria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Market Cap
italization by Country by Custodian (Detail)")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Market Capitalization by Country
by Custodian (Detail)","Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
If Browser("Report Market Review").WinButton("To help protect
your security,").Exist(5) Then
Browser("Report Market Review").WinButton("To he
lp protect your security,").Click
Browser("Report Market Review").WinMenu("Context
Menu").Select "Download File..."
End If
Call fnc_wait(Browser("Report Market Review").Dialog("File Downl
oad"))
If Browser("Report Market Review").Dialog("File Download").Exist
(5) Then
Call fnc_wait(Browser("Report Market Review").Di
alog("File Download").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").Dialog("File Dow
nload").WinButton("text:=&Open").Click
If Browser("Report Market Review").Dialog("File
Download").Exist(5) Then
Browser("Report Market Review").Dialog("
File Download").WinButton("text:=&Open").Click
End If
End If
'Checking for the Headers
Call SearchTextInPDF("CUSTODIAN NAME" , "Column Header")
Call SearchTextInPDF("CID NUMBER" , "Column Header")
Call SearchTextInPDF("CUSIP" , "Column Header")
Call SearchTextInPDF("CUSIP NAME" , "Column Header")
Call SearchTextInPDF("DR POSITION" , "Column Header")
Call SearchTextInPDF("MARKET VALUE" , "Column Header")
'Checking for the Country Name and Enterprise Name
sDetailsValue = Split(DataTable.Value("EnterpriseName","Company"
),";",-1,1)
strCountryName = sDetailsValue(0)
strName = sDetailsValue(1)
Call SearchTextInPDF(strCountryName , "Country Name")
Call SearchTextInPDF(strName , "Enterprise Name")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Expected H
eaders and Search criteria details should be displayed in PDF.","Expected Header
and Search criteria details displayed in PDF"
Else
Reporter.ReportEvent micFail,"Step 7: Expected
Headers and Search criteria details should be displayed in PDF.","Expected Heade
r and Search criteria details not displayed in PDF"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Market Capitalization by Country
by Custodian (Detail)","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC47()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Market Capitaliza
tion by Country by Custodian (Summary)")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on M
arket Capitalization by Country by Custodian (Summary)","Expected fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on M
arket Capitalization by Country by Custodian (Summary)","Expected fields are not
displayed in search criteria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Market Cap
italization by Country by Custodian (Summary)")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Market Capitalization by Country
by Custodian (Summary)","Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
If Browser("Report Market Review").WinButton("To help protect your sec
urity,").Exist(8) Then
Browser("Report Market Review").WinButton("To he
lp protect your security,").Click
Browser("Report Market Review").WinMenu("Context
Menu").Select "Download File..."
End If
Call fnc_wait(Browser("Report Market Review").Dialog("File Downl
oad"))
If Browser("Report Market Review").Dialog("File Download").Exist
(5) Then
Call fnc_wait(Browser("Report Market Review").Di
alog("File Download").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").Dialog("File Dow
nload").WinButton("text:=&Open").Click
If Browser("Report Market Review").Dialog("File
Download").Exist(5) Then
Browser("Report Market Review").Dialog("
File Download").WinButton("text:=&Open").Click
End If
End If
'Checking for the Headers
Call SearchTextInPDF("COUNTRY" , "Column Header")
Call SearchTextInPDF("CUSTODIAN NAME" , "Column Header")
Call SearchTextInPDF("CID" , "Column Header")
Call SearchTextInPDF("NUMBER OF ISSUES" , "Column Header")
Call SearchTextInPDF("MARKET VALUE" , "Column Header")
'Checking for the Country Name and Enterprise Name
sDetailsValue = Split(DataTable.Value("EnterpriseName","Company"
),";",-1,1)
strCountryName = sDetailsValue(0)
strName = sDetailsValue(1)
Call SearchTextInPDF(strCountryName , "Country Name")
Call SearchTextInPDF(strName , "Enterprise Name")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Expected H
eaders and Search criteria details should be displayed in PDF.","Expected Header
and Search criteria details displayed in PDF"
Else
Reporter.ReportEvent micFail,"Step 7: Expected
Headers and Search criteria details should be displayed in PDF.","Expected Heade
r and Search criteria details not displayed in PDF"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Market Capitalization by Country
by Custodian (Summary)","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC48()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Custodian Billing
")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on C
ustodian Billing Report","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on C
ustodian Billing Report","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Custodian
Billing")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Custodian Billing","Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
For intCounter = 1 to 300
If Browser("Report Market Review").Dialog("File
Download - Security").Exist Then
Call fnc_wait(Browser("Report Ma
rket Review").Dialog("File Download - Security").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").
Dialog("File Download - Security").WinButton("text:=&Open").Click
If Browser("Report Market Review
").Dialog("File Download - Security").Exist(5) Then
Browser("Report Market R
eview").Dialog("File Download - Security").WinButton("text:=&Open").Click
End If
Exit For
ElseIf Browser("Report Market Review").WinButton("To help prot
ect your security,").Exist Then
Wait(5)
Browser("Report Market Review").
WinButton("To help protect your security,").Click
Browser("Report Market Review").
WinMenu("ContextMenu").Select "Download File..."
Call fnc_wait(Browser("Report Ma
rket Review").Dialog("File Download - Security").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").
Dialog("File Download - Security").WinButton("text:=&Open").Click
If Browser("Report Market Review
").Dialog("File Download - Security").Exist(5) Then
Browser("Report Market R
eview").Dialog("File Download - Security").WinButton("text:=&Open").Click
End If
Exit For
End If
Next
'Checking for the Headers
Call SearchTextInPDF("BILL DATE" , "Column Header")
Call SearchTextInPDF("POST DATE" , "Column Header")
Call SearchTextInPDF("CUSIP" , "Column Header")
Call SearchTextInPDF("ISSUE NAME" , "Column Header")
Call SearchTextInPDF("ADRS" , "Column Header")
Call SearchTextInPDF("BROKER" , "Column Header")
Call SearchTextInPDF("FEE" , "Column Header")
Call SearchTextInPDF("TRN" , "Column Header")
Call SearchTextInPDF("DESCRIPTION" , "Column Header")
Call SearchTextInPDF("REBATE FEE" , "Column Header")
'Checking for the Menmonic and Custodian Name
sDetailsValue = Split(DataTable.Value("Custodian","Company"),";"
,-1,1)
strMenmonic = sDetailsValue(0)
strCustodian = sDetailsValue(1)
Call SearchTextInPDF(strMenmonic , "Menmonic")
Call SearchTextInPDF(strCustodian , "Custodian Name")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Expected H
eaders and Search criteria details should be displayed in PDF.","Expected Header
and Search criteria details displayed in PDF"
Else
Reporter.ReportEvent micFail,"Step 7: Expected
Headers and Search criteria details should be displayed in PDF.","Expected Heade
r and Search criteria details not displayed in PDF"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Custodian Billing","HOME;DR Home"
)
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC49()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Custodian Positio
n Report")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on C
ustodian Position Report","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on C
ustodian Position Report ","Expected fields are not displayed in search criteria
"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Custodian
Position Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Custodian Position Report","Searc
h")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
If Browser("Report Market Review").WinButton("To help protect
your security,").Exist(20) Then
Browser("Report Market Review").WinButton("To he
lp protect your security,").Click
Browser("Report Market Review").WinMenu("Context
Menu").Select "Download File..."
End If
Call fnc_wait(Browser("Report Market Review").Dialog("File Downl
oad"))
If Browser("Report Market Review").Dialog("File Download").Exist
(15) Then
Call fnc_wait(Browser("Report Market Review").Di
alog("File Download").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").Dialog("File Dow
nload").WinButton("text:=&Open").Click
If Browser("Report Market Review").Dialog("File
Download").Exist(5) Then
Browser("Report Market Review").Dialog("
File Download").WinButton("text:=&Open").Click
End If
End If
'Checking for the Headers
Call SearchTextInPDF("CDN" , "Column Header")
Call SearchTextInPDF("CUSTODIAN NAME" , "Column Header")
Call SearchTextInPDF("CUSIP" , "Column Header")
Call SearchTextInPDF("ISSUE NAME" , "Column Header")
Call SearchTextInPDF("COUNTRY" , "Column Header")
Call SearchTextInPDF("REGION" , "Column Header")
Call SearchTextInPDF("RATIO ORD:DR" , "Column Header")
Call SearchTextInPDF("DR PRICE" , "Column Header")
Call SearchTextInPDF("MARKET VALUE" , "Column Header")
Call SearchTextInPDF("CUSTODIAN BALANCE" , "Column Header")
Call SearchTextInPDF("EXPECTED BALANCE" , "Column Header")
Call SearchTextInPDF("PROJECTED BALANCE" , "Column Header")
'Checking for the Menmonic and Custodian Name
sDetailsValue = Split(DataTable.Value("Custodian","Company"),";"
,-1,1)
strMenmonic = sDetailsValue(0)
strCustodian = sDetailsValue(1)
Call SearchTextInPDF(strMenmonic , "Menmonic")
Call SearchTextInPDF(strCustodian , "Custodian Name")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Expected H
eaders and Search criteria details should be displayed in PDF.","Expected Header
and Search criteria details displayed in PDF"
Else
Reporter.ReportEvent micFail,"Step 7: Expected
Headers and Search criteria details should be displayed in PDF.","Expected Heade
r and Search criteria details not displayed in PDF"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Custodian Position Report","HOME;
DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC50()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Custodian Pending
Transactions")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on C
ustodian Pending Transactions Report","Expected fields are displayed in search c
riteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on C
ustodian Pending Transactions Report","Expected fields are not displayed in sear
ch criteria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Custodian
Pending Transactions")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Custodian Pending Transactions","
Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
For intCounter = 1 to 300
If Browser("Report Market Review").Dialog("File
Download - Security").Exist Then
Call fnc_wait(Browser("Report Ma
rket Review").Dialog("File Download - Security").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").
Dialog("File Download - Security").WinButton("text:=&Open").Click
If Browser("Report Market Review
").Dialog("File Download - Security").Exist(5) Then
Browser("Report Market R
eview").Dialog("File Download - Security").WinButton("text:=&Open").Click
End If
Exit For
ElseIf Browser("Report Market Review").WinButton("To help prot
ect your security,").Exist Then
Wait(5)
Browser("Report Market Review").
WinButton("To help protect your security,").Click
Browser("Report Market Review").
WinMenu("ContextMenu").Select "Download File..."
Call fnc_wait(Browser("Report Ma
rket Review").Dialog("File Download - Security").WinButton("text:=&Open"))
Wait(5)
Browser("Report Market Review").
Dialog("File Download - Security").WinButton("text:=&Open").Click
If Browser("Report Market Review
").Dialog("File Download - Security").Exist(5) Then
Browser("Report Market R
eview").Dialog("File Download - Security").WinButton("text:=&Open").Click
End If
Exit For
End If
Next
Wait(5)
'Checking for the Headers
Call SearchTextInPDF("TRN #/ CUSIP" , "Column Header")
Call SearchTextInPDF("TRN TYPE" , "Column Header")
Call SearchTextInPDF("BY ORDER OF" , "Column Header")
Call SearchTextInPDF("EXPECTED SHARES OUT IN" , "Column Header")
Call SearchTextInPDF("EXPECTED DELIVERY" , "Column Header")
'Checking for the Menmonic and Custodian Name
sDetailsValue = Split(DataTable.Value("Custodian","Company"),";"
,-1,1)
strMenmonic = sDetailsValue(0)
strCustodian = sDetailsValue(1)
Call SearchTextInPDF(strMenmonic , "Menmonic")
Call SearchTextInPDF(strCustodian , "Custodian Name")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Expected H
eaders and Search criteria details should be displayed in PDF.","Expected Header
and Search criteria details displayed in PDF"
Else
Reporter.ReportEvent micFail,"Step 7: Expected
Headers and Search criteria details should be displayed in PDF.","Expected Heade
r and Search criteria details not displayed in PDF"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Custodian Pending Transactions","
HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC51()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call pageCheck_CompanyReportsPreDefined("MasterFile", "Fee Schedule Repo
rt")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Click on F
ee Schedule Report","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Click on F
ee Schedule Report","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call MFReportsCompanyPreDefinedCriteria("MasterFile","Fee Schedu
le Report")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 5: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call click_Image("MasterFile","Fee Schedule Report","Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
strCustodianName = Browser("MasterFile").Page("Fee Schedule Repo
rt").WebTable("Item").GetCellData(2,2)
Call SearchCompanyName("MasterFile","Fee Schedule Report","",2)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
strEnterpriseName = Browser("MasterFile").Page("Custodian Profil
e").WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If Browser("MasterFile").Page("Custodian Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: After clic
king on link " & strCustodianName &", Custodian profile screen must be opened an
d collecting the Data","Custodian profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 7: After clic
king on link " & strCustodianName &", Custodian profile screen must be opened an
d collecting the Data","Custodian profile screen is not displayed and values not
noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Custodian Profile",DataTable.Valu
e("ProfileMenuPath","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",strCustodianName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Prof
ile menu select Company-Custodian and entering Custodian name in the search crit
eria","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 8: Under Prof
ile menu select Company-Custodian and entering Custodian name in the search crit
eria","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
Wait(3)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True"Then
Reporter.ReportEvent micPass,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 9: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Custodian Profile","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 10: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC52()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Preferred Custodian-Cl
ean Up Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Preferred Custodian-Clean Up Report","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Preferred Custodian-Clean Up
Report","PreferredCustodianCleanUpReport")
DateTimetext=Trim(Browser("MasterFile").Page("Preferred Custodia
n-Clean Up Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
strIssuerName = Browser("MasterFile").Page("Preferred Custodian-
Clean Up Report").WebTable("Item").GetCellData(2,2)
Call SearchCompanyName("MasterFile","Preferred Custodian-Clean U
p Report","",2)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
strEnterpriseName = Browser("MasterFile").Page("Issuer Profile")
.WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 5: After clic
king on link " &strIssuerName&", Issuer profile screen must be opened and collec
ting the Data","Issuer profile screen is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Issuer Profile",DataTable.Value("
ProfileMenuPath","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",strIssuerName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 3: Under Prof
ile menu select Company-Issuer and entering Issuer name in the search criteria",
"User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True"Then
Reporter.ReportEvent micPass,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
Public Function MFReportsCompany_TC53()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Pre-defined").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Pre-defined","User navigated to Reports-pre-defined scre
en "
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Pre-defined","User unable to navigate to Reports-pre-def
ined screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("LinkCheck","Company"),DataTable.Value("SelectRequiredLi
nk","Company"))
Call fnc_wait(Browser("MasterFile").Page("Custodian Inactive Mne
monic Report").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Custodian Inactive Mnemonic Report","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Custodian Inactive Mnemonic R
eport","CustodianInactiveMnemonicReport")
DateTimetext=Trim(Browser("MasterFile").Page("Custodian Inactive
Mnemonic Report").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProper
ty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected H
eaders with the corresponding Links should be displayed.","Expected Header names
and links are not displayed."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
strCustodianName = Browser("MasterFile").Page("Custodian Inactiv
e Mnemonic Report").WebTable("Item").GetCellData(2,7)
Call SearchCompanyName("MasterFile","Custodian Inactive Mnemonic
Report","",7)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
strEnterpriseName = Browser("MasterFile").Page("Custodian Profil
e").WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If Browser("MasterFile").Page("Custodian Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: After clic
king on link " &strCustodianName&", Custodian profile screen must be opened and
collecting the Data","Custodian profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 5: After clic
king on link " &strCustodianName&", Custodian profile screen must be opened and
collecting the Data","Custodian profile screen is not displayed and values not n
oted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Custodian Profile",DataTable.Valu
e("ProfileMenuPath","Company"))
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",strCustodianName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Profile - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Prof
ile menu select Company-Custodian and entering Custodian name in the search crit
eria","User navigated to Profile - Company Search screen "
Else
Reporter.ReportEvent micFail,"Step 3: Under Prof
ile menu select Company-Custodian and entering Custodian name in the search crit
eria","User unable to navigate to Profile - Company Search screen"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call SearchEnterpriseName("MasterFile","Profile - Company Search
","Company Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True"Then
Reporter.ReportEvent micPass,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Custodian Profile","HOME;DR Home"
)
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are availab
le."
Else
Reporter.ReportEvent micFail,"Step 8: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC54()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Adviser")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Search Resul
ts").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Adviser Search Results","Com
pany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Adviser Search Resu
lts","ReportsAdviser")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Adviser S
earch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Adviser Search R
esults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Region"
,DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Adviser Searc
h Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Adviser se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Adviser_Role","Exchange")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Adviser_Status",DataTable.Value("Adviser_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Adviser Sear
ch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Advis
er Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Adviser s
earch results should populate and the record searched should be displayed","Sea
rched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Adviser Search Results",DataTab
le.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC55()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Broker")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Broker Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Broker Search Resul
ts","ReportsBroker")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Broker Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Broker Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broke
r Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Broker Search
Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Broker sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Broker_Role","Settlement")
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Broker Searc
h Results").WebElement("TimeStamp"))
intRowCount = Browser("MasterFile").Page("Reports - Broker Search Result
s").WebTable("Item").RowCount
If Environment.Value("TestCase_Log") = "True" And intRowCount >
1 Then
Reporter.ReportEvent micPass,"Step 11: Broker se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micWarning,"Step 11: Broker
search results should populate and the record searched should be displayed","N
o Records are displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Broker Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC56()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Custodian")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile").
Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Search Res
ults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Custodian Search Results","C
ompany","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Custodian Search Re
sults","ReportsCustodian")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Custodian
Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Custodian Search
Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("oute
rtext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custodian Sea
rch Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Custodian
search results should populate and the record searched should be displayed","Se
arched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Custodi
an_AgentType",DataTable.Value("Custodian_AgentType","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Custodian Se
arch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Custo
dian Search Results","Custodian_AgentType")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Custodian
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Custodian
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Custodian Search Results",DataT
able.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC57()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Depositary")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Depositary Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Depositary Search R
esults","ReportsDepositary")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Depositar
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Depositary Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depos
itary Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Depositary
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Depositary
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Depositary Se
arch Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Depositary
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Depositary
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Deposit
ary_Role","Common Depository")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Depositary_Status",DataTable.Value("Depositary_Status","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Depositary S
earch Results").WebElement("TimeStamp"))
intRowCount = Browser("MasterFile").Page("Reports - Depositary Search Re
sults").WebTable("Item").RowCount
If Environment.Value("TestCase_Log") = "True" And intRowCount >
1 Then
Reporter.ReportEvent micPass,"Step 11: Depositar
y search results should populate and the record searched should be displayed","
Searched Record is displayed"
Else
Reporter.ReportEvent micWarning,"Step 11: Deposi
tary search results should populate and the record searched should be displayed
","No Records are displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Depositary Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC58()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Issuer")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Issuer Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Issuer Search Resul
ts","ReportsIssuer")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Issuer Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Issuer Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issue
r Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_MenuOR("MasterFile","Reports - Issuer Search Results",DataTa
ble.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Region",DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Issuer sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Issuer_
Exchange","New York Stock Exchange")
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Issuer_Industry",DataTable.Value("Issuer_Industry","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","Issuer_Industry")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call select_Checkbox("MasterFile","Reports - Company Search","Is
suer_MultipleUnderlyingSecurityMarkets")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
intRowCount = Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebTable("Item").RowCount
If Environment.Value("TestCase_Log") = "True" And intRowCount >
1 Then
Reporter.ReportEvent micPass,"Step 13: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micWarning,"Step 13: Issuer
search results should populate and the record searched should be displayed","N
o Records is displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #14
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 14: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #15
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Issuer_
RelationshipManagerNewYork",DataTable.Value("Issuer_RelationshipManagerNewYork",
"Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Issuer_S_U","Sponsored")
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Issuer Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Issuer Search
Results","Issuer_RelationshipManagerNewYork")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 15: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 15: Issuer se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Reports - Issuer Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 16: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 16: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #17
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 17: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC59()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Subcompany")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Subcompany Search Results","
Company","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Subcompany Search R
esults","ReportsSubcompany")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Subcompan
y Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Subcompany Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Subcompany Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany S
earch Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subco
mpany Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Subcompany
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Subcompany
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Subcompany Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Region"
,DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Subcompany Search Re
sults").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Subcompany Se
arch Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Subcompany
search results should populate and the record searched should be displayed","S
earched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Subcompany
search results should populate and the record searched should be displayed","S
earched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Subcompany Search Results",Data
Table.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 11: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsCompany_TC60()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call check_Menu("MasterFile","MasterFile",DataTable.Value("Check
Menu","Company"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Company"))
Call pageCheck_CompanyReportsSearch("MasterFile", "Reports - Com
pany Search","Vendor")
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call MFReportsCompanySearchCriteria("MasterFile","Reports - Comp
any Search")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Entering v
alues in the one or more search Fields.","Values entered in the search fields."
Else
Reporter.ReportEvent micFail,"Step 4: Entering v
alues in the one or more search Fields.","Values not entered in the search field
s."
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Search Result
s").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Vendor Search Results","Comp
any","ReportLinks")
Call chkReportHeader("MasterFile","Reports - Vendor Search Resul
ts","ReportsVendor")
Call chkMFReportsCompanySearchCriteria("MasterFile","Reports - Vendor Se
arch Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Vendor Search Re
sults").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outerte
xt"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 5: Type the N
ame which needs to be searched and click Search","Company Report generated relat
ed to the search criteria entered"
Environment.Value("TestCase_Log") = "True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Vendor Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call Select_Combo_Value("MasterFile","Reports - Company Search","Company
",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"CompanyStatus",DataTable.Value("CompanyStatus","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","CompanyStatus")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 7: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Vendor Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Company-Search","Reports - Company Search page is not displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #9
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search","Region"
,DataTable.Value("Region","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"SearchValue",DataTable.Value("SearchValue","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search
")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendor Search
Results","SearchValue")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 9: Vendor sea
rch results should populate and the record searched should be displayed","Searc
hed Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Vendor Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 10: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Company",DataTable.Value("Company","Company"))
Call Select_Combo_Value("MasterFile","Reports - Company Search",
"Vendor_Type",DataTable.Value("Vendor_Type","Company"))
Call click_Image("MasterFile","Reports - Company Search","Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Vendor Searc
h Results").WebElement("TimeStamp"))
Call SearchCompanyInReportsCompany("MasterFile","Reports - Vendo
r Search Results","Vendor_Type")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Vendor se
arch results should populate and the record searched should be displayed","Sear
ched Record is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Vendor se
arch results should populate and the record searched should be displayed","Sear
ched Record is not displayed"
Environment.Value("TestCase_Log") = "True"
End If
'Step #12
Call select_Menu("MasterFile","Reports - Vendor Search Results",DataTabl
e.Value("MenuPath","Company"))
If Environment.Value("TestCase_Log") = "True" And Browser("MasterFile")
.Page("Reports - Company Search").Exist(2) Then
Reporter.ReportEvent micPass,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 12: Under Rep
orts menu select Company-Search","Reports - Company Search page is not displayed
"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Reports - Company Search","HOME;D
R Home")
Call pageCheck_WebElementinTable("MasterFile","Depositary Receip
t Division's","MasterFile","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are availa
ble."
Else
Reporter.ReportEvent micFail,"Step 13: DR Home p
age should be displayed with the MasterFile link","The Expected Links are not av
ailable."
Environment.Value("TestCase_Log") = "True"
End If
End Function

You might also like