You are on page 1of 65

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

==========================
' Name of the Script : Master File Reports Enterpris
e
' Scope of the Script : This test script covers 26 te
st cases related to the MF Reports Enterprise
' Author
: Mohan Gummadi
' Description : Master File --
> Enterprise
' Date and / or Version : 02-1-2009,version 1.0
'===============================================================================
============================
Sub MFReportsEnterprise()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
'''''''''Test case count
Const TC_COUNT = 26
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataTab
le
Environment.Value("strSheetName")="Enterprise"
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "Enterprise"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Enterprise"
,"Enterprise"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom
ePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****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")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("Enterprise").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") ="True"
Environment.Value("TestCase_Log")="True"
If DataTable("TestRunFlag","Enterprise")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","Enterprise") & "' ########### ","Execution
of Test Case '" & DataTable("TestCaseDesc","Enterprise") & "' Started"
strFuncName = "MFReportsEnterprise_TC" & intTCCount & "()"
''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "Enterprise"), Datatable.Value("TestCaseDesc", "Enterprise")
, "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "Enterprise"), Datatable.Value("TestCaseDesc", "Enterprise")
, "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","Enterprise") & "###########","The Test C
ase Execution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","Enterpris
e"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("Enterprise").SetCurrentRow(Environme
nt.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Enterprise"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("Enterprise").SetCurrentRow(E
nvironment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Enter
prise"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub

Public Function MFReportsEnterprise_TC1()


Environment.Value("TestCase_Log")="True"
'Login Operation is included in the Driver Script.
'Step #1 To Step #4
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 1 To 4: Navig
ate to DR Home page after successful login.","Successfully verified the links -
" & DataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 1 To 4: Navig
ate to DR Home page after successful login.","The links - '" & DataTable.Value("
HomePageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Under Repo
rts menu select Enterprise","Expected fields are displayed in search criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Under Repo
rts menu select Enterprise","Expected fields are not displayed in search criteri
a"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 & 7: User h
ave to give one or more search criteria and click Search","Enterprise search rep
ort generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 6 & 7: User h
ave to give one or more search criteria and click Search","Enterprise search rep
ort generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3 To Step #4
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 & 4: User h
ave to give one or more search criteria and click Search","Enterprise search rep
ort generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3 & 4: User h
ave to give one or more search criteria and click Search","Enterprise search rep
ort generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 5: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
Call chkReportValues("MasterFile","Reports - Enterprise Search R
esults","Item","Country of Incorporation",DataTable.Value("SearchValue","Enterpr
ise"))
Call chkReportValues("MasterFile","Reports - Enterprise Search R
esults","Item","Enterpise",DataTable.Value("SelectEnterpriseName","Enterprise"))
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","Reports;Enterprise")
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("Enterprise").SetCurrentRow(Environment.Value
("DATATABLE_ROW"))
'Step #4
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
Call chkReportValues("MasterFile","Reports - Enterprise Search Results",
"Item","Enterpise",DataTable.Value("EnterpriseName","Enterprise"))
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 5: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
Call chkReportValues("MasterFile","Reports - Enterprise Search R
esults","Item","Country of Incorporation",DataTable.Value("SearchValue","Enterpr
ise"))
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
blnName=Browser("MasterFile").Page("Enterprise Profile").WebEdit
("Name").Exist(2)
strName=Trim(Browser("MasterFile").Page("Enterprise Profile").We
bEdit("Name").GetROProperty("value"))
blnComments=Browser("MasterFile").Page("Enterprise Profile").Web
Edit("Comments").Exist(2)
strComments=Trim(Browser("MasterFile").Page("Enterprise Profile"
).WebEdit("Comments").GetROProperty("value"))
blnCID=Browser("MasterFile").Page("Enterprise Profile").WebEdit(
"CID").Exist(2)
strCID=Trim(Browser("MasterFile").Page("Enterprise Profile").Web
Edit("CID").GetROProperty("value"))
blnCountry=Browser("MasterFile").Page("Enterprise Profile").WebL
ist("Country").Exist(2)
strCountry=Trim(Browser("MasterFile").Page("Enterprise Profile")
.WebList("Country").GetROProperty("selection"))
If blnName And blnComments And blnCID And blnCountry Then
Reporter.ReportEvent micPass,"Verify the fields
are displayed correctly in the enterprise tab or not","All the fields are displa
yed correctly"
Else
Reporter.ReportEvent micFail,"Verify the fields
are displayed correctly in the enterprise tab or not","All the fields are not di
splayed correctly"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: User click
s on any option in the 'Enterprise' column","The 'Enterprise Profile' screen is
displayed"
Else
Reporter.ReportEvent micFail,"Step 4: User click
s on any option in the 'Enterprise' column","The 'Enterprise Profile' screen is
not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass,"Verify the Created
and updated stamps are displayed in the enterprise profile page or not","Create
d and updated stamps are displayed"
Else
Reporter.ReportEvent micFail,"Verify the Created
and updated stamps are displayed in the enterprise profile page or not","Create
d and updated stamps are not displayed"
End If
'Step #6 To Step #7
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("EnterpriseName","Enterprise"))
Call Select_Combo_Value("MasterFile","Profile - Enterprise Searc
h","Country",DataTable.Value("SearchValue","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Sea
rch")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SearchValue","Enterpr
ise"),DataTable.Value("SearchValue","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value appear
s under the Country of Incorporation field and enterprise name under Name feilds
"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value not ap
pears under the Country of Incorporation field and enterprise name under Name fe
ilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profile").WebE
lement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
blnName=Browser("MasterFile").Page("Enterprise Profile").WebEdit
("Name").Exist(2)
strNameSecond=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebEdit("Name").GetROProperty("value"))
blnComments=Browser("MasterFile").Page("Enterprise Profile").Web
Edit("Comments").Exist(2)
strCommentsSecond=Trim(Browser("MasterFile").Page("Enterprise Pr
ofile").WebEdit("Comments").GetROProperty("value"))
blnCID=Browser("MasterFile").Page("Enterprise Profile").WebEdit(
"CID").Exist(2)
strCIDSecond=Trim(Browser("MasterFile").Page("Enterprise Profile
").WebEdit("CID").GetROProperty("value"))
blnCountry=Browser("MasterFile").Page("Enterprise Profile").WebL
ist("Country").Exist(2)
strCountrySecond=Trim(Browser("MasterFile").Page("Enterprise Pro
file").WebList("Country").GetROProperty("selection"))
If blnName And blnComments And blnCID And blnCountry Then
Reporter.ReportEvent micPass,"Verify the fields
are displayed correctly in the enterprise tab or not","All the fields are displa
yed correctly"
Else
Reporter.ReportEvent micFail,"Verify the fields
are displayed correctly in the enterprise tab or not","All the fields are not di
splayed correctly"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: User click
s on any option in the 'Enterprise' column","The 'Enterprise Profile' screen is
displayed"
Else
Reporter.ReportEvent micFail,"Step 8: User click
s on any option in the 'Enterprise' column","The 'Enterprise Profile' screen is
not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
If strName=strNameSecond And strComments=strCommentsSecond And s
trCID=strCIDSecond And strCountry=strCountrySecond Then
Reporter.ReportEvent micPass,"Verify the field v
alues in enterprise profile page in both navigations","In both navigations value
s are displayed correctly"
Else
Reporter.ReportEvent micFail,"Verify the field v
alues in enterprise profile page in both navigations","In both navigations value
s are not displayed correctly"
Environment.Value("Execution_Log")="True"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Verify whe
ther the field values and tabs which are displayed under Enterprise tab are sa
me in both navigations","Fields should match in both screens"
Else
Reporter.ReportEvent micFail,"Step 9: Verify whe
ther the field values and tabs which are displayed under Enterprise tab are sa
me in both navigations","Fields should not match in both screens"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC5()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Browser("MasterFile").Page("Enterprise Profile").WebElement("Add
ressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseAddressList")
strAddressTabValuesFirst=ReadAddressTabValuesinEnterpriseProfile
()
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: click on A
ddress tab ","In the Address tab all the fileds are displayed"
Else
Reporter.ReportEvent micFail,"Step 5: click on A
ddress tab ","In the Address tab all the fileds are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("EnterpriseName","Enterprise"))
Call Select_Combo_Value("MasterFile","Profile - Enterprise Searc
h","Country",DataTable.Value("SearchValue","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value appears und
er the Country of Incorporation field and enterprise name under Name feilds"
Else
Reporter.ReportEvent micFail,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value not appears
under the Country of Incorporation field and enterprise name under Name feilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 7: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page("Enterprise Profile").WebElement("Add
ressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseAddressList")
strAddressTabValuesSecond=ReadAddressTabValuesinEnterpriseProfil
e()
If strAddressTabValuesFirst=strAddressTabValuesSecond Then
Reporter.ReportEvent micPass,"Verify the values
under address tab displayed are correctly or not in both navigations","Values ar
e displayed correctly in both navigations"
Else
Reporter.ReportEvent micFail,"Verify the values
under address tab displayed are correctly or not in both navigations","Values ar
e not displayed correctly in both navigations"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9: click
on Address tab and verify tabs are displayed correctly in both navigations ","I
n the Address tab all the fileds are displayed"
Else
Reporter.ReportEvent micFail,"Step 8 To 9: click
on Address tab and verify tabs are displayed correctly in both navigations ","I
n the Address tab all the fileds are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Browser("MasterFile").Page("Enterprise Profile").WebElement("Rel
ationshipTab").Click
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: click on t
he Relationship tab ","Relationship tab is opened with all the details"
Else
Reporter.ReportEvent micFail,"Step 5: click on t
he Relationship tab ","Relationship tab is not opened with all the details"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("EnterpriseName","Enterprise"))
Call Select_Combo_Value("MasterFile","Profile - Enterprise Searc
h","Country",DataTable.Value("SearchValue","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value appears und
er the Country of Incorporation field and enterprise name under Name feilds"
Else
Reporter.ReportEvent micFail,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value not appears
under the Country of Incorporation field and enterprise name under Name feilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 7: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page("Enterprise Profile").WebElement("Rel
ationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","RelationshipTab")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9: click
on Address tab and verify tabs are displayed correctly in both navigations ","I
n the Address tab all the fileds are displayed"
Else
Reporter.ReportEvent micFail,"Step 8 To 9: click
on Address tab and verify tabs are displayed correctly in both navigations ","I
n the Address tab all the fileds are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC7()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is displayed in the enterprise profile page"
Else
Reporter.ReportEvent micFail, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is not displayed in the enterprise profile page"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
Updated and Creted stamps","The screen should contain the updated and created s
tamp"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
Updated and Creted stamps","The screen should not contain the updated and creat
ed stamp"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("SelectEnterpriseName","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile -
Enterprise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpr
iseName","Enterprise"),DataTable.Value("SelectEnterpriseName","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value appear
s under the Country of Incorporation field and enterprise name under Name feilds
"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value not ap
pears under the Country of Incorporation field and enterprise name under Name fe
ilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9: click
on the any Enterprise link ","Enterprise Profile tab is opened with all the de
tails"
Else
Reporter.ReportEvent micFail,"Step 8 To 9: click
on the any Enterprise link ","Enterprise Profile tab is not opened with all th
e details"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC8()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is displayed in the enterprise profile page"
Else
Reporter.ReportEvent micFail, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is not displayed in the enterprise profile page"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
Updated and Creted stamps","The screen should contain the updated and created s
tamp"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
Updated and Creted stamps","The screen should not contain the updated and creat
ed stamp"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Enterprise Profile").WebElement("Ad
dressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseAddressList")
strAddressTabValuesFirst=ReadAddressTabValuesinEnterpriseProfile
()
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: click on A
ddress tab and verify tabs are displayed correctly in both navigations ","In the
Address tab all the fileds are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: click on A
ddress tab and verify tabs are displayed correctly in both navigations ","In the
Address tab all the fileds are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("SelectEnterpriseName","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile -
Enterprise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpr
iseName","Enterprise"),DataTable.Value("SelectEnterpriseName","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 8: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value appear
s under the Country of Incorporation field and enterprise name under Name feilds
"
Else
Reporter.ReportEvent micFail,"Step 7 To 8: In th
eProfile-Enterprise Search page, enter Enterprise name field as name of the Ent
erprise selected in step 4, Region/Country as 'Country of Incorporation' Search
value. ","In the search results that appear verify that the search value not ap
pears under the Country of Incorporation field and enterprise name under Name fe
ilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #9 To Step #10
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpr
ise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName
","Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9 To 10: clic
k on the any Enterprise link ","Enterprise Profile tab is opened with all the d
etails"
Else
Reporter.ReportEvent micFail,"Step 9 To 10: clic
k on the any Enterprise link ","Enterprise Profile tab is not opened with all t
he details"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Browser("MasterFile").Page("Enterprise Profile").WebElement("Add
ressTab").Click
strAddressTabValuesSecond=ReadAddressTabValuesinEnterpriseProfil
e()
If strAddressTabValuesFirst=strAddressTabValuesSecond Then
Reporter.ReportEvent micPass,"Verify fields and
values displayed in the address tab","Fields and Values are displayed correctly"
Else
Reporter.ReportEvent micFail,"Verify fields and
values displayed in the address tab","Fields and Values are not displayed correc
tly"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Verify wh
ether the fields and tabs which are displayed under Enterprise tab are same in
both navigations(Reports and profile) ","Fields should match in both screens"
Else
Reporter.ReportEvent micFail,"Step 11: Verify wh
ether the fields and tabs which are displayed under Enterprise tab are same in
both navigations(Reports and profile) ","Fields should not match in both screens
"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 12: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC9()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is displayed in the enterprise profile page"
Else
Reporter.ReportEvent micFail, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is not displayed in the enterprise profile page"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
Updated and Creted stamps","The screen should contain the updated and created s
tamp"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
Updated and Creted stamps","The screen should not contain the updated and creat
ed stamp"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Enterprise Profile").WebElement("Re
lationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","RelationshipTab")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: click on R
elationship tab and verify tabs are displayed correctly in both navigations ","I
n the Relationship tab all the fileds are displayed"
Else
Reporter.ReportEvent micFail,"Step 6: click on R
elationship tab and verify tabs are displayed correctly in both navigations ","I
n the Relationship tab all the fileds are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("SelectEnterpriseName","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile -
Enterprise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpr
iseName","Enterprise"),DataTable.Value("SelectEnterpriseName","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value appears und
er the Country of Incorporation field and enterprise name under Name feilds"
Else
Reporter.ReportEvent micFail,"Step 7: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value not appears
under the Country of Incorporation field and enterprise name under Name feilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 8: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #9 To Step #10
Browser("MasterFile").Page("Enterprise Profile").WebElement("Add
ressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","RelationshipTab")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9 To 10: Veri
fy whether the fields and tabs which are displayed under Enterprise tab are sam
e in both navigations(Reports and profile) ","Fields should match in both screen
s"
Else
Reporter.ReportEvent micFail,"Step 9 To 10: Veri
fy whether the fields and tabs which are displayed under Enterprise tab are sam
e in both navigations(Reports and profile) ","Fields should not match in both sc
reens"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 11: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC10()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is displayed in the enterprise profile page"
Else
Reporter.ReportEvent micFail, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is not displayed in the enterprise profile page"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
Updated and Creted stamps","The screen should contain the updated and created s
tamp"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
Updated and Creted stamps","The screen should not contain the updated and creat
ed stamp"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("SelectEnterpriseName","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile -
Enterprise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpr
iseName","Enterprise"),DataTable.Value("SelectEnterpriseName","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value appears und
er the Country of Incorporation field and enterprise name under Name feilds"
Else
Reporter.ReportEvent micFail,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value not appears
under the Country of Incorporation field and enterprise name under Name feilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 8: click
on the any Enterprise link ","Enterprise Profile tab is opened with all the de
tails"
Else
Reporter.ReportEvent micFail,"Step 7 To 8: click
on the any Enterprise link ","Enterprise Profile tab is not opened with all th
e details"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC11()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 2: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 3: User have
to give one or more search criteria and click Search","Enterprise search report
is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 4: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
blnCreatedStamp=Browser("MasterFile").Page("Enterprise Profile")
.WebElement("CreatedStamp").Exist(2)
If blnCreatedStamp Then
Reporter.ReportEvent micPass, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is displayed in the enterprise profile page"
Else
Reporter.ReportEvent micFail, "Verify Created an
d Updated stamp is displayed in the enterprise profile page or not","Created and
Updated stamp is not displayed in the enterprise profile page"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Verify the
Updated and Creted stamps","The screen should contain the updated and created s
tamp"
Else
Reporter.ReportEvent micFail,"Step 5: Verify the
Updated and Creted stamps","The screen should not contain the updated and creat
ed stamp"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Enterprise Profile","Profile;Ente
rprise")
Call set_WebEdit_Value ("MasterFile","Profile - Enterprise Searc
h","EnterpriseName",DataTable.Value("SelectEnterpriseName","Enterprise"))
Call click_Image("MasterFile","Profile - Enterprise Search","Search")
Call chkReportValuesMFReportsEnterprise("MasterFile","Profile -
Enterprise Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpr
iseName","Enterprise"),DataTable.Value("SelectEnterpriseName","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value appears und
er the Country of Incorporation field and enterprise name under Name feilds"
Else
Reporter.ReportEvent micFail,"Step 6: In theProf
ile-Enterprise Search page, enter Enterprise name field as name of the Enterpri
se selected in step 4, Region/Country as 'Country of Incorporation' Search value
. ","In the search results that appear verify that the search value not appears
under the Country of Incorporation field and enterprise name under Name feilds"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #8
Call SelectMFEnterpriseInReport("MasterFile","Profile - Enterpri
se Search","EnterpriseSearchResultsTable",DataTable.Value("SelectEnterpriseName"
,"Enterprise"))
strEnterprise=Trim(Browser("MasterFile").Page("Enterprise Profil
e").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strEnterprise="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify Enterprise
Profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 8: click
on the any Enterprise link ","Enterprise Profile tab is opened with all the de
tails"
Else
Reporter.ReportEvent micFail,"Step 7 To 8: click
on the any Enterprise link ","Enterprise Profile tab is not opened with all th
e details"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC13()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call SelectCAEventNameInReport("MasterFile","Reports - Enterpris
e Search Results","Item",DataTable.Value("SelectEnterpriseName","Enterprise"))
strProfilePage=Trim(Browser("MasterFile").Page("Enterprise Profi
le").WebElement("EnterpriseProfile").GetROProperty("innertext"))
If strProfilePage="Enterprise Profile" Then
Reporter.ReportEvent micPass,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is displayed"
Else
Reporter.ReportEvent micFail,"Verify the Enterpr
ise profile page is displayed or not","Enterprise profile page is not displayed"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call pageCheck_WebElementOR("MasterFile","Enterprise Profile","A
ddressTab;EnterpriseTab;RelationshipTab")
Call pageCheck_ImageOR("MasterFile","Enterprise Profile","Delete
Profile;PreviewProfile;RelatedProfiles;SaveProfile")
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"EnterpriseTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("EnterpriseTab").Click
Call pageCheck_WebEditOR("MasterFile","Enterpris
e Profile","Name;CID;Comments;Country")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement(
"AddressTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("AddressTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Enter
priseAddressList","EnterpriseProfileAddressTab")
End If
If Browser("MasterFile").Page("Enterprise Profile").WebElement
("RelationshipTab").GetROProperty("visible") Then
Browser("MasterFile").Page("Enterprise Profile")
.WebElement("RelationshipTab").Click
Call chkMFProfileHeader("MasterFile","Enterprise Profile","Relat
ionship","EnterpriseProfileRelationshipTab")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: click on t
he any Enterprise link ","Enterprise Profile tab is opened with all the details
"
Else
Reporter.ReportEvent micFail,"Step 6: click on t
he any Enterprise link ","Enterprise Profile tab is not opened with all the det
ails"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Enterprise Profile","HOME;DR Home
")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC14()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call FilterCriteria("MasterFile","Reports - Enterprise Search Re
sults","Filter",DataTable.Value("FilterColValue","Enterprise"),DataTable.Value("
FilterExpression","Enterprise"),DataTable.Value("FilterValue","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Verif
ication of filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of filter criteria","Filter criteria is working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC15()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call MultipleFilterCriteria("MasterFile","Reports - Enterprise Search Re
sults",DataTable.Value("FilterColValue","Enterprise"),DataTable.Value("FilterExp
ression","Enterprise"),DataTable.Value("FilterValue","Enterprise"),DataTable.Val
ue("FilterCondition","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsEnterprise_TC16()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call MultipleFilterCriteria("MasterFile","Reports - Enterprise Search Re
sults",DataTable.Value("FilterColValue","Enterprise"),DataTable.Value("FilterExp
ression","Enterprise"),DataTable.Value("FilterValue","Enterprise"),DataTable.Val
ue("FilterCondition","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC17()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call FilterCriteria("MasterFile","Reports - Enterprise Search Results","
Filter",DataTable.Value("FilterColValue","Enterprise"),DataTable.Value("FilterEx
pression","Enterprise"),DataTable.Value("FilterValue","Enterprise"))
Browser("MasterFile").Page("Reports - Enterprise Search Results"
).WebElement("Filter").Click
Browser("MasterFile").Page("Reports - Enterprise Search Results"
).WebButton("Delete").Click
strFilterColumn=Browser("MasterFile").Page("Reports - Enterprise
Search Results").WebList("FilterColumn").GetROProperty("selection")
strValue=Browser("MasterFile").Page("Reports - Enterprise Search Results
").WebEdit("Value").GetROProperty("value")
If strFilterColumn="" And strValue="" Then
Reporter.ReportEvent micPass,"Verify all the val
ues in the fields are cleared or not in the filter dialog","All the values are c
leared"
Else
Reporter.ReportEvent micFail,"Verify all the val
ues in the fields are cleared or not in the filter dialog","All the values are n
ot cleared"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Verif
ication of filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of filter criteria","Filter criteria is working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC18()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call FilterCriteria("MasterFile","Reports - Enterprise Search Results","
Filter",DataTable.Value("FilterColValue","Enterprise"),DataTable.Value("FilterEx
pression","Enterprise"),DataTable.Value("FilterValue","Enterprise"))
Call FilterSort_ClkButtons("MasterFile","Reports - Enterprise Se
arch Results","Filter","Filter:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of filter criteria","Filter criteria is working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC19()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Browser("MasterFile").Page("Reports - Enterprise Search Results").WebEle
ment("EnterpriseHeader").Click
Call chkSortOrder("MasterFile","Reports - Enterprise Search Resu
lts","Item","Enterpise","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: User click
s on any column header","The column should be sorted in ascending or descending
order"
Else
Reporter.ReportEvent micFail,"Step 6: User click
s on any column header","The column should not be sorted in ascending or descend
ing order"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 7: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC20()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call SortCriteria("MasterFile", "Reports - Enterprise Search Res
ults","Sort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("Sort
Order","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC21()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call SortCriteria("MasterFile", "Reports - Enterprise Search Res
ults","Sort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("Sort
Order","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC22()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call MultipleSortCriteria("MasterFile", "Reports - Enterprise Search Res
ults","Sort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("Sort
Order","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC23()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #8
Call MultipleSortCriteria("MasterFile", "Reports - Enterprise Search Res
ults","Sort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("Sort
Order","Enterprise"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC24()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call SortCriteria("MasterFile", "Reports - Enterprise Search Results","S
ort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("SortOrder","
Enterprise"))
Browser("MasterFile").Page("Reports - Enterprise Search Results"
).WebElement("Sort").Click
'Browser("MasterFile").Page("Reports - Enterprise Search Results
").WebButton("Delete").Click
Call FilterSort_clkAddDelButton("MasterFile","Reports - Enterpri
se Search Results","Sort:","Delete")
strSortColumn=Browser("MasterFile").Page("Reports - Enterprise S
earch Results").WebList("SortColumn").GetROProperty("selection")
strSortOrder=Browser("MasterFile").Page("Reports - Enterprise Se
arch Results").WebList("SortOrder").GetROProperty("selection")
If strSortColumn="" And strSortOrder="" Then
Reporter.ReportEvent micPass,"Verify the field v
alues of sort criteria are cleared or not","All the filed values are cleared"
Else
Reporter.ReportEvent micFail,"Verify the field v
alues of sort criteria are cleared or not","All the filed values are not cleared
"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 7: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 8: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC25()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call SortCriteria("MasterFile", "Reports - Enterprise Search Results","S
ort",DataTable.Value("SortColumnVal","Enterprise"),DataTable.Value("SortOrder","
Enterprise"))
Call FilterSort_ClkButtons("MasterFile","Reports - Enterprise Se
arch Results","Sort","Sort:","Delete")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 8: Verif
ication of Sort criteria","Sort criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: From the H
ome menu, select DR Home","DR Home page is displayed with the corresponding link
s"
Else
Reporter.ReportEvent micFail,"Step 9: From the H
ome menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
Public Function MFReportsEnterprise_TC26()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Enterprise"))
Call pageCheck_WebEditOR("MasterFile","Reports - Enterprise Sear
ch","EnterpriseName")
Call pageCheck_WebListOR("MasterFile","Reports - Enterprise Sear
ch","RegionCountry;SearchValue")
Call pageCheck_Image("MasterFile","Reports - Enterprise Search",
"Search;Clear","")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are displayed in search criteri
a"
Else
Reporter.ReportEvent micFail,"Step 1 & 3: Under
Reports menu select Enterprise","Expected fields are not displayed in search cri
teria"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call MFReportsEnterpriseSearchCriteria("MasterFile","Reports - E
nterprise Search")
Call fnc_wait(Browser("MasterFile").Page("Reports - Enterprise Search Re
sults").WebElement("TimeStamp"))
Call chkReportLinks("MasterFile","Reports - Enterprise Search Results","
Enterprise","ReportLinks")
Call chkMFReportsEnterpriseSearchCriteria("MasterFile","Reports - Enterp
rise Search Results")
DateTimetext=Trim(Browser("MasterFile").Page("Reports - Enterprise Searc
h Results").WebElement("html tag:=SPAN","innertext:=As of.*").GetROProperty("out
ertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Call chkReportHeader("MasterFile","Reports - Enterprise Search R
esults","MFReportsEnterprise")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port generated related to the search criteria entered"
Else
Reporter.ReportEvent micFail,"Step 4 To 5: User
have to give one or more search criteria and click Search","Enterprise search re
port is not generated related to the search criteria entered"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #9
Browser("MasterFile").Page("Reports - Enterprise Search Results"
).WebElement("EnterpriseHeader").Click
strExcelPath=SaveAsExcelwithClick_MasterFile("MasterFile","Reports - Ent
erprise Search Results","Enterprise","Save")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is working
successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 9: Click
on Save as Excel link and verify the process","Save as Excel process is not wor
king successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Enterprise Search Resul
ts","HOME;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR Home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10: From the
Home menu, select DR Home","DR Home page is not displayed with the corresponding
links"
Environment.Value("TestCase_Log")="True"
End If
End Function

You might also like