Вы находитесь на странице: 1из 47

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

==========================
' Name of the Script : MFReportsBNYContact
' Scope of the Script : This test script covers 1
9 test cases related to MasterFile Reports BNY contact
' Author : Satish Dupati
' Description : MFReportsBNYContact
Search
' Date and / or Version : 03-03-2009,version 1.2
'===============================================================================
============================
Sub MFReportsBNYContact()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
Environment.Value("strSheetName")="BNYContact"
'''''''''Test case count
Const TC_COUNT =19
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 & "CAReportsAgingItemsTC.vbs"
'****Adding CALogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "BNYContact"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","BNY
Contact","BNYContact"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom
ePageVerification","HomePageVerification"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
'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
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
Call login("MasterFile","Login Page","User","MFLogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
' Call chkHomePage("MasterFile","Depositary Receipt Division's",Da
taTable.Value("HomePageLinks","HomePageVerification"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("BNYContact").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","BNYContact") = "Y" T
hen ''If run flag is Y in test data table
Reporter.ReportEvent micDone,"##
###### BEGIN TEST CASE - '" & DataTable("TestCaseID","BNYContact") & "' ########
### ","Execution of Test Case '" & DataTable("TestCaseDesc","BNYContact") & "' S
tarted"
strFuncName = "MFReportsBNYConta
ct_TC" & intTCCount & "()" ''Formation of function name
Environment.Value("TestCase_Log"
)="True"
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_l
og("",Datatable.Value("TestCaseID", "BNYContact"), Datatable.Value("TestCaseDesc
", "BNYContact"), "PASS")
Else
Call Execution_l
og("",Datatable.Value("TestCaseID", "BNYContact"), Datatable.Value("TestCaseDesc
", "BNYContact"), "FAIL")
End If
Reporter.ReportEvent micDone,"##
####### END OF TEST CASE - '" & DataTable("TestCaseID","BNYContact") & "########
###","The Test Case Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","B
NYContact"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("BNYContact").SetCurrentRow(E
nvironment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","BNYCo
ntact"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW
") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("BNYContact")
.SetCurrentRow(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("Te
stCaseID","BNYContact"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
End Sub
'***************************************** TC Driver End ***********************
********************************
'==================================Test Case 1 to Test Case 19==================
=====================================
Public Function MFReportsBNYContact_TC1()
'Step 1 to 3 covered in Driver Script
'Step 4
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 4: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 5: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 6 and 7
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6,7: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 6,7: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call chkReportLinks("MasterFile","Reports - BNY Contact","BNYCon
tact","BNYContactReportsLinks")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Check for
the Links in the result screen.1.Search.2.Filter.3.Sort.4.Save as Excel.","The L
inks should be available."
Else
Reporter.ReportEvent micFail,"Step 8: Check for
the Links in the result screen.1.Search.2.Filter.3.Sort.4.Save as Excel.","The L
inks should be available."
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC2()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable
("Item").RowCount > 400 Then
Browser("MasterFile").Page("Reports - BNY Contac
t").WebElement("Search").Click
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Giving Bla
nk Search Criteria and Clicking on Search","Given Search Criteria and Clicked on
Search"
Else
Reporter.ReportEvent micFail,"Step 3: Giving Bla
nk Search Criteria and Clicking on Search","Given Search Criteria and Clicked on
Search"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC3()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micFail, "Result Item have
the Information along with Fields","In the Search Results"
'captureScreenshot
Environment.Value("Execution_Log")="False"
Else
Reporter.ReportEvent micPass,"Result Item Does N
ot have the Information along with Fields","In the Search Results"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Giving Inv
alid Search Criteria and Clicking on Search","Given Search Criteria and Clicked
on Search"
Else
Reporter.ReportEvent micFail,"Step 3: Giving Inv
alid Search Criteria and Clicking on Search"," Given Search Criteria and Clicked
on Search"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR
Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC4()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Step 3,4: Given Search Criteria and Clic
ked on Search"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Step 3,4: Given Search Criteria and Clic
ked on Search"
Environment.Value("TestCase_Log")="True"
End If
'Step 5
strLastName=Browser("MasterFile").Page("Reports - BNY Contact").
WebTable("Item").GetCellData(2,3)
If strLastName<>""Then
Browser("MasterFile").Page("Reports - BNY Contac
t").WebElement("html tag:=TD","innertext:="&strLastName&"").Click
Reporter.ReportEvent micPass,"Clicked on the Las
tName Field in the Result"," "&strLastName&" "
If Browser("MasterFile").Page("Contact Profile")
.Exist Then
Reporter.ReportEvent micPass,"St
ep 5:Contact Profile Screen Appeared","After Clicking on Last Name Fileld"
Else
Reporter.ReportEvent micFail,"St
ep 5:Contact Profile Screen Not Appeared","After Clicking on Last Name Fileld"
Call captureScreenshot()
Environment.Value("Execution_Log
")="False"
End If
Else
Reporter.ReportEvent micWarning,"Verification fo
r LastName in Result"," No Result to click on Last Name "
End If
'Step 6
Call select_Menu("MasterFile","Contact Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If

End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC5()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links "
Else
Reporter.ReportEvent micFail,"Step 1: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links "
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:In the Repo
rts-BNY Contact Search page, select Department as 'Administration', Location as
'US' and the Position as 'Administrator' ","In the search results that appear fo
r the first three records verify that 'Administrator' appears under the Position
field, 'Administration' under Department field and 'US' appears under Location
Field"
Else
Reporter.ReportEvent micFail,"Step 2:In the Repo
rts-BNY Contact Search page, select Department as 'Administration', Location as
'US' and the Position as 'Administrator' ","In the search results that appear fo
r the first three records verify that 'Administrator' appears under the Position
field, 'Administration' under Department field and 'US' appears under Location
Field"
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BNYContact").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - BNY Contact","Reports;B
NY Contact")
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: In the Rep
orts-BNY Contact Search page, select Department as 'Relationship Management' , S
ubdepartment as 'EEMEA' and the Position as 'Relationship Manager","In the searc
h results that appear for the first three records verify that 'Relationship Mana
ger' appears under the Position field, 'Relationship Management' under Departmen
t field and 'EEMEA' appears under Subdepartment field"
Else
Reporter.ReportEvent micFail,"Step 3: In the Rep
orts-BNY Contact Search page, select Department as 'Relationship Management' , S
ubdepartment as 'EEMEA' and the Position as 'Relationship Manager","In the searc
h results that appear for the first three records verify that 'Relationship Mana
ger' appears under the Position field, 'Relationship Management' under Departmen
t field and 'EEMEA' appears under Subdepartment field"
Environment.Value("TestCase_Log")="True"
End If
'Step 4
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 4: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BNYContact").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Navigate t
o Reports-BNY-Contact Search page and choose Department field as Company Desk an
d clicks on search","In the search results that appear under the Department fiel
d Company Desk must be displayed"
Else
Reporter.ReportEvent micFail,"Step 5: Navigate t
o Reports-BNY-Contact Search page and choose Department field as Company Desk an
d clicks on search","In the search results that appear under the Department fiel
d Company Desk must be displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsBNYContact_TC6()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
strLastNameSearch=Browser("MasterFile").Page("Reports - BNY Cont
act").WebTable("Item").GetCellData(2,3)
strFirstNameSearch=Browser("MasterFile").Page("Reports - BNY Con
tact").WebTable("Item").GetCellData(2,4)
If strLastNameSearch<>""Then
Browser("MasterFile").Page("Reports - BNY Contac
t").WebElement("html tag:=TD","innertext:="&strLastNameSearch&"").Click
Reporter.ReportEvent micPass,"Clicked on the Las
tName Field in the Result"," "&strLastNameSearch&" "
If Browser("MasterFile").Page("Contact Profile")
.Exist Then
Reporter.ReportEvent micPass,"St
ep 2:Navigate to Reports-Bny Contact and search with any criteria and In the Rep
orts-BNY Contact search results page click on the link Last Name"," User should
have navigated to Contact Profile screen"
Else
Reporter.ReportEvent micFail,"St
ep 2:Navigate to Reports-Bny Contact and search with any criteria and In the Rep
orts-BNY Contact search results page click on the link Last Name"," User should
have navigated to Contact Profile screen"
Call captureScreenshot()
Environment.Value("Execution_Log
")="False"
End If
Else
Reporter.ReportEvent micWarning,"Verification fo
r LastName in Result"," No Result to click on Last Name "
Call captureScreenshot()
End If
'Step 3
strSalutation=Browser("MasterFile").Page("Contact Profile").WebL
ist("Salutation").GetROProperty("value")
strFirstName=Browser("MasterFile").Page("Contact Profile").WebEdit("Firs
tName").GetROProperty("value")
strMiddleInitial= Browser("MasterFile").Page("Contact Profile").
WebEdit("MiddleInitial").GetROProperty("value")
strLastName=Browser("MasterFile").Page("Contact Profile").WebEdi
t("LastName").GetROProperty("value")
strComments=Browser("MasterFile").Page("Contact Profile").WebEdi
t("Comments").GetROProperty("value")
strLocation=Browser("MasterFile").Page("Contact Profile").WebLis
t("Location").GetROProperty("value")
strSeniorManagement=Browser("MasterFile").Page("Contact Profile").WebLis
t("SeniorManagement").GetROProperty("value")
strRACFID= Browser("MasterFile").Page("Contact Profile").WebEdit
("RACFID").GetROProperty("value")
strEmployeeID= Browser("MasterFile").Page("Contact Profile").We
bEdit("EmployeeID").GetROProperty("value")
strDepartment=Browser("MasterFile").Page("Contact Profile").WebE
dit("Department").GetROProperty("value")
strSubDepartment=Browser("MasterFile").Page("Contact Profile").W
ebEdit("SubDepartment").GetROProperty("value")
strPosition=Browser("MasterFile").Page("Contact Profile").WebEdi
t("Position").GetROProperty("value")
Browser("MasterFile").Page("Contact Profile").WebElement("Enterp
rise").Click
strEnterprise=Browser("MasterFile").Page("Contact Profile").WebE
dit("Enterprise").GetROProperty("value")
strJobtitle=Browser("MasterFile").Page("Contact Profile").WebEdi
t("JobTitle").GetROProperty("value")
strStatus=Browser("MasterFile").Page("Contact Profile").WebList(
"Status").GetROProperty("value")
strAssistantName=Browser("MasterFile").Page("Contact Profile").W
ebEdit("AssistantName").GetROProperty("value")
strPhoneNo=Browser("MasterFile").Page("Contact Profile").WebEdit
("PhoneNo").GetROProperty("value")
strAddrLine1=Browser("MasterFile").Page("Contact Profile").WebEd
it("AddrLine1").GetROProperty("value")
strAddrLine2=Browser("MasterFile").Page("Contact Profile").WebEd
it("AddrLine2").GetROProperty("value")
strAddrLine3=Browser("MasterFile").Page("Contact Profile").WebEd
it("AddrLine3").GetROProperty("value")
strCity=Browser("MasterFile").Page("Contact Profile").WebEdit("C
ity").GetROProperty("value")
strState=Browser("MasterFile").Page("Contact Profile").WebEdit("
State").GetROProperty("value")
strZip=Browser("MasterFile").Page("Contact Profile").WebEdit("Zi
p").GetROProperty("value")
strCountry=Browser("MasterFile").Page("Contact Profile").WebEdit
("Country").GetROProperty("value")
strMailStop=Browser("MasterFile").Page("Contact Profile").WebEdi
t("MailStop").GetROProperty("value")
strWork=Browser("MasterFile").Page("Contact Profile").WebEdit("W
ork").GetROProperty("value")
strExt=Browser("MasterFile").Page("Contact Profile").WebEdit("Ex
t").GetROProperty("value")
strCellular=Browser("MasterFile").Page("Contact Profile").WebEdi
t("Cellular").GetROProperty("value")
strFax=Browser("MasterFile").Page("Contact Profile").WebEdit("Fa
x").GetROProperty("value")
strPager=Browser("MasterFile").Page("Contact Profile").WebEdit("
Pager").GetROProperty("value")
strPin=Browser("MasterFile").Page("Contact Profile").WebEdit("Pi
n").GetROProperty("value")
strHome=Browser("MasterFile").Page("Contact Profile").WebEdit("H
ome").GetROProperty("value")
strMisc=Browser("MasterFile").Page("Contact Profile").WebEdit("M
isc").GetROProperty("value")
strEmailaddress=Browser("MasterFile").Page("Contact Profile").We
bEdit("EmailAddress").GetROProperty("value")
'Step 4
Browser("MasterFile").Page("Contact Profile").WebElement("Compan
y/ Roles").Click
If Browser("MasterFile").Page("Contact Profile").WebTable("Conta
ctCompanyLink").RowCount <= 2 Then
Reporter.ReportEvent micFail,"Step 4:No Values p
resent in Contact Company Link Table","After Clicking on Company/Roles "
Environment.Value("Execution_Log")="False"
Else
Reporter.ReportEvent micPass,"Step 4:No Values p
resent in Contact Company Link Table","After Clicking on Company/Roles "
End If
Browser("MasterFile").Page("Contact Profile").WebElement("Produc
ts").Click
strProduct=Browser("MasterFile").Page("Contact Profile").WebEdit
("Product").GetROProperty("value")
strUserID=Browser("MasterFile").Page("Contact Profile").WebEdit(
"UserID").GetROProperty("value")
strEffectivedate=Browser("MasterFile").Page("Contact Profile").W
ebEdit("EffectiveDate").GetROProperty("value")
strTerminationdate=Browser("MasterFile").Page("Contact Profile")
.WebEdit("TerminationDate").GetROProperty("value")
'Step5
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Wait(5)
Browser("MasterFile").Page("Profile - Contact Search").WebEdit("
LastName").Set(strLastNameSearch)
Browser("MasterFile").Page("Profile - Contact Search").WebEdit("
FirstName").Set(strFirstNameSearch)
Browser("MasterFile").Page("Profile - Contact Search").Image("Se
arch").Click
Wait(5)
strProfileContactName=Browser("MasterFile").Page("Profile - Cont
act Search").WebTable("Contact Search Results").GetCellData(6,2)
If strProfileContactName<>""Then
Browser("MasterFile").Page("Profile - Contact Se
arch").WebElement("html tag:=TD","innertext:="&strProfileContactName&"").Click
Reporter.ReportEvent micPass,"Clicked on the sea
rched Result"," "&strProfileContactName&" "
If Browser("MasterFile").Page("Contact Profile")
.Exist Then
Reporter.ReportEvent micPass,"St
ep 5:Navigate to the profile-> Contact screen and search for the same contact na
me as in the steps above and click on the link."," User should have navigated to
Contact Profile screen"
Else
Reporter.ReportEvent micFail,"St
ep 5:Navigate to the profile-> Contact screen and search for the same contact na
me as in the steps above and click on the link."," User should have navigated to
Contact Profile screen"
Call captureScreenshot()
Environment.Value("Execution_Log
")="False"
End If
Else
Reporter.ReportEvent micWarning,"Verification fo
r LastName in Result"," No Result to click on Last Name "
Call captureScreenshot()
End If
'Step 6
If (strSalutation=Browser("MasterFile").Page("Contact Profile").WebList(
"Salutation").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Salutation is same
","As:"&strSalutation
Else
Reporter.ReportEvent micFail, "Salutation is not
same" ,"As:"&strSalutation&" , "&Browser("MasterFile").Page("Contact Profile").
WebList("Salutation").GetROProperty("value")
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
End If
If (strFirstName=Browser("MasterFile").Page("Contact Profile").W
ebEdit("FirstName").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"First Name is same
","As:"&strFirstName
Else
Reporter.ReportEvent micFail, "First Name is not
same" ,"As:"&strFirstName&" , "&Browser("MasterFile").Page("Contact Profile").W
ebEdit("FirstName").GetROProperty("value")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strMiddleInitial= Browser("MasterFile").Page("Contact Profile").WebEd
it("MiddleInitial").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Middle Initial is
same","As:"&strMiddleInitial
Else
Reporter.ReportEvent micFail, "MiddleInitial is
not same" ,"As:"&strMiddleInitial&" , "&Browser("MasterFile").Page("Contact Prof
ile").WebEdit("MiddleInitial").GetROProperty("value")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strLastName= Browser("MasterFile").Page("Contact Profile").We
bEdit("LastName").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"LastName is same",
"As:"&strLastName
Else
Reporter.ReportEvent micFail, "LastName is not s
ame" ,"As:"&strLastName&" , "&Browser("MasterFile").Page("Contact Profile").WebE
dit("LastName").GetROProperty("value")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strComments=Browser("MasterFile").Page("Contact Profile").Web
Edit("Comments").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Comments are same"
,"As:"&strComments
Else
Reporter.ReportEvent micFail, "Comments are not
same","As:"&strComments
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strLocation=Browser("MasterFile").Page("Contact Profile").Web
List("Location").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Location is same"
,"As:"&strLocation
Else
Reporter.ReportEvent micFail, "Location is not
same","As:"&strLocation
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strSeniorManagement=Browser("MasterFile").Page("Contact Profile").Web
List("SeniorManagement").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"Senior Management
is same","As:"&strSeniorManagement
Else
Reporter.ReportEvent micFail, "Senior Management
is not same","As:"&strSeniorManagement
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strRACFID= Browser("MasterFile").Page("Contact Profile").WebE
dit("RACFID").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"RacfID is same"
,"As:"&strRACFID
Else
Reporter.ReportEvent micFail, "RacfID is not
same","As:"&strRACFID
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strEmployeeID = Browser("MasterFile").Page("Contact Profile"
).WebEdit("EmployeeID").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"EmployeeID is sa
me","As:"&strEmployeeID
Else
Reporter.ReportEvent micFail, "EmployeeID is no
t same","As:"&strEmployeeID
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strDepartment=Browser("MasterFile").Page("Contact Profile").W
ebEdit("Department").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Department is sa
me","As:"&strDepartment
Else
Reporter.ReportEvent micFail, "Department is n
ot same","As:"&strDepartment
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strSubDepartment=Browser("MasterFile").Page("Contact Profile"
).WebEdit("SubDepartment").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"SubDepartment is
same","As:"&strSubDepartment
Else
Reporter.ReportEvent micFail, "SubDepartment is
not same","As:"&strSubDepartment
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strPosition=Browser("MasterFile").Page("Contact Profile").Web
Edit("Position").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Position is same
","As:"&strPosition
Else
Reporter.ReportEvent micFail, "Position is not
same","As:"&strPosition
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
Browser("MasterFile").Page("Contact Profile").WebElement("Enterp
rise").Click
Wait(5)
If (strEnterprise=Browser("MasterFile").Page("Contact Profile").
WebEdit("Enterprise").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Enterprise is sa
me","As:"&strEnterprise
Else
Reporter.ReportEvent micFail, "Enterprise is n
ot same","As:"&strEnterprise
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strJobtitle=Browser("MasterFile").Page("Contact Profile").Web
Edit("JobTitle").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"JobTitle is same
","As:"&strJobtitle
Else
Reporter.ReportEvent micFail, "JobTitle is not
same","As:"&strJobtitle
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strStatus=Browser("MasterFile").Page("Contact Profile").WebLi
st("Status").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"strStatus is sam
e","As:"&strStatus
Else
Reporter.ReportEvent micFail, "strStatus is not
same","As:"&strStatus
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If( strAssistantName=Browser("MasterFile").Page("Contact Profile").We
bEdit("AssistantName").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"Asst Name is sam
e","As:"&strAssistantName
Else
Reporter.ReportEvent micFail, "Asst Name is no
t same","As:"&strAssistantName
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strPhoneNo=Browser("MasterFile").Page("Contact Profile").WebE
dit("PhoneNo").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"PhoneNo is same"
,"As:"&strPhoneNo
Else
Reporter.ReportEvent micFail, "PhoneNo is not
same","As:"&strPhoneNo
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strAddrLine1=Browser("MasterFile").Page("Contact Profile").We
bEdit("AddrLine1").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"AddrLine1 is sam
e","As:"&strAddrLine1
Else
Reporter.ReportEvent micFail, "AddrLine1 is not
same","As:"&strAddrLine1
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strAddrLine2=Browser("MasterFile").Page("Contact Profile").We
bEdit("AddrLine2").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"AddrLine2 is sam
e","As:"&strAddrLine2
Else
Reporter.ReportEvent micFail, "AddrLine2 is not
same","As:"&strAddrLine2
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strAddrLine3=Browser("MasterFile").Page("Contact Profile").We
bEdit("AddrLine3").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"AddrLine3 is sam
e","As:"&strAddrLine3
Else
Reporter.ReportEvent micFail, "AddrLine3 is not
same","As:"&strAddrLine3
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strCity=Browser("MasterFile").Page("Contact Profile").WebEdit
("City").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"City is same","As
:"&strCity
Else
Reporter.ReportEvent micFail, "City is not same
","As:"&strCity
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strState=Browser("MasterFile").Page("Contact Profile").WebEdi
t("State").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"State is same","A
s:"&strState
Else
Reporter.ReportEvent micFail, "State is not sam
e","As:"&strState
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If (strZip=Browser("MasterFile").Page("Contact Profile").WebEdit
("Zip").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Zip is same","As:
"&strZip
Else
Reporter.ReportEvent micFail, "Zip is not same"
,"As:"&strZip
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strCountry=Browser("MasterFile").Page("Contact Profile").WebE
dit("Country").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Country is same",
"As:"&strCountry
Else
Reporter.ReportEvent micFail, "Country is not s
ame","As:"&strCountry
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strMailStop=Browser("MasterFile").Page("Contact Profile").Web
Edit("MailStop").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"MailStop is same"
,"As:"&strMailStop
Else
Reporter.ReportEvent micFail, "MailStop is not
same","As:"&strMailStop
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strWork=Browser("MasterFile").Page("Contact Profile").WebEdit
("Work").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Work is same","As
:"&strWork
Else
Reporter.ReportEvent micFail, "Work is not same"
,"As:"&strWork
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strExt=Browser("MasterFile").Page("Contact Profile").WebEdit(
"Ext").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"Ext is same","As:
"&strExt
Else
Reporter.ReportEvent micFail, "Ext is not same",
"As:"&strExt
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strCellular=Browser("MasterFile").Page("Contact Profile").Web
Edit("Cellular").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Cellular is same"
,"As:"&strCellular
Else
Reporter.ReportEvent micFail, "Cellular is not
same","As:"&strCellular
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strFax=Browser("MasterFile").Page("Contact Profile").WebEdit(
"Fax").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Fax is same","As
:"&strFax
Else
Reporter.ReportEvent micFail, "Fax is not same"
,"As:"&strFax
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strPager=Browser("MasterFile").Page("Contact Profile").WebEdi
t("Pager").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Pager is same","A
s:"&strPager
Else
Reporter.ReportEvent micFail, "Pager is not sam
e","As:"&strPager
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strPin=Browser("MasterFile").Page("Contact Profile").WebEdit(
"Pin").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Pin is same","As:
"&strPin
Else
Reporter.ReportEvent micFail, "Pin is not same"
,"As:"&strPin
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strHome=Browser("MasterFile").Page("Contact Profile").WebEdit
("Home").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Home is same","As
:"&strHome
Else
Reporter.ReportEvent micFail, "Home is not same
","As:"&strHome
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strMisc=Browser("MasterFile").Page("Contact Profile").WebEdit
("Misc").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Misc is same","As
:"&strMisc
Else
Reporter.ReportEvent micFail, "Misc is not same
","As:"&strMisc
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strEmailaddress=Browser("MasterFile").Page("Contact Profile")
.WebEdit("EmailAddress").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"EmailAddress is s
ame","As:"&strEmailAddress
Else
Reporter.ReportEvent micFail, "EmailAddress is
not same","As:"&strEmailAddress
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If

Browser("MasterFile").Page("Contact Profile").WebElement("Compan
y/ Roles").Click
If Browser("MasterFile").Page("Contact Profile").WebTable("Conta
ctCompanyLink").RowCount <= 2 Then
Reporter.ReportEvent micFail,"Step 6:No Values p
resent in Contact Company Link Table","After Clicking on Company/Roles "
Environment.Value("Execution_Log")="False"
Call captureScreenshot()
Else
Reporter.ReportEvent micPass,"Step 6:No Values p
resent in Contact Company Link Table","After Clicking on Company/Roles "
End If
Browser("MasterFile").Page("Contact Profile").WebElement("Produc
ts").Click
If(strProduct=Browser("MasterFile").Page("Contact Profile").WebE
dit("Product").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Product is same",
"As:"&strProduct
Else
Reporter.ReportEvent micFail, "Product is not s
ame","As:"&strProduct
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strUserID=Browser("MasterFile").Page("Contact Profile").WebEd
it("UserID").GetROProperty("value"))Then
Reporter.ReportEvent micPass,"strUserID is sam
e","As:"&strUserID
Else
Reporter.ReportEvent micFail, "strUserID is not
same","As:"&strUserID
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strEffectivedate=Browser("MasterFile").Page("Contact Profile"
).WebEdit("EffectiveDate").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Effectivedate is
same","As:"&strEffectivedate
Else
Reporter.ReportEvent micFail, "Effectivedate is
not same","As:"&strEffectivedate
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If(strTerminationdate=Browser("MasterFile").Page("Contact Profil
e").WebEdit("TerminationDate").GetROProperty("value")) Then
Reporter.ReportEvent micPass,"Terminationdate i
s same","As:"&strTerminationdate
Else
Reporter.ReportEvent micFail, "Terminationdate
is not same","As:"&strTerminationdate
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step 7
Call select_Menu("MasterFile","Contact Profile","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If

End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsBNYContact_TC7()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Givien Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Call FilterCriteria("MasterFile","Reports - BNY Contact","Filter
",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterExpression
","BNYContact"),DataTable.Value("FilterValue","BNYContact"))
Call chkFilterSearchCriteria("MasterFile","Reports - BNY Contact
",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterExpression
","BNYContact"),DataTable.Value("FilterValue","BNYContact"))
DatenTime=Left(Right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Result Item have
the Information along with Fields","In the Search Results"
Else
Reporter.ReportEvent micFail,"Result Item Does N
ot have the Information along with Fields","In the Search Results"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6: Clicking
on 'Filter' option,selecting - one option from Column, one option from Expressi
on and enters value in 'Value' field. Then clicks on 'Ok'.","Given Filter Criter
ia"
Else
Reporter.ReportEvent micFail,"Step 5,6: Clickin
g on 'Filter' option,selecting - one option from Column, one option from Express
ion and enters value in 'Value' field. Then clicks on 'Ok'.","Given Filter Crite
ria"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC8()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6,7
Call FilterCriteria_MarketReview("MasterFile","Reports - BNY Con
tact",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterExpres
sion","BNYContact"),DataTable.Value("FilterValue","BNYContact"),DataTable.Value(
"FilterRequired","BNYContact"))
Call chkMultipleFilterSearchCriteria("MasterFile","Reports - BNY
Contact",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterEx
pression","BNYContact"),DataTable.Value("FilterValue","BNYContact"),DataTable.Va
lue("FilterRequired","BNYContact"))
Wait(3)
DatenTime=left(right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Result Item have
the Information along with Fields","In the Search Results"
Else
Reporter.ReportEvent micFail,"Result Item Does N
ot have the Information along with Fields","In the Search Results"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6,7: Clicki
ng on 'Filter' option,selecting multiple filter Criteria and clicking on 'Ok'.",
"Given Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 5,6,7: Click
ing on 'Filter' option,selecting multiple filter Criteria and clicking on 'Ok'."
,"Given Filter Criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR
Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC9()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6,7
Call FilterCriteria_MarketReview("MasterFile","Reports - BNY Con
tact",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterExpres
sion","BNYContact"),DataTable.Value("FilterValue","BNYContact"),DataTable.Value(
"FilterRequired","BNYContact"))
Call chkMultipleFilterSearchCriteria("MasterFile","Reports - BNY Contact
",DataTable.Value("FilterColumn","BNYContact"),DataTable.Value("FilterExpression
","BNYContact"),DataTable.Value("FilterValue","BNYContact"),DataTable.Value("Fil
terRequired","BNYContact"))
Wait(3)
DatenTime=Left(Right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Result Item have the Information
along with Fields","In the Search Results"
Else
Reporter.ReportEvent micFail,"Result Item Does Not have the Info
rmation along with Fields","In the Search Results"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6,7: Clicking on 'F
ilter' option,selecting multiple filter Criteria and clicking on 'Ok'.","Given F
ilter Criteria"
Else
Reporter.ReportEvent micFail,"Step 5,6,7: Clicking on '
Filter' option,selecting multiple filter Criteria and clicking on 'Ok'.","Given
Filter Criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC10()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Browser("MasterFile").Page("Reports - BNY Contact").WebElement("
Filter").Click
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","F
ilterColumn",DataTable.Value("FilterColumn","BNYContact"))
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","E
xpression",DataTable.Value("FilterExpression","BNYContact"))
Call set_webEdit_Value("MasterFile","Reports - BNY Contact","Val
ue",DataTable.Value("FilterValue","BNYContact"))
Wait(2)
Call click_WebButton("MasterFile", "Reports - BNY Contact", "Del
ete")
If get_WebList_Value("MasterFile","Reports - BNY Contact","Filte
rColumn")="" And get_WebEdit_Value("MasterFile","Reports - BNY Contact","Value"
)="" Then
Reporter.ReportEvent micPass, "Filter Column fie
ld and Value Fields are Cleared","After Clicking on DEL button"
Else
Reporter.ReportEvent micFail,"Filter Column fiel
d and Value Fields are NOT Cleared","Even After Clicking on DEL button"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6:Selecting
- one option from Column, one option from Expression and enters value in 'Value
' field. Then clicks on 'Delete' button.","user selects - one option from Column
, one option from Expression and enters value in 'Value' field. Then clicks on '
Delete' button."
Else
Reporter.ReportEvent micFail,"Step 5,6:Selecting
- one option from Column, one option from Expression and enters value in 'Value
' field. Then clicks on 'Delete' button.","user selects - one option from Column
, one option from Expression and enters value in 'Value' field. Then clicks on '
Delete' button."
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC11()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Browser("MasterFile").Page("Reports - BNY Contact").WebElement("
Filter").Click
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","F
ilterColumn",DataTable.Value("FilterColumn","BNYContact"))
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","E
xpression",DataTable.Value("FilterExpression","BNYContact"))
Call set_webEdit_Value("MasterFile","Reports - BNY Contact","Val
ue",DataTable.Value("FilterValue","BNYContact"))
Call click_WebButton("MasterFile","Reports - BNY Contact", "Add
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Clicking o
n Filter "," Giving Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 5:Clicking on
Filter "," Giving Filter Criteria"
Environment.Value("TestCase_Log")="True"
End If
Wait(2)
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable
("FilterColumn").RowCount = 3 Then
Reporter.ReportEvent micPass,"Step 6:Additional
Row is added to enter the filtering options","After Click on ADD Button"
Else
Reporter.ReportEvent micFail,"Step 6:Additional
Row is NOT added to enter the filtering options","After Click on ADD Button"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step 7
Call click_WebButton("MasterFile","Reports - BNY Contact", "Del
ete")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable
("FilterColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 7:Additional
Row is DELETED to enter the filtering options","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 7:Additional
Row is Not DELETED to enter the filtering options","Even After Click on DELETE B
utton"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","Home;DR
Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC12()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5
If Browser("MasterFile").Page("Reports - BNY Contact").WebTabl
e("Item").WebElement("innertext:=Last Name","innerhtml:=Last Name").Exist Then
Reporter.ReportEvent micPass,"Verification for C
licking on Last Name Header","To check the Order of elements under the header,Cl
icked"
Browser("MasterFile").Page("Reports - BNY Contac
t").WebTable("Item").WebElement("innertext:=Last Name","innerhtml:=Last Name").C
lick
Wait(3)
Call chkSortOrder("MasterFile","Reports - BNY Co
ntact","Item","Last Name","Ascending")
Else
Reporter.ReportEvent micFail,"Last Name Header w
as not found ","To check the Order of elements under the header"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: User click
s on any column header","The column should be sorted in ascending/descending ord
er."
Else
Reporter.ReportEvent micFail,"Step 5: User click
s on any column header","The column should be sorted in ascending/descending ord
er."
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC13()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5
Call SortCriteria("MasterFile","Reports - BNY Contact","Sort",Da
taTable.Value("SortColumn","BNYContact"),DataTable.Value("SortOrder","BNYContact
"))
Wait(3)
DatenTime=left(right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Verification for
Result Item having the Information along with Fields","In the Search Results, Re
sult Item have the Information along with Fields"
Else
Reporter.ReportEvent micFail,"Verification for R
esult Item having the Information along with Fields","In the Search Results, Res
ult Item NOT have the Information along with Fields"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Sorting th
e generated report in ascending order ","Sorting the generated report in ascend
ing order "
Else
Reporter.ReportEvent micFail,"Step 5: Sorting th
e generated report in ascending order ","Sorting the generated report in ascend
ing order "
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC14()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Call SortCriteria("MasterFile","Reports - BNY Contact","Sort",Da
taTable.Value("SortColumn","BNYContact"),DataTable.Value("SortOrder","BNYContact
"))
Wait(3)
DatenTime=left(right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Verification for
Result Item having the Information along with Fields","In the Search Results, Re
sult Item have the Information along with Fields"
Else
Reporter.ReportEvent micFail,"Verification for R
esult Item having the Information along with Fields","In the Search Results, Res
ult Item NOT have the Information along with Fields"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6: Sorting
the generated report in descending order ","Sorting the generated report in asc
ending order "
Else
Reporter.ReportEvent micFail,"Step 5,6: Sorting
the generated report in descending order ","Sorting the generated report in asc
ending order "
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC15()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6,7
Call MultipleSortCriteria("MasterFile","Reports - BNY Contact","
Sort",Datatable.Value("SortColumn","BNYContact"),DataTable.Value("SortOrder","BN
YContact"))
Wait(3)
DatenTime=left(right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Result Item have
the Information along with Fields","In the Search Results"
Else
Reporter.ReportEvent micFail,"Result Item Does N
ot have the Information along with Fields","In the Search Results"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6,7: Multip
le Sorting the generated report ","Multiple Sorting the generated report "
Else
Reporter.ReportEvent micFail,"Step 5,6,7: Multip
le Sorting the generated report ","Multiple Sorting the generated report "
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC16()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6,7
Call MultipleSortCriteria("MasterFile","Reports - BNY Contact","
Sort",Datatable.Value("SortColumn","BNYContact"),DataTable.Value("SortOrder","BN
YContact"))
Wait(3)
DatenTime=left(right(Browser("MasterFile").Page("Reports - BNY C
ontact").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("outert
ext"),23),20)
Wait(3)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable(
"Item").RowCount > 1 Then
Reporter.ReportEvent micPass, "Result Item have
the Information along with Fields","In the Search Results"
Else
Reporter.ReportEvent micFail,"Result Item Does N
ot have the Information along with Fields","In the Search Results"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6,7: Multip
le Sorting the generated report ","Multiple Sorting the generated report "
Else
Reporter.ReportEvent micFail,"Step 5,6,7: Multip
le Sorting the generated report ","Multiple Sorting the generated report "
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC17()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search"," Given Search Criteria and Clicked on Se
arch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Browser("MasterFile").Page("Reports - BNY Contact").WebElement("
Sort").Click
Call pageCheck_WebList("MasterFile","Reports - BNY Contact","sor
tcolumn;order","Sort:")
Call pageCheck_WebButton("MasterFile","Reports - BNY Contact","A
dd;Delete;OK","Sort:")
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","S
ortColumn",Datatable.Value("SortColumn","BNYContact"))
Call select_Combo_Value ("MasterFile","Reports - BNY Contact", "
SortOrder",DataTable.Value("SortOrder","BNYContact"))
Wait(2)
Call click_WebButton("MasterFile", "Reports - BNY Contact", "Sor
t_Delete")
Wait(3)
If get_WebList_Value("MasterFile","Reports - BNY Contact","SortC
olumn")="" AND get_WebList_Value("MasterFile","Reports - BNY Contact","SortOrde
r")="" Then
Reporter.ReportEvent micPass, "Sort Column field
and Order Fields are Cleared","After Clicking on DEL button"
Else
Reporter.ReportEvent micFail,"Sort Column field
and Order Fields are not Cleared","Even After Clicking on DEL button, having "&g
et_WebList_Value("MasterFile","Reports - BNY Contact","SortColumn")&" , "&get_We
bList_Value("MasterFile","Reports - BNY Contact","SortOrder")
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6: Selectin
g one of the dropdown in the column, order fields and click on 'Delete' button "
,"Selecting one of the dropdown in the column, order fields and click on 'Delete
' button"
Else
Reporter.ReportEvent micFail,"Step 5,6: Selectin
g one of the dropdown in the column, order fields and click on 'Delete' button "
,"Selecting one of the dropdown in the column, order fields and click on 'Delete
' button"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC18()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6
Browser("MasterFile").Page("Reports - BNY Contact").WebElement("
Sort").Click
Call pageCheck_WebList("MasterFile","Reports - BNY Contact","sor
tcolumn;order","Sort:")
Call pageCheck_WebButton("MasterFile","Reports - BNY Contact","A
dd;Delete;OK","Sort:")
Call select_Combo_Value ("MasterFile","Reports - BNY Contact","S
ortColumn",Datatable.Value("SortColumn","BNYContact"))
Call select_Combo_Value ("MasterFile","Reports - BNY Contact", "
SortOrder",DataTable.Value("SortOrder","BNYContact"))
Wait(2)
Call click_WebButton("MasterFile", "Reports - BNY Contact", "Sor
t_Add")
Wait(2)
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable
("SortColumn").RowCount = 3 Then
Reporter.ReportEvent micPass,"Additional Row is
added to enter the Sorting options","After Click on ADD Button"
Else
Reporter.ReportEvent micFail,"Additional Row is
NOT added to enter the Sorting options","After Click on ADD Button"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6: Clicking
on Sort, Selecting one of the dropdown in the column, order fields and Click on
'Add' button. ","Clicking on Sort, Selecting one of the dropdown in the column,
order fields and Click on 'Add' button."
Else
Reporter.ReportEvent micFail,"Step 5,6: Clicking
on Sort, Selecting one of the dropdown in the column, order fields and Click on
'Add' button. ","Clicking on Sort, Selecting one of the dropdown in the column,
order fields and Click on 'Add' button."
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call click_WebButton("MasterFile","Reports - BNY Contact", "Sor
t_Delete")
If Browser("MasterFile").Page("Reports - BNY Contact").WebTable
("SortColumn").RowCount = 2 Then
Reporter.ReportEvent micPass,"Step 7:Additional
Row is DELETED to enter the Sorting options","After Click on DELETE Button"
Else
Reporter.ReportEvent micFail,"Step 7:Additional
Row is Not DELETED to enter the Sorting options","Even After Click on DELETE But
ton"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
'Step8
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBNYContact_TC19()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Logs into
the Master File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 1: Logs into
the Master File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 2
Call select_Menu("MasterFile","MasterFile","Reports;BNY Contact"
)
Call pageCheck_WebEditOR("MasterFile","Reports - BNY Contact","C
ontactFirstName;ContactLastName")
Call pageCheck_WebListOR("MasterFile","Reports - BNY Contact","D
epartment;Location;Position;SeniorManagment;Subdepartment")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Else
Reporter.ReportEvent micFail,"Step 2: Navigating
to Reports - > BNY Contact ","BNY Contact Page opened Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step 3 and 4
Call BNYsearchCriteria("MasterFile","Reports - BNY Contact")
Call ReportLoadWait("MasterFile","Reports - BNY Contact","Item",
"Item")
Call chkBNYContactSearchCriteria("MasterFile","Reports - BNY Con
tact")
If Browser("MasterFile").Page("Reports - BNY Contact").WebEleme
nt("html tag:=SPAN","innertext:=As of.*").Exist(5) Then
DatenTime=Left(Right(Browser("MasterFile").Page(
"Reports - BNY Contact").WebElement("html tag:=SPAN","innertext:=As of.*").GetRO
Property("outertext"),23),20)
Wait(2)
Call chkTimeDiffernce(DatenTime)
End If
Call chkReportHeader("MasterFile","Reports - BNY Contact","BNYCo
ntactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Else
Reporter.ReportEvent micFail,"Step 3,4: Giving S
earch Criteria and Clicking on Search","Given Search Criteria and Clicked on Sea
rch"
Environment.Value("TestCase_Log")="True"
End If
'Step 5,6,7,8
Browser("MasterFile").Page("Reports - BNY Contact").WebElement("
html tag:=TH","innertext:=Salutation").Click
Call SaveASExcelwithClick("MasterFile","Reports - BNY Contact","
BNYContact","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5,6,7,8: Clic
king on Save as Excel,Save,Selecting Desktop and clicking Save,Going to the loca
tion and opening the excelviewer.xls","Clicking on Save as Excel,Save,Selecting
Desktop and clicking Save,Going to the location and opening the excelviewer.xls"
Else
Reporter.ReportEvent micFail,"Step 5,6,7,8: Clic
king on Save as Excel,Save,Selecting Desktop and clicking Save,Going to the loca
tion and opening the excelviewer.xls","Clicking on Save as Excel,Save,Selecting
Desktop and clicking Save,Going to the location and opening the excelviewer.xls"
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Call select_Menu("MasterFile","Reports - BNY Contact","H
ome;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page should be displayed with the correspondi
ng links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++

Вам также может понравиться