You are on page 1of 53

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

==========================
' Name of the Script : Master File Reports Contact
' Scope of the Script : This test script covers 22 te
st cases related to the MF Reports --> Contact
' Author
: Imam Shareef
' Description : Corporate Actions Reports App
roved Events
' Date and / or Version : 01-12-2008,version 1.0
'===============================================================================
============================
Sub MFReportsContact()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")=True
''Test case count
Const TC_COUNT = 22
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
'****Adding MFLogin sheet to the dataTable and Importing the Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "Contact"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Con
tact","Contact"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom
ePageVerification","HomePageVerification"
Environment.Value("strSheetName") = "Contact"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
Call login("MasterFile","Login Page","User","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount =1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","Contact")="Y" Then ''If run flag is
Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE - '" & Da
taTable("TestCaseID","Contact") & "' ########### ","Execution of Test Case '" &
DataTable("TestCaseDesc","Contact") & "' Started"
strFuncName = "MFReportsContact_TC" & intTCCount & "()"
''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True" Then
Call Execution_log("",Datatable.Value("TestCaseI
D", "Contact"), Datatable.Value("TestCaseDesc", "Contact"), "PASS")
Else
Call Execution_log("",Datatable.Value("TestCaseI
D", "Contact"), Datatable.Value("TestCaseDesc", "Contact"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF TEST CASE - '" &
DataTable("TestCaseID","Contact") & "###########","The Test Case Execution Compl
eted"
End If
''Increment the test data table row
strPrevious=Trim(DataTable.Value("TestCaseID","Contact"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("DATATABLE_ROW
"))
strNext=Trim(DataTable.Value("TestCaseID","Contact"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW") +
1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("DATATABLE_R
OW"))
strNext=Trim(DataTable.Value("TestCaseID","Contact"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub
'**********************************************Test Case 1 to Test Case 19******
********************************************
Public Function MFReportsContact_TC1()
Environment.Value("TestCase_Log")="True"
'Step # 1 and 2
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
Call click_webElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search"
,"CompanyName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFr
om;CreatedTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 and 2: Unde
r Reports menu select Contact Search.","Expected fields are displayed in search
criteria"
Else
Reporter.ReportEvent micFail,"Step 1 and 2: Unde
r Reports menu select Contact Search.","Expected fields are not displayed in sea
rch criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","ContactF
irstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Enter one
or more search Criteria and click on search..","Succesfully entered the Search c
riteria"
Else
Reporter.ReportEvent micFail,"Step 3: Enter one
or more search Criteria and click on search..","unable to enter the Search crite
ria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4&5
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4&5: Enter a
value for the ContactFirstName_Reports field,ContactLevel Field and click on se
arch..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4&5: Enter a
value for the ContactFirstName_Reports field,ContactLevel Field and click on se
arch..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
End Function
'----------------Test Case 2 -----------------------------
Public Function MFReportsContact_TC2()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","CompanyN
ame_Reports",DataTable.Value("CompanyName_Reports","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Enter a v
alue for the CompanyName Field and click on search..","Expected fields are displ
ayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4: Enter a v
alue for theCompanyName Field and click on search..","Expected fields are not d
isplayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#5
Call SelectValueinTable("MasterFile","Reports - Contact Search R
esults","Item","GlaxoSmithKline plc")
strIssuerProfilePage=Trim(Browser("MasterFile").Page("Issuer Pro
file").WebElement("Issuer Profile").GetROProperty("innertext"))
If strIssuerProfilePage="Issuer Profile" Then
Reporter.ReportEvent micPass,"Step5:Verify the I
ssuer Profile Page is displayed or not","Issuer Profile page is displayed succes
sfully"
Else
Reporter.ReportEvent micFail,"Step5:Verify the I
ssuer Profile Page is displayed or not","Issuer Profile page is not displayed su
ccessfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Issuer Profile",Datatable.Value("MenuPath
_Search","Contact"))
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 6: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","ContactF
irstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Enter a v
alue for the ContactFirstName_Reports field and click on search..","Expected fie
lds are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step7: Enter a va
lue for the ContactFirstName_Reports field and click on search..","Expected fie
lds are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#8&9
Call SelectValueinTable("MasterFile","Reports - Contact Search R
esults","Item","Ashworth")
strContactProfilePage=Trim(Browser("MasterFile").Page("Contact P
rofile").WebElement("Contact Profile").GetROProperty("innertext"))
If strContactProfilePage="Contact Profile" Then
Reporter.ReportEvent micPass,"Step 8&9:Verify th
e Contact Profile Page is displayed or not","Contact Profile page is displayed s
uccessfully"
Else
Reporter.ReportEvent micFail,"Step 8&9:Verify th
e Contact Profile Page is displayed or not","Contact Profile page is not display
ed successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Contact Profile",Datatable.Value(
"MenuPath_Search","Contact"))
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'Step #10&11
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","ContactL
astName_Reports",DataTable.Value("ContactLastName_Reports","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10&11: Enter
a value for the ContactLastName_Reports field and click on search..","Expected
fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step10&11: Enter a
value for the ContactLastName_Reports field and click on search..","Expected
fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'Step #12&13
Call select_Combo_Value("MasterFile","Reports - Contact Search","SearchV
alue",DataTable.Value("SearchValue","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12&13: Enter
a value for the SearchValue field and click on search..","Expected fields are d
isplayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step12&13: Enter a
value for the SearchValue field and click on search..","Expected fields are
not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step # 14To 16
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("DATATABL
E_ROW"))
If DataTable.Value("CreatedFrom","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar1")
totaldate=split(DataTable.Value("CreatedFrom","C
ontact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
If DataTable.Value("CreatedTo","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar2")
totaldate=split(DataTable.Value("CreatedTo","Con
tact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call DateComparision("MasterFile","Reports - Contact Search Results","It
em","Created Date",DataTable.Value("CreatedFrom","Contact"),"GreaterThan")
Call DateComparision("MasterFile","Reports - Contact Search Resu
lts","Item","Created Date",DataTable.Value("CreatedTo","Contact"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: In the Re
sults displayed, check the values in the 'Created Date' column","The values for
the 'Created Date' column are in the range"
Else
Reporter.ReportEvent micPass,"Step 14: In the Re
sults displayed, check the values in the 'Created Date' column","The values for
the Created Date' column are not in the range"
Environment.Value("TestCase_Log")="True"
End If
Call SelectValueinTable("MasterFile","Reports - Contact Search R
esults","Item","Abbott")
strContactProfilePage=Trim(Browser("MasterFile").Page("Contact Profi
le").WebElement("Contact Profile").GetROProperty("innertext"))
If strContactProfilePage="Contact Profile" Then
Reporter.ReportEvent micPass,"Step15&16:Verify t
he Issuer Profile Page is displayed or not","Issuer Profile page is displayed su
ccessfully"
Else
Reporter.ReportEvent micFail,"Step15&16:Verify t
he Issuer Profile Page is displayed or not","Issuer Profile page is not displaye
d successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Contact Profile",Datatable.Value("MenuPat
h_Search","Contact"))
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
'Step #17&18
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17&18: Enter
a value for the CompanyRole field and click on search..","Expected fields are d
isplayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step17&18: Enter a
value for the CompanyRole field and click on search..","Expected fields are
not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Status",DataTable.Value("CompanyStatus","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: Enter a
value for theCompanyStatus field and click on search..","Expected fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step19: Enter a v
alue for the CompanyStatus field and click on search..","Expected fields are n
ot displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
Call SelectValueinTable("MasterFile","Reports - Contact Search Resul
ts","Item","Rodovid Bank, Open Joint Stock Company")
strIssuerProfilePage=Trim(Browser("MasterFile").Page("Issuer Profile
").WebElement("Issuer Profile").GetROProperty("innertext"))
If strIssuerProfilePage="Issuer Profile" Then
Reporter.ReportEvent micPass,"Step 20:Verify the
Issuer Profile Page is displayed or not","Issuer Profile page is displayed succ
essfully"
Else
Reporter.ReportEvent micFail,"Step 20:Verify the
Issuer Profile Page is displayed or not","Issuer Profile page is not displayed
successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
End Function
'----------------Test Case 3 -----------------------------
Public Function MFReportsContact_TC3()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4&5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4&5: Enter a
value for the ContactFirstName_Reports field,ContactLevel Field and click on se
arch..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4&5: Enter a
value for the ContactFirstName_Reports field,ContactLevel Field and click on se
arch..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
End Function
'----------------Test Case 4 -----------------------------
Public Function MFReportsContact_TC4()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_webElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search"
,"CompanyName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFr
om;CreatedTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If DataTable.Value("CompanyName_Reports","Contact") <> "" Then
Call set_WebEdit_Value("MasterFile","Reports - C
ontact Search","CompanyName_Reports",DataTable.Value("CompanyName_Reports","Cont
act"))
End If
If DataTable.Value("CompanyStatus","Contact") <> "" Then
Call select_Combo_Value("MasterFile","Reports -
Contact Search","CompanyStatus",DataTable.Value("CompanyStatus","Contact"))
End If
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call pageCheck_WebElementinTable("MasterFile","Reports - Contac
t Search Results","Alumina Limited;Effective","Item")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Check whet
her the a CompanyName_Reports field,CompanyStatus Field Are Present in the Resul
ts Table or not ","Expected fields are Checked and are present in the Results Da
taTable."
Else
Reporter.ReportEvent micFail,"Step1: Check wheth
er the a CompanyName_Reports field,CompanyStatus Field Are Present in the Result
s Table or not ","Expected fields are not present in the Results DataTable."
Environment.Value("TestCase_Log")="True"
End If
'Step #2
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","ContactF
irstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Status",DataTable.Value("CompanyStatus","Contact"))
If DataTable.Value("CreatedFrom","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar1")
totaldate=split(DataTable.Value("CreatedFrom","C
ontact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
If DataTable.Value("CreatedTo","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar2")
totaldate=split(DataTable.Value("CreatedTo","Con
tact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contact
Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call pageCheck_WebElementinTable("MasterFile","Reports - Contac
t Search Results","David;Effective","Item")
Call DateComparision("MasterFile","Reports - Contact Search Results","It
em","Created Date",DataTable.Value("CreatedFrom","Contact"),"GreaterThan")
Call DateComparision("MasterFile","Reports - Contact Search Resu
lts","Item","Created Date",DataTable.Value("CreatedTo","Contact"),"LessThan")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2: In the Res
ults displayed, check the values in the 'Created Date' column","The values for t
he 'Created Date' column are in the range"
Else
Reporter.ReportEvent micPass,"Step 2: In the Res
ults displayed, check the values in the 'Created Date' column","The values for t
he Created Date' column are not in the range"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","SearchV
alue",DataTable.Value("SearchValue","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call pageCheck_WebElementinTable("MasterFile","Reports - Conta
ct Search Results","Belgium","Item")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,Datatable.Value("MenuPath_Search","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step3: Enter a va
lue for the SearchValue field and click on search..","Expected fields are displa
yed in search criteria"
Else
Reporter.ReportEvent micFail,"Step3: Enter a va
lue for the SearchValue field and click on search..","Expected fields are not
displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
If DataTable.Value("CreatedFrom","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar1")
totaldate=split(DataTable.Value("CreatedFrom","C
ontact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
If DataTable.Value("CreatedTo","Contact") <> "" Then
Call click_image("MasterFile","Reports - Contact
Search","Calendar2")
totaldate=split(DataTable.Value("CreatedTo","Con
tact"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Reports - C
ontact Search",strMonth,strYear,strDate)
End If
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call DateComparision("MasterFile","Reports - Contact Search Results","It
em","Created Date",DataTable.Value("CreatedFrom","Contact"),"GreaterThan")
Call DateComparision("MasterFile","Reports - Contact Search Resu
lts","Item","Created Date",DataTable.Value("CreatedTo","Contact"),"LessThan")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: In the Res
ults displayed, check the values in the 'Created Date' column","The values for t
he 'Created Date' column are in the range"
Else
Reporter.ReportEvent micPass,"Step 4: In the Res
ults displayed, check the values in the 'Created Date' column","The values for t
he Created Date' column are not in the range"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Contact Search Results",Dat
atable.Value("MenuPath_Search","Contact"))
'Step #5&6
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
Call select_Menu("MasterFile","Reports - Contact Search Results","HOME;D
R Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5&6: Enter a
value for the CompanyRole field and click on search..","Expected fields are dis
played in search criteria"
Else
Reporter.ReportEvent micFail,"Step5&6: Enter a
value for the CompanyRole field and click on search..","Expected fields are no
t displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase5-------------------
Public Function MFReportsContact_TC5()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
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: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call select_Menu("MasterFile","MasterFile",Datatable.Value("MenuPath_Sea
rch","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search"
,"CompanyName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFr
om;CreatedTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search"
,"CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
CompanyName_Reports",DataTable.Value("CompanyName_Reports","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Wait(4)
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
Call chkReportHeader("MasterFile","Reports - Contact Search Results","Co
ntactReportHeader")
Call SearchCompanyName("MasterFile","Reports - Contact Search Results","
",3)
If Environment.Value("TestCase_Log")="True" And Browser("Master
file").Page("Contact Profile").Exist(4) Then
Reporter.ReportEvent micPass,"Step 2: Click on t
he Link Last Name Browser should navigate to the Contact Profile.","Contact Prof
ile Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 2: Click on t
he Link Last Name Browser should navigate to the Contact Profile.","Contact Prof
ile Page is not Displayed"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebEdit("Fir
stName"))
strFirstName = get_WebEdit_Value ("MasterFile","Contact Profile","FirstN
ame")
strLastName = get_WebEdit_Value ("MasterFile","Contact Profile",
"LastName")
strDetailsData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseName = get_WebEdit_Value ("MasterFile","Contact Pro
file","Enterprise")
strEnterpriseData_Reports = Browser("MasterFile").Page("Contact
Profile").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Reports = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Reports = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
If Environment.Value("TestCase_Log") = "True" And Browser("Maste
rFile").Page("Contact Profile").Exist(2) Then
Reporter.ReportEvent micPass,"Step 3: Expected F
ields should with the corresponding Links should be displayed in Contact Profile
Page.","Expected Header names and links are displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Expected F
ields should with the corresponding Links should be displayed in Contact Profile
Page","Expected Header names and links are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #4
Call select_Menu("MasterFile","Contact Profile","Profile;Contact
")
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","FirstNam
e",strFirstName)
Call set_WebEdit_Value("MasterFile","Profile - Contact Search","
LastName",strLastName)
Call click_Image("MasterFile","Profile - Contact Search","Search
")
Call SearchEnterpriseName("MasterFile","Profile - Contact Search","Conta
ct Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Contact Profile").WebE
dit("FirstName"))
Wait(3)
strDetailsData_Profile = Browser("MasterFile").Page("Contact Pro
file").WebTable("Contact Detail").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Enterprise")
strEnterpriseData_Profile = Browser("MasterFile").Page("Contact Profile
").WebTable("Contact Enterprise Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Company/ Roles"
)
strCompanyData_Profile = Browser("MasterFile").Page("Contact Pr
ofile").WebTable("Contact Company Link").GetROProperty("innertext")
Call selectTab("MasterFile","Contact Profile"," Products")
strProductsData_Profile = Browser("MasterFile").Page("Contact P
rofile").WebTable("Products").GetROProperty("innertext")
Wait(3)
If Environment.Value("TestCase_Log") = "True" And strDetailsData
_Profile = strDetailsData_Reports And strEnterpriseData_Profile = strEnterpriseD
ata_Reports And strCompanyData_Profile = strCompanyData_Reports And strProductsD
ata_Profile = strProductsData_Reports Then
Reporter.ReportEvent micPass,"Step 4: Expected F
ields should with the corresponding Values should be displayed as in above step.
","Expected Header names and Values are displayed"
Else
Reporter.ReportEvent micFail,"Step 4: Expected F
ields should with the corresponding Values should be displayed as in above step"
,"Expected Header names and Values are not displayed."
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #5
Call select_Menu("MasterFile","Contact Profile","Reports; Contact; Searc
h ")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","AgentTy
pe",DataTable.Value("AgentType","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Wait(4)
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
Call chkReportHeader("MasterFile","Reports - Contact Search Results","Co
ntactReportHeader")
intRowCount = Browser("MasterFile").Page("Reports - Contact Sear
ch Results").WebTable("Item").RowCount
If Environment.Value("TestCase_Log")="True" And intRowCount > 1
Then
Reporter.ReportEvent micPass,"Step 5: Enter a v
alue for the CompanyRole field and click on search..","Records Populated"
Else
Reporter.ReportEvent micFail,"Step5: Enter a va
lue for the CompanyRole field and click on search..","Records not Populated"
Wait(2)
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Wait(2)
strCustodianName = Browser("MasterFile").Page("Reports - Contact
Search Results").WebTable("Item").GetCellData(2,7)
Wait(3)
Call clickRecordinTableDOM("MasterFile","Reports - Contact Search Result
s","Item",strCustodianName)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").WebEdit("D
etails_Name"))
strEnterpriseName = Browser("MasterFile").Page("Custodian Profil
e").WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If Browser("MasterFile").Page("Custodian Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: After clic
king on link " & strCustodianName &", Custodian profile screen must be opened an
d collecting the Data","Custodian profile screen is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 6: After clic
king on link " & strCustodianName &", Custodian profile screen must be opened an
d collecting the Data","Custodian profile screen is not displayed and values not
noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #7
Call select_Menu("MasterFile","Custodian Profile","PROFILE;Compa
ny;Custodian")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","
CompanyName",strCustodianName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Custodian Profile").We
bEdit("Details_Name"))
Wait(3)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Custo
dian Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True"Then
Reporter.ReportEvent micPass,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens match
"
Else
Reporter.ReportEvent micFail,"Step 7: Comparing
the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #8
Call select_Menu("MasterFile","Custodian Profile","Reports;Contact;Searc
h ")
Wait(2)
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Wait(4)
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
Call chkReportHeader("MasterFile","Reports - Contact Search Results","Co
ntactReportHeader")
intRowCount = Browser("MasterFile").Page("Reports - Contact Sear
ch Results").WebTable("Item").RowCount
If Environment.Value("TestCase_Log")="True" And intRowCount > 1
Then
Reporter.ReportEvent micPass,"Step 8: Enter a v
alue for the CompanyRole field and click on search..","Records Populated"
Else
Reporter.ReportEvent micFail,"Step 8: Enter a v
alue for the CompanyRole field and click on search..","Records not Populated"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #9
strDepositaryName = Browser("MasterFile").Page("Reports - Contac
t Search Results").WebTable("Item").GetCellData(2,7)
Call clickRecordinTableDOM("MasterFile","Reports - Contact Searc
h Results","Item",strDepositaryName)
Call fnc_wait(Browser("MasterFile").Page("Depositary Profile").W
ebEdit("Details_Name"))
Wait(5)
strEnterpriseName = Browser("MasterFile").Page("Depositary Profi
le").WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Depos
itary Profile")
If Browser("MasterFile").Page("Depositary Profile").Exist(2) And
Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Depositary
profile screen must be opened and collecting the Data","Depositary profile scre
en is displayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 9: Depositary
profile screen must be opened and collecting the Data","Depositary profile scre
en is not displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Depositary Profile","PROFILE;Comp
any;Depositary")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","CompanyN
ame",strDepositaryName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Depositary Profile").W
ebEdit("Details_Name"))
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Depos
itary Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 10: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Environment.Value("TestCase_Log") = "True"
End If
'Step #11
Call select_Menu("MasterFile","Depositary Profile","Reports;Contact;Sear
ch ")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Exchang
e",DataTable.Value("Exchange","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Wait(4)
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contact Sea
rch Results")
Call chkReportHeader("MasterFile","Reports - Contact Search Results","Co
ntactReportHeader")
intRowCount = Browser("MasterFile").Page("Reports - Contact Sear
ch Results").WebTable("Item").RowCount
If Environment.Value("TestCase_Log")="True" And intRowCount > 1
Then
Reporter.ReportEvent micPass,"Step 11: Enter a
value for the CompanyRole field and click on search..","Records Populated"
Else
Reporter.ReportEvent micFail,"Step 11: Enter a
value for the CompanyRole field and click on search..","Records not Populated"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #12
strIssuerName = Browser("MasterFile").Page("Reports - Contact Se
arch Results").WebTable("Item").GetCellData(2,7)
Call clickRecordinTableDOM("MasterFile","Reports - Contact Searc
h Results","Item",strIssuerName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEdit("Deta
ils_Name"))
Wait(5)
strEnterpriseName = Browser("MasterFile").Page("Issuer Profile")
.WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If Browser("MasterFile").Page("Issuer Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12: Issuer pr
ofile screen must be opened and collecting the Data","Issuer profile screen is d
isplayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 12: Issuer pr
ofile screen must be opened and collecting the Data","Issuer profile screen is n
ot displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #13
Call select_Menu("MasterFile","Issuer Profile","PROFILE;Company;
Issuer")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","CompanyN
ame",strIssuerName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Issuer Profile").WebEd
it("Details_Name"))
Wait(15)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Issue
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 13: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 13: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step14
Call select_Menu("MasterFile","Issuer Profile","Reports;Contact;Search "
)
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("Contact").SetCurrentRow(Environment.Value("D
ATATABLE_ROW"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Company
Role",DataTable.Value("CompanyRole","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search")
Wait(4)
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
Call chkReportHeader("MasterFile","Reports - Contact Search Results","Co
ntactReportHeader")
intRowCount = Browser("MasterFile").Page("Reports - Contact Search R
esults").WebTable("Item").RowCount
If Environment.Value("TestCase_Log")="True" And intRowCount > 1
Then
Reporter.ReportEvent micPass,"Step 14: Enter a
value for the CompanyRole field and click on search..","Records Populated"
Else
Reporter.ReportEvent micFail,"Step 14: Enter a
value for the CompanyRole field and click on search..","Records not Populated"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #15
strVendorName = Browser("MasterFile").Page("Reports - Contact Search Res
ults").WebTable("Item").GetCellData(2,7)
Call clickRecordinTableDOM("MasterFile","Reports - Contact Searc
h Results","Item",strVendorName)
Call fnc_wait(Browser("MasterFile").Page("Vendor Profile").WebEdit("Deta
ils_Name"))
Wait(5)
strEnterpriseName = Browser("MasterFile").Page("Vendor Profile")
.WebTable("Enterprise").GetCellData(1,2)
strReportsData = GetDataInCompanyProfileTabs("MasterFile","Vendo
r Profile")
If Browser("MasterFile").Page("Vendor Profile").Exist(2) And Env
ironment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 15: Vendor pr
ofile screen must be opened and collecting the Data","Vendor profile screen is d
isplayed and Values noted"
Else
Reporter.ReportEvent micFail,"Step 15: Vendor pr
ofile screen must be opened and collecting the Data","Vendor profile screen is n
ot displayed and values not noted"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
'Step #16
Call select_Menu("MasterFile","Vendor Profile","PROFILE;Company;
Vendor")
Call set_WebEdit_Value("MasterFile","Profile - Company Search","CompanyN
ame",strVendorName)
Call click_Image("MasterFile","Profile - Company Search","Search
")
Call SearchEnterpriseName("MasterFile","Profile - Company Search","Compa
ny Search Results",strEnterpriseName)
Call fnc_wait(Browser("MasterFile").Page("Vendor Profile").WebEd
it("Details_Name"))
Wait(5)
strProfileData = GetDataInCompanyProfileTabs("MasterFile","Vendo
r Profile")
If strProfileData = strReportsData And Environment.Value("TestC
ase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 16: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens matc
h"
Else
Reporter.ReportEvent micFail,"Step 16: Comparin
g the Values in Profile and Reports.","The Values displayed in both screens does
not match"
Call captureScreenshot()
Environment.Value("TestCase_Log") = "True"
End If
Call select_Menu("MasterFile","Vendor Profile","HOME;DR Home")
End Function
'---------------------TestCase6-------------------
Public Function MFReportsContact_TC6()
Environment.Value("TestCase_Log") = "True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#6
Call SelectValueinTable("MasterFile","Reports - Contact Search R
esults","Item","Brenman")
strContactProfilePage=Trim(Browser("MasterFile").Page("Contact P
rofile").WebElement("Contact Profile").GetROProperty("innertext"))
If strContactProfilePage="Contact Profile" Then
Reporter.ReportEvent micPass,"Step 6:Verify the
Contact Profile Page is displayed or not","Contact Profile page is displayed suc
cessfully"
Else
Reporter.ReportEvent micFail,"Step 6:Verify the
Contact Profile Page is displayed or not","Contact Profile page is not displayed
successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Contact Profile","HOME;DR Home")
End Function
'---------------------TestCase7-------------------
Public Function MFReportsContact_TC7()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","ContactF
irstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#6
Call SelectValueinTable("MasterFile","Reports - Contact Search R
esults","Item","Genesis Energy Investment Plc")
strIssuerProfilePage=Trim(Browser("MasterFile").Page("Issuer Pro
file").WebElement("Issuer Profile").GetROProperty("innertext"))
If strIssuerProfilePage="Issuer Profile" Then
Reporter.ReportEvent micPass,"Step 6: Verify the
Issuer Profile Page is displayed or not","Issuer Profile page is displayed succ
essfully"
Else
Reporter.ReportEvent micFail,"Step 6: Verify the
Issuer ProfilePage is displayed or not","Issuer Profile page is not displayed s
uccessfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Issuer Profile","HOME;DR Home")
End Function
'---------------------TestCase8-------------------
Public Function MFReportsContact_TC8()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step# 6
Call FilterCriteria ("MasterFile","Reports - Contact Search Resu
lts","Filter",DataTable.Value("FilterColumn","Contact"),DataTable.Value("Express
ion","Contact"),DataTable.Value("Value","Contact"))
Call chkFilterSearchCriteria("MasterFile","Reports - Contact Sea
rch Results",DataTable.Value("FilterColumn","Contact"),DataTable.Value("Expressi
on","Contact"),DataTable.Value("Value","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on t
he Filter Link ..","The Columns are Filtered as Per the Filter Condition Given"
Else
Reporter.ReportEvent micFail,"Step6: Click on th
e Filter Link ..","The Columns areNot Filtered as Per the Filter Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase9-------------------
Public Function MFReportsContact_TC9()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 9
Call MultipleFilterCriteria_TwoAdditions ("MasterFile","Reports
- Contact Search Results",DataTable.Value("FilterColumn","Contact"),DataTable.Va
lue("Expression","Contact"),DataTable.Value("Value","Contact"),DataTable.Value("
Condition","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Filter Link ..","The Columns are Filtered as Per the Filter Condition Gi
ven"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Filter Link ..","The Columns areNot Filtered as Per the Filter Conditio
n Given"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase10-------------------
Public Function MFReportsContact_TC10()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#6 to 9
Call MultipleFilterCriteria_TwoAdditions ("MasterFile","Reports
- Contact Search Results",DataTable.Value("FilterColumn","Contact"),DataTable.Va
lue("Expression","Contact"),DataTable.Value("Value","Contact"),DataTable.Value("
Condition","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Filter Link ..","The Columns are Filtered as Per the Filter Condition Gi
ven"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Filter Link ..","The Columns areNot Filtered as Per the Filter Conditio
n Given"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase11-------------------
Public Function MFReportsContact_TC11()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step#4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the search","Expected f
ields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r the search criteria and click on search, Then click on the Search","Expected f
ields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 8
Call FilterCriteria_Delete ("MasterFile","Reports - Contact Sear
ch Results","Filter",DataTable.Value("FilterColumn","Contact"),DataTable.Value("
Expression","Contact"),DataTable.Value("Value","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 8: Click
on the Filter Link ..","The Columns are Filtered as Per the Filter Condition Gi
ven"
Else
Reporter.ReportEvent micFail,"Step 6 to 8: Click
on the Filter Link ..","The Columns areNot Filtered as Per the Filter Conditio
n Given"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase12-------------------
Public Function MFReportsContact_TC12()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 9
Call MultipleFilterCriteria_DeleteSecondRow ("MasterFile","Repo
rts - Contact Search Results",DataTable.Value("FilterColumn","Contact"),DataTabl
e.Value("Expression","Contact"),DataTable.Value("Value","Contact"),DataTable.Val
ue("Condition","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Filter Link ..","The Columns are Filtered as Per the Filter Condition Gi
ven"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Filter Link ..","The Columns areNot Filtered as Per the Filter Conditio
n Given"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase13-------------------
Public Function MFReportsContact_TC13()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Cont
act Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 and 7
If Browser("MasterFile").Page("Reports - Contact Search Results
").WebTable("Item").WebElement("innertext:=Job Title","innerhtml:=Job Title").ex
ist Then
Browser("MasterFile").Page("Reports - Contact Se
arch Results").WebTable("Item").WebElement("innertext:=Job Title","innerhtml:=Jo
b Title").Click
Reporter.ReportEvent micPass,"Check Whether the
Job Title Header existed or not and Clicked on It","Job Title Header exists a
nd Clicked on Sucessfully"
Else
Reporter.ReportEvent micFail,"Check Whether the
Job Title Header existed or not and Clicked on It","Job Title Header does not
exists and Not Clicked on Sucessfully"
'captureScreenshot
Environment.Value("Execution_Log")=False
End If
Call chkSortOrder("MasterFile","Reports - Contact Search Results
","Item","Job Title","ascending")
Browser("MasterFile").Page("Reports - Contact Search Results").W
ebTable("Item").WebElement("innertext:=Job Title","innerhtml:=Job Title").Click
Call chkSortOrder("MasterFile","Reports - Contact Search Results
","Item","Job Title","descending")
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 and 7: Clic
k on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 and 7: Clic
k on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Giv
en"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase14-------------------
Public Function MFReportsContact_TC14()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 8
Call SortCriteria("MasterFile","Reports - Contact Search Results
","Sort",DataTable.Value("SortColumn","Contact"),DataTable.Value("SortOrder","Co
ntact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 8: Click
on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 8: Click
on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase15-------------------
Public Function MFReportsContact_TC15()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Cont
act Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProp
erty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 8
Call SortCriteria("MasterFile","Reports - Contact Search Result
s","Sort",DataTable.Value("SortColumn","Contact"),DataTable.Value("SortOrder","C
ontact"))
Call select_Menu("MasterFile","Reports - Contact Search Results
","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 8: Clic
k on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 8: Clic
k on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Giv
en"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase16-------------------
Public Function MFReportsContact_TC16()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 9
Call MultipleSortCriteria_TwoAdditions("MasterFile","Reports - C
ontact Search Results","Sort",DataTable.Value("SortColumn","Contact"),DataTable.
Value("SortOrder","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase17-------------------
Public Function MFReportsContact_TC17()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 to 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 9
Call MultipleSortCriteria_TwoAdditions("MasterFile","Reports - C
ontact Search Results","Sort",DataTable.Value("SortColumn","Contact"),DataTable.
Value("SortOrder","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase18-------------------
Public Function MFReportsContact_TC18()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 and 5: Ente
r a value for the ContactFirstName_Reports field,ContactLevel Field and click o
n search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 8
Call SortCriteria_Delete("MasterFile","Reports - Contact Search
Results","Sort",DataTable.Value("SortColumn","Contact"),DataTable.Value("SortOrd
er","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 8: Click
on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 8: Click
on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase19-------------------
Public Function MFReportsContact_TC19()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 to 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 9
Call MultipleSortCriteria_MasterFile("MasterFile","Reports - Co
ntact Search Results","Sort",DataTable.Value("SortColumn","Contact"),DataTable.V
alue("SortOrder","Contact"))
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 9: Click
on the Sort Link ..","The Columns are Sorted as Per theSort Condition Given"
Else
Reporter.ReportEvent micFail,"Step 6 to 9: Click
on the Sort Link ..","The Columns areNot Sorted as Per the Sort Condition Give
n"
Environment.Value("TestCase_Log")="True"
End If
End Function
'---------------------TestCase20-------------------
Public Function MFReportsContact_TC20()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_Search","Contact"))
Call pageCheck_WebEditOR("MasterFile","Reports - Contact Search","Compan
yName_Reports;ContactFirstName_Reports;ContactLastName_Reports;CreatedFrom;Creat
edTo")
Call pageCheck_WebListOR("MasterFile","Reports - Contact Search
","CompanyRole;CompanyStatus;ContactCategory;ContactLevel;Region;SearchValue")
Call pageCheck_ImageOR("MasterFile","Reports - Contact Search","
Calendar1;Calendar2;Search;Clear")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are displayed in search criter
ia"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu select Contact Search.","Expected fields are not displayed in search cr
iteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 to 5
Call set_WebEdit_Value("MasterFile","Reports - Contact Search","
ContactFirstName_Reports",DataTable.Value("ContactFirstName_Reports","Contact"))
Call select_Combo_Value("MasterFile","Reports - Contact Search","Contact
Level",DataTable.Value("ContactLevel","Contact"))
Call click_Image("MasterFile","Reports - Contact Search","Search
")
Call chkReportLinks("MasterFile","Reports - Contact Search Resul
ts","Contact","ContactReportLinks")
Call chkMF_Reports_ContactSearch("MasterFile","Reports - Contac
t Search Results")
DatenTime=left(right(Browser("MasterFile").Page("Reports - Conta
ct Search Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROPrope
rty("outertext"),23),20)
Call chkTimeDiffernce(DatenTime)
Call chkReportHeader("MasterFile","Reports - Contact Search Resu
lts","ContactReportHeader")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 4 to 5: Enter
a value for the ContactFirstName_Reports field,ContactLevel Field and click on
search..","Expected fields are not displayed in search criteria"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 to 10
Call SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Contact Sea
rch Results","Contact","SAVE")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 to 10: Clic
k on the Save as Excel and then Click on Save ..","The File has been Saved At t
he Given Location"
Else
Reporter.ReportEvent micFail,"Step 6 to 10:Click
on the Save as Excel and then Click on Save ...","The File has been Saved At t
he Given Location"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Contact Search Results"
,"HOME;DR Home")
End Function
'---------------------TestCase21-------------------
Public Function MFReportsContact_TC21()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_PreDefined","Contact"))
If Environment.Value("TestCase_Log")="True" And Browser("MasterFile").P
age("Reports - Pre-defined").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Predefined.","Reports - Pre-defined Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu selectPredefined.","Reports - Pre-defined Page is not Displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
var_X = Browser("MasterFile").Page("Reports - Pre-defined").WebE
lement("Company Contact Roles").GetROProperty("x")
var_Y = Browser("MasterFile").Page("Reports - Pre-defined").WebE
lement("Company Contact Roles").GetROProperty("y")
Wait(2)
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Wait(10)
Call SaveAsExcel_ReportContact("MasterFile","Reports - Contact Search Re
sults","Contact","OPEN")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 and 5: Clic
k on the Save as Excel and then Click on open..","The File has been opened At
the Given Location and The Header columns are Checked Successfully"
Else
Reporter.ReportEvent micFail,"Step 4 and 5:Click
on the Save as Excel and then Click on open ...","The File hasnot been opened
At the Given Location and The Header columns are not Checked Successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Wait(10)
Call select_Menu("MasterFile","Reports - Pre-defined","HOME;DR H
ome")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 6: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function
'---------------------TestCase22-------------------
Public Function MFReportsContact_TC22()
Environment.Value("TestCase_Log")="True"
'Step #1
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 1: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
'Step #2
Call click_webElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("
MenuName","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","Successfully verified the Menu's - " & D
ataTable.Value("MenuName","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 2: Clicking o
n MasterFile and Checking the Menu's.","The Menu's - '" & DataTable.Value("MenuN
ame","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")= "True"
End If
'Step #3
Call select_Menu("MasterFile","MasterFile",Datatable.Value("Menu
Path_PreDefined","Contact"))
If Environment.Value("TestCase_Log")="True" And Browser("MasterFile").P
age("Reports - Pre-defined").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Under Repo
rts menu select Predefined.","Reports - Pre-defined Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 3: Under Repo
rts menu selectPredefined.","Reports - Pre-defined Page is not Displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 and 5
'Browser("MasterFile").Page("Reports - Pre-defined").WebElement(
"Company Contact Roles").Click
var_X = Browser("MasterFile").Page("Reports - Pre-defined").WebE
lement("Company Contact Roles").GetROProperty("x")
var_Y = Browser("MasterFile").Page("Reports - Pre-defined").WebE
lement("Company Contact Roles").GetROProperty("y")
Wait(2)
Window("regexpwndtitle:=Microsoft Internet Explorer", "regexpwnd
class:=IEFrame").WinObject("regexpwndclass:=Internet Explorer_Server").Click var
_X+10, var_Y+10
Wait(10)
strExcelPath = SaveAsExcel_ReportContact("MasterFile","Reports - Contact
Search Results","Contact","SAVE")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on
the Save as Excel and then Click on SAVE..","The File has been SAVED At the Gi
ven Location and is Saved with the Expected Fields"
Else
Reporter.ReportEvent micFail,"Step 4:Click on th
e Save as Excel and then Click on SAVE ...","The File hasnot been SAVED At th
e Given Location and The Header columns are not Checked Successfully"
Environment.Value("TestCase_Log")="True"
End If
strRequiredHeaders = "Company Name;Company Status;Company Effect
ive Date;Company Termination Date;Company Type;Contact Name;Contact Category;Con
tact Status;Contact Role Group;Contact Role"
Call OpenExcelAndCompare(strRequiredHeaders,strExcelPath,DataTab
le.Value("TestCaseID","Contact"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Opening t
he Saved Excel and then Checking for the Header.","Headers in the execl sheet ve
rified sucessfully"
Else
Reporter.ReportEvent micFail,"Step 5: Opening th
e Saved Excel and then Checking for the Header.","Headers in the execl sheet are
not correct"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Pre-defined","HOME;DR H
ome")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: DR Home pa
ge should be displayed with the Corresponding link " &DataTable.Value("HomePageL
inks","HomePageVerification"),"The Expected Links are available."
Else
Reporter.ReportEvent micFail,"Step 6: DR Home pa
ge should be displayed with the MasterFile link","The Expected Links are not ava
ilable."
Environment.Value("TestCase_Log") = "True"
End If
End Function

You might also like