You are on page 1of 149

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

==========================
' Name of the Script : Master File Reports Market Re
view
' Scope of the Script : This test script covers 15 te
st cases related to the MF Reports --> Market Review
' Author : Shyam H D
' Description : Master File Reports Market Re
view
' Date and / or Version : 13-02-2008,version 1.0
'===============================================================================
============================

Sub MFReportsMarketReview()
'****Declaration of Environmental Variable
Environment.Value("Env_CellValue") = ""
Environment.Value("strSheetName") = "MarketReview"
'''''''''Test case count
Const TC_COUNT = 15
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 Inp
ut DataTable
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "MarketReview"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Mar
ketReview","MarketReview"
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"))
Call pageCheck_WebEditOR("MasterFile","Login Page","UserName;Pas
sword")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the L
ogin Page is displayed Succesfully","The Login Page is dispalyed Successfully wi
th ' UserName, Password and Login Fields"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the L
ogin Page is displayed Succesfully","The Login Page is Not dispalyed Successfull
y with ' UserName, Password and Login Fields"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 2:
Call login("MasterFile","Login Page","User","MFLogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the ADR
Home Page","The ADR Home page is dispalyed successfully with the Required Menus
and User Details"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the ADR
Home Page","The ADR Home page is NOT dispalyed successfully with the Required M
enus Or User Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
''****Checking the username, password and login objects in the l
ogin page
'Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pa
ssword","")
' Call pageCheck_WebButton("MasterFile","Login Page","Login","")
''****Entering username and password and login into the masterfi
le application
'Call login("MasterFile","Login Page","User","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Val
ue("DATATABLE_ROW"))
Environment.Value("strAppLinks") = DataTable.Value("RequiredLink
","MarketReview")
'Environment.Value("strAppLinks") = strRequiredLink

'***************************************** TC Driver Strat *****


**************************************************
For intTCCounts = 1 to TC_COUNT
Environment.Value("Execution_Log")= "True"
Environment.Value("TestCase_Log")= "True"
If DataTable("TestRunFlag","MarketReview")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","MarketReview") & "' ########### ","Executi
on of Test Case '" & DataTable("TestCaseDesc","MarketReview") & "' Started"
strFuncName = "MFReportsMarketReview_TC" & intTC
Counts & "()" ''Formation of function name
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "MarketReview"), Datatable.Value("TestCaseDesc", "MarketRevi
ew"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "MarketReview"), Datatable.Value("TestCaseDesc", "MarketRevi
ew"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","MarketReview") & "###########","The Test
Case Execution Completed"
End If

strPrevious=Trim(DataTable.Value("TestCaseID","MarketRev
iew"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","MarketReview"
))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow
(Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Marke
tReview"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************

End Sub

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
Public Function MFReportsMarketReview_TC1()
' Step 3:
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 3: Verfiying if the MF Home P
age is Displayed Successfully","The MF Home Page is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 3: Verfiying if the MF Home P
age is Displayed Successfully","The MF Home Page is NOT displayed successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4:
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 4: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 5: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are displayed
after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketRe
view") & " ' "
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are Not displ
ayed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mark
etReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","Deta
ils")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Value("P
ageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","Mark
etReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers and the Search Cri
teria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 6: Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or the Searc
h Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strRequiredDate = Replace(DataTable.Value("AsOfDate","MarketReview"),";
","-")
' Call CompareDate("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Item","Effective Date",strRequiredDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step 6: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Displayed as per the S
earch Criteria"
' Else
' Reporter.ReportEvent micFail,"Step 6: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Not Displayed as per t
he Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verifying if the Result ar
e generated as per the Required DR Type","The Results are Generated as per the R
equired DR Type"
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the Result ar
e generated as per the Required DR Type","The Results are Not Generated as per t
he Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 7: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(3)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the DR Profil
e Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
' Step 8:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(3)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 8: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 8: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the CUSIP Pro
file Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close

intCount = 9
For intTCCount = 1 to 16
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Va
lue("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review"
,Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " & intCount
& ": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are displayed after clicking on the Link ' " & DataTable.Value(
"SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are Not displayed after clicking on the Link ' " & DataTable.Va
lue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strRequiredDate = Replace(DataTable.Value("AsOfDate","M
arketReview"),";","-")
' Call CompareDate("Report Market Review",DataTable.Value(
"PageName","MarketReview"),"Item","Effective Date",strRequiredDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 16 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 57: Check for the 4 Links
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 57: Check for the 4 links pre
sent in the Search Page","The 4 Links namely 'Search, Sort, Filter and Save As E
xcel ' Link are displayed in the Search Result"
Else
Reporter.ReportEvent micFail,"Step 57: Check for the 4 links pre
sent in the Search Page","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 58, 59
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 58, 59: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 58, 59: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 60, 61
Call click_WebElement("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 60, 61: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 60, 61: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 62: Click on Ticker Symbol Column and check for the ascending and
Descending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"TickerSymbol")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Ticker Symbol","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 62: Verifying if the 'Ticker
Symbol' Column is Sorted in Ascending Order or Not","The Column 'Name' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 62: Verifying if the 'Ticker
Symbol' Column is Sorted in Ascending Order or Not","The Column 'Name' is Not So
rted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"TickerSymbol")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Ticker Symbol","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 62: Verifying if the 'Ticker
Symbol' Column is Sorted in Descending Order or Not","The Column 'Ticker Symbol'
is Sorted in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 62: Verifying if the 'Ticker
Symbol' Column is Sorted in Descending Order or Not","The Column 'Ticker Symbol'
is Not Sorted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 63: Sort based on Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 63: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 63: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 64: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 64: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 64: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 65: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","MarketR
eview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 65: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 65: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 66,67: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 66, 67: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 66, 67: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 68 Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 68: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 68: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("Report Market Review").Close
Wait(2)
' Step 69 : INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 69: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 69: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Rep
orts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 70: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 70: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 70: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 71: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 71: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 71: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 72:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(2) Then
Reporter.ReportEvent micPass,"Step 72: Verifying if the ADR Home
Page is Displayed or Not","ADR Home Page is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 72: Verifying if the ADR Home
Page is Displayed or Not","ADR Home Page is NOT displayed successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsMarketReview_TC2()
' Step1,2,:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
For intTCCount = 1 to 21
' Selecting Market Review Menu and check for the Link
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Va
lue("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(2) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review"
,Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " & intCount
& ": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are displayed after clicking on the Link ' " & DataTable.Value(
"SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are Not displayed after clicking on the Link ' " & DataTable.Va
lue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criter
ia"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 21 Then
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow
(Environment.Value("DATATABLE_ROW"))
If Browser("Report Market Review").Page(DataTabl
e.Value("PageName","MarketReview")).Exist(2) Then
Browser("Report Market Review").Close
End If
End If
If intTCCount = 18 Then
'Browser("Report Market Review").Close
Call logoutfromApp("MasterFile","Reports - Marke
t Review")
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
If Dialog("Application Error").Exist(3)
Then
Dialog("Application Error").Acti
vate
Dialog("Application Error").WinB
utton("OK").Click
End If
End If
Call invoke_URL("MasterFile","Login Page",DataTa
ble.Value("URL","MFLogin"))
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call click_WebElement("MasterFile","Depositary R
eceipt Division's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataT
able.Value("MenuPath","MarketReview"))
End If
Wait(2)
Next
' Step 66, 67:
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("Page
Name","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 66, 67: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 66, 67: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 68, 69:
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 68, 69: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 68, 69: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
Call captureScreenShot()
'Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 70: Click on TickerSymbol Column and check for the Ascending and
Descending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"TickerSymbol")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Ticker Symbol","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 70: Verifying if the 'Ticker
Symbol' Column is Sorted in Ascending Order or Not","The Column 'Ticker Symbol'
is Sorted in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 70: Verifying if the 'Ticker
Symbol' Column is Sorted in Ascending Order or Not","The Column 'Ticker Symbol'
is Not Sorted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"TickerSymbol")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Ticker Symbol","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 70: Verifying if the 'Ticker
Symbol' Column is Sorted in Descending Order or Not","The Column 'Ticker Symbol'
is Sorted in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 70: Verifying if the 'Ticker
Symbol' Column is Sorted in Descending Order or Not","The Column 'Ticker Symbol'
is Not Sorted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 71: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 71: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 71: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 72: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 72: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 72: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 73: Sort based on Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 73: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 73: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 74,75: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 74, 75: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 74, 75: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 76 Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 76: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 76: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("Report Market Review").Close
Wait(2)
' Step 77 INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 77: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 77: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Rep
orts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 78: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 78: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 78: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 79: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 79: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 79: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 80
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(2)
Then
Reporter.ReportEvent micPass,"Step 80: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 80: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is NOT Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
Public Function MFReportsMarketReview_TC3()
' Step 1, 2,
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
' Step 3
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are displayed
after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketRe
view") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are Not displ
ayed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mark
etReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","Deta
ils")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Value("P
ageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","Mark
etReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers and the Search Cri
teria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or the Searc
h Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verifying if the Result a
re generated as per the Required DR Type","The Results are Generated as per the
Required DR Type"
Else
Reporter.ReportEvent micFail,"Step 5 :Verifying if the Result ar
e generated as per the Required DR Type","The Results are Not Generated as per t
he Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 6: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the DR Profil
e Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the CUSIP Pro
file Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 15
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Va
lue("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(5) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review"
,Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " & intCount
& ": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are displayed after clicking on the Link ' " & DataTable.Value(
"SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are Not displayed after clicking on the Link ' " & DataTable.Va
lue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 15 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 54, 55
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 54, 55: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 54, 55: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 56, 57
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 56, 57: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 56, 57: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 58: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 58: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 58: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 58: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 58: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 59: Sort Country of Management in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Country of Management","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 59: Verifying if the 'Country
of Managemen' Column is Sorted in Ascending Order or Not","The Column 'Country
of Managemen' is Sorted in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 59: Verifying if the 'Country
of Managemen' Column is Sorted in Ascending Order or Not","The Column 'Country
of Managemen' is Not Sorted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 60: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 60: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 60: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 61: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 61: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 61: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 62,63: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 62, 63: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 62, 63: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 64:Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 64: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 64: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("Report Market Review").Close
Wait(5)
' Step 65
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 65: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 65: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Rep
orts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 66: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 66: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 66: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 67 : INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 67: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 67: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Rep
orts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 68: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 68: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 68: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 69: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 69: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 69: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 70:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(2)
Then
Reporter.ReportEvent micPass,"Step 70: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 70: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is NOT Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++
Public Function MFReportsMarketReview_TC4()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
' Step 3:
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are displayed
after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketRe
view") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4: Verfiying the required Fie
lds are Dispalyed after clicking on the Link","The Required Fields are Not displ
ayed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mark
etReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","Deta
ils")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Value("P
ageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","Mark
etReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5: Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers and the Search Cri
teria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5: Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or the Searc
h Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step 5: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Displayed as per the S
earch Criteria"
' Else
' Reporter.ReportEvent micFail,"Step 5: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Not Displayed as per t
he Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verifying if the Result a
re generated as per the Required DR Type","The Results are Generated as per the
Required DR Type"
Else
Reporter.ReportEvent micFail,"Step 5 : Verifying if the Result a
re generated as per the Required DR Type","The Results are Not Generated as per
the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 6: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6: Verfiying if the S
elected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " ' i
s Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 6: Verifying if the DR Profil
e Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","Marke
tReview"),"Item","Item")
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 7: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7: Verfiying if the S
elected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName &
" ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the CUSIP Pro
file Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 21
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Selecting Market Review Menu and check for the Link
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Va
lue("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review"
,Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " & intCount
& ": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are displayed after clicking on the Link ' " & DataTable.Value(
"SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","The
Required Fields are Not displayed after clicking on the Link ' " & DataTable.Va
lue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criter
ia"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 21 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 71:
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 71: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 71: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 72, 73
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("Page
Name","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 72, 73: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 72, 73: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 74, 75
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 74, 75: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 74, 75: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 76: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 76: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 76: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 76: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 76: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 77: Sort Exchange in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Exchange","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 77: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 77: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 78: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","MarketR
eview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 78: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 78: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 79: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 79: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 79: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 80, 81: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 80, 81: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 80, 81: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 82:Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Wait(2)
Call Report_SaveExcel("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 82: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 82: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Browser("Report Market Review").Close
Wait(5)
' Step 83
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 83: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 83: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Rep
orts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 84: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 84: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 84: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If

Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
' Step 85: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 85: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 85: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 86:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(2)
Then
Reporter.ReportEvent micPass,"Step 86: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is Displayed"
Else
Reporter.ReportEvent micFail,"Step 86: Verifying if the ADR Home
Page is displayed or Not","ADR Home Page is NOT Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++
'Test Case 5
Public Function MFReportsMarketReview_TC5()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName
","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1, 2: Verfiying if the MF Hom
e Page is Displayed Successfully","The MF Home Page is displayed successfully"
Else
Reporter.ReportEvent micFail,"Step 1, 2: Verfiying if the MF Hom
e Page is Displayed Successfully","The MF Home Page is NOT displayed successfull
y"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
For intTCCount = 1 to 2
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header
,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strRequiredDate = Replace(DataTable.Value("AsOfDate","M
arketReview"),";","-")
' Call CompareDate("Report Market Review",DataTable.Value(
"PageName","MarketReview"),"Item","Effective Date",strRequiredDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Res
ults are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report
Market Review",DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement
","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Ex
ist(2) Then
strDRName = get_WebEdit_Value("Report Market Rev
iew","DR Profile","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(str
DRName)) Then
Reporter.ReportEvent micPass,"Step " &in
tCount & ": Verfiying if the Selected DR is Dispalyed or Not","The Selected DR
: ' " & strSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &in
tCount & ": Verfiying if the Selected DR is Dispalyed or Not","The Selected DR
: ' " & strSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the DR Profile Page is Dispalyed or Not","The Page ' DR Profil
e' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report
Market Review",DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement
","CUSIP")
Wait(2)
If Browser("Report Market Review").Page("CUSIP Profile")
.Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market R
eview","CUSIP Profile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSele
ctedName)) Then
Reporter.ReportEvent micPass,"Step " &in
tCount & ": Verfiying if the Selected CUSIP is Dispalyed or Not","The Selected
CUSIP : ' " & strSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &in
tCount & ": Verfiying if the Selected CUSIP is Dispalyed or Not","The Selected
CUSIP : ' " & strSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP
Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
If intTCCount <> 2 Then
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow
(Environment.Value("DATATABLE_ROW"))
End If
Next
intCount = 14
For intTCCount = 1 to 8
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers, and the Search Criteria displayed matches the Entered Search Crite
ria"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strRequiredDate = Replace(DataTable.Value("AsOfDate","M
arketReview"),";","-")
' Call CompareDate("Report Market Review",DataTable.Value(
"PageName","MarketReview"),"Item","Effective Date",strRequiredDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Res
ults are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 8 Then
If Browser("Report Market Review").Page(DataTabl
e.Value("PageName","MarketReview")).Exist(5) Then
Browser("Report Market Review").Close
End If
End If
If intTCCount = 6 Then
'Browser("Report Market Review").Close
Call logoutfromApp("MasterFile","Reports - Marke
t Review")
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
If Dialog("Application Error").Exist(3)
Then
Dialog("Application Error").Acti
vate
Dialog("Application Error").WinB
utton("OK").Click
End If
End If
Call invoke_URL("MasterFile","Login Page",DataTa
ble.Value("URL","MFLogin"))
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call click_WebElement("MasterFile","Depositary R
eceipt Division's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataT
able.Value("MenuPath","MarketReview"))
End If

Next
' Step 37
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 37: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38, 39 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38, 39: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 38, 39: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40, 41
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 40, 41: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 40, 41: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 42: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 42: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Sort Exchange in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Exchange","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 43: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 43: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 44: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 44: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 44: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 45: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 45: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 45 Verifying if the 'Ratio' C
olumn is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 46, 47: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 46, 47: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 46, 47: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 48: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 48: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 48: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If

' Step 49: INCREMENT ROW


Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 49: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 49: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 50: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 50: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 50: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 51: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 51: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 51: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 52:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 52: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 52: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
'Test Case 6
Public Function MFReportsMarketReview_TC6()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Wait(10)
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(3)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(3)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 10
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 10 Then
If Browser("Report Market Review").Page(DataTabl
e.Value("PageName","MarketReview")).Exist(2) Then
Browser("Report Market Review").Close
End If
End If
If intTCCount = 7 Then
Call logoutfromApp("MasterFile","Reports - Market Review")
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
If Dialog("Application Error").Exist(3)
Then
Dialog("Application Error").Acti
vate
Dialog("Application Error").WinB
utton("OK").Click
End If
End If
Call invoke_URL("MasterFile","Login Page",DataTa
ble.Value("URL","MFLogin"))
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call click_WebElement("MasterFile","Depositary R
eceipt Division's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataT
able.Value("MenuPath","MarketReview"))
End If
Next
' Step 38
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 38: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 39, 40 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39, 40: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 39, 40: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 41, 42
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 41, 42: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 41, 42: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 43: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 43: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 43: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 43: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 44: Sort Exchange in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Exchange","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 44: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 44: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 45: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 45: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 45: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 46: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 46: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 46 Verifying if the 'Ratio' C
olumn is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 47, 48: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 47, 48: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 47, 48: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 49: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 49: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 49: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 50: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 50: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 50: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 51: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 51: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 51: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 52: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 52: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 52: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 53
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 53: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 53: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++=

' Test Case 7


Public Function MFReportsMarketReview_TC7()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
For intTCCount = 1 to 2
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header
,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Marke
tReview"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report
Market Review",DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement
","Name")
Wait(3)
If Browser("Report Market Review").Page("DR Profile").Ex
ist(2) Then
strDRName = get_WebEdit_Value("Report Market Rev
iew","DR Profile","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(str
DRName)) Then
Reporter.ReportEvent micPass,"Step " &in
tCount & ": Verfiying if the Selected DR is Dispalyed or Not","The Selected DR
: ' " & strSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &in
tCount & ": Verfiying if the Selected DR is Dispalyed or Not","The Selected DR
: ' " & strSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the DR Profile Page is Dispalyed or Not","The Page ' DR Profil
e' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
intCount = intCount + 1
Wait(2)
Browser("Report Market Review").Refresh
Browser("Report Market Review").Refresh
Wait(3)
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Wait(5)
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report
Market Review",DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement
","CUSIP")
Wait(3)
If Browser("Report Market Review").Page("CUSIP Profile")
.Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market R
eview","CUSIP Profile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSele
ctedName)) Then
Reporter.ReportEvent micPass,"Step " &in
tCount & ": Verfiying if the Selected CUSIP is Dispalyed or Not","The Selected
CUSIP : ' " & strSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &in
tCount & ": Verfiying if the Selected CUSIP is Dispalyed or Not","The Selected
CUSIP : ' " & strSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "Fa
lse"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP
Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profil
e")
Browser("Report Market Review").Close
If intTCCount <> 2 Then
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow
(Environment.Value("DATATABLE_ROW"))
End If
Next
intCount = 13
For intTCCount = 1 to 6
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Marke
tReview"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 6 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 31
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 31: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 32, 33: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 34, 35
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 34,35: Verfiying if the Numbe
r of Records are Same after removing the Filter Criteria","The Number of Records
are Same"
Else
Reporter.ReportEvent micFail,"Step 34, 35: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort Exchange in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Exchange","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 36: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 37: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38: Sort Ratio in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 38: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 39, 40: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step39, 40: Verifying Multiple Sor
t Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 39, 40: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 41: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Wait(2)
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 41: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
' Step 42 : INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 42: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 43: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 43: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 44: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 44: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 44: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 45:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 45: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 45: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
' Test Case 8
Public Function MFReportsMarketReview_TC8()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are display
ed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Market
Review") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are Not dis
played after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Ma
rketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers and the Search Cr
iteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5 : Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or the Sear
ch Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step 5: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Displayed as per the S
earch Criteria"
' Else
' Reporter.ReportEvent micFail,"Step 5: Verifying if the Results a
re Dispalyed as per the Search Criteria","The Results are Not Displayed as per t
he Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verifying if the Result a
re generated as per the Required DR Type","The Results are Generated as per the
Required DR Type"
Else
Reporter.ReportEvent micFail,"Step 5 :Verifying if the Result ar
e generated as per the Required DR Type","The Results are Not Generated as per t
he Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 6 : Verifying if the DR Prof
ile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(3)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7 : Verifying if the CUSIP P
rofile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
'Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close

intCount = 8
For intTCCount = 1 to 7
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.
Value("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 7 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 29
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 29: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 30, 31 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 32,33: Verfiying if the Numbe
r of Records are Same after removing the Filter Criteria","The Number of Records
are Same"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Sort Exchange in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Exchange","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Exchang
e' Column is Sorted in Ascending Order or Not","The Column 'Exchange' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 35: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 36 Verifying if the 'Ratio' C
olumn is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37, 38: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37, 38: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 37, 38: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 39: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 39: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
' Step 40 : INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 40: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 41: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 41: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 42: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 42: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 43:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 43: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 43: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
' Test Case 9
Public Function MFReportsMarketReview_TC9()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are display
ed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Market
Review") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are Not dis
played after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Ma
rketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
' Call chkReportLinks("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers and the Search Cr
iteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5 : Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or the Sear
ch Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate1 = Replace(DataTable.Value("FromDate","MarketReview"),";","-
")
' strToDate1 = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' strFromDate2 = Replace(DataTable.Value("From_Date","MarketReview"),";","
-")
' strToDate2 = Replace(DataTable.Value("To_Date","MarketReview"),";","-")
'
' If strFromDate1 >= strFromDate2 Then
' strFromDate = strFromDate2
' Else
' strFromDate = strFromDate1
' End If
'
' If strToDate1 >= strToDate2 Then
' strToDate = strToDate1
' Else
' strToDate = strToDate2
' End If
'
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step Step 5: Verifying if the Resu
lts are Dispalyed as per the Search Criteria","The Results are Displayed as per
the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step Step 5: Verifying if the Resu
lts are Dispalyed as per the Search Criteria","The Results are Not Displayed as
per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verifying if the Result a
re generated as per the Required DR Type","The Results are Generated as per the
Required DR Type"
Else
Reporter.ReportEvent micFail,"Step 5 :Verifying if the Result ar
e generated as per the Required DR Type","The Results are Not Generated as per t
he Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(3)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 6 : Verifying if the DR Prof
ile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(3)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7 : Verifying if the CUSIP P
rofile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 6
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Th
en
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate1 = Replace(DataTable.Value("FromDate","Mark
etReview"),";","-")
' strToDate1 = Replace(DataTable.Value("ToDate","MarketRev
iew"),";","-")
' strFromDate2 = Replace(DataTable.Value("From_Date","Mark
etReview"),";","-")
' strToDate2 = Replace(DataTable.Value("To_Date","MarketRe
view"),";","-")
'
' If strFromDate1 >= strFromDate2 Then
' strFromDate = strFromDate2
' Else
' strFromDate = strFromDate1
' End If
'
' If strToDate1 >= strToDate2 Then
' strToDate = strToDate1
' Else
' strToDate = strToDate2
' End If
'
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.
Value("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 6 Then
Browser("Report Market Review").Close
End If
Wait(2)
Next
' Step 26
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 26: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 26: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 27, 28 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 27, 28: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 27, 28: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 29, 30
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 29, 30: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 29, 30: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 31: Click on Type Column and check for the Ascending and Descend
ing Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Type")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Type","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verifying if the 'Type' C
olumn is Sorted in Ascending Order or Not","The Column 'Type' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 31: Verifying if the 'Type' C
olumn is Sorted in Ascending Order or Not","The Column 'Type' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Type")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Type","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verifying if the 'Type' C
olumn is Sorted in Descending Order or Not","The Column 'Type' is Sorted in Desc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 31: Verifying if the 'Type' C
olumn is Sorted in Descending Order or Not","The Column 'Type' is Not Sorted in
Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 32: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 32: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 33: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 33: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 33: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35, 36: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35, 36: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 35, 36: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Wait(2)
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 37: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 38 : INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 38: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 39: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 39: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 40: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 40: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 41:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 41: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 41: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++
' Test Case 10
Public Function MFReportsMarketReview_TC10()
' Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the Required
Links are Present or Not","The Required Links are Not present in the Page ' Repo
rts - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are display
ed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Market
Review") & " ' "
Else
Reporter.ReportEvent micFail,"Step 4 : Verfiying the required F
ields are Dispalyed after clicking on the Link","The Required Fields are Not dis
played after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Ma
rketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
If DataTable.Value("IncludeUnsponsoredDRs","MarketReview") ="Y" Then
Call select_Checkbox("MasterFile","Reports - Market Review","Inc
ludeUnsponsoredDRs")
ElseIf DataTable.Value("IncludeUnsponsoredDRs","MarketReview") ="N" Then
blncheckboxExist=Browser("MasterFile").Page("Reports - Market Re
view").WebCheckBox("IncludeUnsponsoredDRs").Exist(2)
If blncheckboxExist Then
If Browser("MasterFile").Page("Reports - Market
Review").WebCheckBox("IncludeUnsponsoredDRs").GetROProperty("checked") = 1 then
Browser("MasterFile").Page("Repo
rts - Market Review").WebCheckBox("IncludeUnsponsoredDRs").Set "OFF"
End if
Reporter.ReportEvent micDone,"Selecting CheckBox
","Checkbox '" & strCheckBoxName & "' is selected successfully"
Else
Reporter.ReportEvent micFail,"Selecting CheckBox
","Checkbox '" & strCheckBoxName & "' does not exists in the page"
Environment.Value("Execution_Log")= "False"
Call captureScreenShot()
'Environment.Value("TestCase_Log")= "False"
End If
End If
Wait(2)
Browser("MasterFile").Page("Reports - Market Review").Link("Generate Det
ail Report").Click
Wait(180)
'Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review",
"Details")
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","Mark
etReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 5 : Verfiying the Results are
Dispalyed","The Result is displayed with the Required Headers, 4 links and the
Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step 5 : Verfiying the Results are
Dispalyed","The Results are Not displayed with the Required Headers or 4 links
or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 6: Click on the Name Link
'strSelectedName = SelectValueinTable_Repository("Report Market Review",
DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
strSelectedName = "Rexam"
Call clickRecordinTableDOM("Report Market Review",DataTable.Value("PageN
ame","MarketReview"),"Item",strSelectedName)
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 6 : Verfiying if the
Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelectedName & " '
is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 6 : Verifying if the DR Prof
ile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Wait(10)
' Step 7:
'strSelectedName = SelectValueinTable_Repository("Report Market Review",
DataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
strSelectedName = "761655406"
Call clickRecordinTableDOM("Report Market Review",DataTable.Value("PageN
ame","MarketReview"),"Item",strSelectedName)
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 7 : Verfiying if the
Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & strSelectedName
& " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 7 : Verifying if the CUSIP P
rofile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value(
"MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
'Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review",
"Details")
If DataTable.Value("IncludeUnsponsoredDRs","MarketReview") ="Y"
Then
Call select_Checkbox("MasterFile","Reports - Market Revi
ew","IncludeUnsponsoredDRs")
ElseIf DataTable.Value("IncludeUnsponsoredDRs","MarketReview") =
"N" Then
blncheckboxExist=Browser("MasterFile").Page("Reports - M
arket Review").WebCheckBox("IncludeUnsponsoredDRs").Exist(2)
If blncheckboxExist Then
If Browser("MasterFile").Page("Reports -
Market Review").WebCheckBox("IncludeUnsponsoredDRs").GetROProperty("checked") =
1 then
Browser("MasterFile").Pa
ge("Reports - Market Review").WebCheckBox("IncludeUnsponsoredDRs").Set "OFF"
End if
Reporter.ReportEvent micDone,"Selecting
CheckBox","Checkbox '" & strCheckBoxName & "' is selected successfully"
Else
Reporter.ReportEvent micFail,"Selecting
CheckBox","Checkbox '" & strCheckBoxName & "' does not exists in the page"
Environment.Value("Execution_Log")= "Fal
se"
Call captureScreenShot()
'Environment.Value("TestCase_Log")= "Fal
se"
End If
End If
Wait(2)
Browser("MasterFile").Page("Reports - Market Review").Link("Generate Det
ail Report").Click
Wait(250)
'Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","
MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Browser("Report Market Review").Close
Wait(5)
' Step 11
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 11: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 11: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 12, 13 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 12, 13: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 12, 13: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 14, 15
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 14, 15: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 14, 15: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 16: Click on Type Column and check for the Ascending and Descend
ing Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Type")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Type","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Verifying if the 'Type' C
olumn is Sorted in Ascending Order or Not","The Column 'Type' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 16: Verifying if the 'Type' C
olumn is Sorted in Ascending Order or Not","The Column 'Type' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Type")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Type","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Verifying if the 'Type' C
olumn is Sorted in Descending Order or Not","The Column 'Type' is Sorted in Desc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 16: Verifying if the 'Type' C
olumn is Sorted in Descending Order or Not","The Column 'Type' is Not Sorted in
Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 17: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 17: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 18: Sort CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 18: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 18: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 19: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 19: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 20, 21: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 20, 21: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 20, 21: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 22: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 22: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 22: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Close
Wait(2)
' Step 23:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 23: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 23: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
' Test Case 11:
Public Function MFReportsMarketReview_TC11()
'Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 6
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) Th
en
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 6 Then
Browser("Report Market Review").Close
End If
Next
' Step 26
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 26: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 26: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 27, 28 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 27, 28: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 27, 28: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 29, 30
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 29, 30: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 29, 30: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 31: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 32: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 32: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 33: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 33: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 33: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35, 36: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35, 36: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 35, 36: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 37: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 38: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 38: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 39: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 39: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 39: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 40: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 40: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 41:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 41: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 41: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++
'Test Case 12
Public Function MFReportsMarketReview_TC12()
'Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
intCount = 8
For intTCCount = 1 to 7
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
If Browser("MasterFile").Page("Login Page").Exist(5) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 7 Then
Browser("Report Market Review").Close
End If
Next
' Step 29
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 29: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 30, 31 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38, 39: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38, 39: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 38, 39: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
' Step 41: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 41: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 44:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++
'Test Case 13:

Public Function MFReportsMarketReview_TC13()


'Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-"
)
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value(
"MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(5) Then
Call login("MasterFile","Login Page","User","MFLogin")
End If
intCount = 8
For intTCCount = 1 to 7
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Marke
tReview"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 7 Then
Browser("Report Market Review").Close
End If
Next
' Step 29
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 29: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 30, 31 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 31: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38, 39: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38, 39: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 38, 39: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
' Step 41: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 41: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 44:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
'Test Case 14

Public Function MFReportsMarketReview_TC14()


'Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers, and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-
")
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(5) Then
Call login("MasterFile","Login Page","User","MFLogin")
End If
intCount = 8
For intTCCount = 1 to 7
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Marke
tReview"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 7 Then
Browser("Report Market Review").Close
End If
Next
' Step 29
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 29: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 30, 31 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
'Environment.Value("TestCase_Log") = "True"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38, 39: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38, 39: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 38, 39: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
' Step 41: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value("Men
uPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 41: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 44:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++
'Test Case 15

Public Function MFReportsMarketReview_TC15()


'Step 1, 2:
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath","M
arketReview"))
intCount = 3
' Select Market Review Menu
'Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value
("MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are present in the P
age ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Required Links are Present or Not","The Required Links are Not present in t
he Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 4: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are displayed after clicking on the Link ' " & DataTable.Value("SelectRequired
Link","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying t
he required Fields are Dispalyed after clicking on the Link","The Required Field
s are Not displayed after clicking on the Link ' " & DataTable.Value("SelectRequ
iredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 5: Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Details")
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review",DataTable.Valu
e("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Value("PageName","
MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Value("PageName","
MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Result is displayed with the Required Headers and
the Search Criteria displayed matches the Entered Search Criteria"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verfiying th
e Results are Dispalyed","The Results are Not displayed with the Required Header
s or the Search Criteria displayed does not matches the Entered Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","MarketReview"),";","-
")
' strToDate = Replace(DataTable.Value("ToDate","MarketReview"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTable.Value("PageNam
e","MarketReview"),"Item","Effective Date",strFromDate,strToDate)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Displaye
d as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying if
the Results are Dispalyed as per the Search Criteria","The Results are Not Disp
layed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.Value("PageName"
,"MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount & " : Verifying
if the Result are generated as per the Required DR Type","The Results are Genera
ted as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount & " :Verifying i
f the Result are generated as per the Required DR Type","The Results are Not Gen
erated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Step 6: Click on the Name Link
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","Name")
Wait(5)
If Browser("Report Market Review").Page("DR Profile").Exist(2) Then
strDRName = get_WebEdit_Value("Report Market Review","DR Profile
","DRName")
If UCase(Trim(strSelectedName)) = UCase(Trim(strDRName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected DR is Dispalyed or Not","The Selected DR : ' " & strSelec
tedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the DR Profile Page is Dispalyed or Not","The Page ' DR Profile' is Not Displa
yed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Browser("Report Market Review").Back
Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
intCount = intCount + 1
' Step 7:
strSelectedName = SelectValueinTable_Repository("Report Market Review",D
ataTable.Value("PageName","MarketReview"),"Item","Env_WebElement","CUSIP")
Wait(5)
If Browser("Report Market Review").Page("CUSIP Profile").Exist(2) Then
CUSIPNumber = get_WebEdit_Value("Report Market Review","CUSIP Pr
ofile","CUSIPNumber")
If UCase(Trim(CUSIPNumber)) = UCase(Trim(strSelectedName)) Then
Reporter.ReportEvent micPass,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Ver
fiying if the Selected CUSIP is Dispalyed or Not","The Selected CUSIP : ' " & st
rSelectedName & " ' is Not Displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step " &intCount & ": Verifying i
f the CUSIP Profile Page is Dispalyed or Not","The Page ' CUSIP Profile' is Not
Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
' Call ReportLoadWait("Report Market Review",DataTable.Value("PageName","M
arketReview"),"Item","Item")
' Call logoutfromApp("Report Market Review","CUSIP Profile")
Browser("Report Market Review").Close
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(5) Then
Call login("MasterFile","Login Page","User","MFLogin")
End If
intCount = 8
For intTCCount = 1 to 7
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environ
ment.Value("DATATABLE_ROW"))
' Select Market Review Menu
Call select_Menu("MasterFile","Reports - Market Review",
DataTable.Value("MenuPath","MarketReview"))
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("OK").Clic
k
If Dialog("Application Error").Exist(3) Then
Dialog("Application Error").Activate
Dialog("Application Error").WinButton("O
K").Click
End If
End If
If Browser("MasterFile").Page("Login Page").Exist(3) The
n
Call login("MasterFile","Login Page","User","MFL
ogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market
Review",DataTable.Value("MenuPath","MarketReview"))
End If
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
present in the Page ' Reports - Market Review ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Required Links are Present or Not","The Required Links are
Not present in the Page ' Reports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Ma
rket Review",Environment.Value("strAppLinks"), DataTable.Value("SelectRequiredLi
nk","MarketReview"))
Call chkPage_MarketReview("MasterFile","Reports - Market
Review",DataTable.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <>
"" Then
Call chkWebRadioGroup_MarketReview("MasterFile",
"Reports - Market Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are displayed after clicking on the Link ' " & DataTable.Value
("SelectRequiredLink","MarketReview") & " ' "
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the required Fields are Dispalyed after clicking on the Link","Th
e Required Fields are Not displayed after clicking on the Link ' " & DataTable.V
alue("SelectRequiredLink","MarketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
' Verfiy for the Search Criteria, Report Header,
Call MarketReviewSearchCriteria("MasterFile","Reports -
Market Review","Details")
Call ReportLoadWait("Report Market Review",DataTable.Val
ue("PageName","MarketReview"),"Item","Item")
Call chkMarketReviewSearchCriteria("Report Market Review
",DataTable.Value("PageName","MarketReview"))
'Call chkReportLinks("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),"MarketReview","MarketReviewReportsLinks")
Call chkReportHeader("Report Market Review",DataTable.Va
lue("PageName","MarketReview"),DataTable.Value("ReportHeader","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Result is displayed with the Requi
red Headers and the Search Criteria displayed matches the Entered Search Criteri
a"
Else
Reporter.ReportEvent micFail,"Step " &intCount &
": Verfiying the Results are Dispalyed","The Results are Not displayed with the
Required Headers or the Search Criteria displayed does not matches the Entered
Search Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' strFromDate = Replace(DataTable.Value("FromDate","Market
Review"),";","-")
' strToDate = Replace(DataTable.Value("ToDate","MarketRevi
ew"),";","-")
' Call chkDateRangeinTable("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),"Item","Effective Date",strFromDate,strToDate
)
' If Environment.Value("TestCase_Log") = "True" Then
' Reporter.ReportEvent micPass,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Displayed as per the Search Criteria"
' Else
' Reporter.ReportEvent micFail,"Step " &intCount &
": Verifying if the Results are Dispalyed as per the Search Criteria","The Resu
lts are Not Displayed as per the Search Criteria"
' Environment.Value("TestCase_Log") = "True"
' Environment.Value("Execution_Log") = "False"
' End If
Call chkDRTypeinTable("Report Market Review",DataTable.V
alue("PageName","MarketReview"),"Item","Type",Environment.Value("DRType"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step " & intCount
& " : Verifying if the Result are generated as per the Required DR Type","The Re
sults are Generated as per the Required DR Type"
Else
Reporter.ReportEvent micFail,"Step " & intCount
& " :Verifying if the Result are generated as per the Required DR Type","The Res
ults are Not Generated as per the Required DR Type"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
intCount = intCount + 1
If intTCCount <> 7 Then
Browser("Report Market Review").Close
End If
Next
' Step 29
Call chkReportLinks("Report Market Review",DataTable.Value("PageName","M
arketReview"),"MarketReview","MarketReviewReportsLinks")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 29: Verfiying if the 4 Links
are present or Not","The Four links namely ' Search, Filter, Sort and Save As Ex
cel ' is present"
Else
Reporter.ReportEvent micFail,"Step 29: Verfiying if the 4 Links
are present or Not","The Required Links are Not Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 30, 31 : Multiple Filter Criteria
initialRowCount = Browser("Report Market Review").Page(DataTable.Value("
PageName","MarketReview")).WebTable("Item").RowCount
Call MultipleFilterCriteria_TwoAdditions("Report Market Review",DataTabl
e.Value("PageName","MarketReview"),DataTable.Value("FilterColumn","MarketReview"
),DataTable.Value("FilterExpression","MarketReview"),DataTable.Value("FilterValu
e","MarketReview"),DataTable.Value("FilterCondition","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Filtered as per the Filter Criteria"
Else
Reporter.ReportEvent micFail,"Step 30, 31: Verfiying the Filter
Functionality","The Result Table is Not Filtered as per the Filter Criteria"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 32, 33
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Filter")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Call FilterSort_clkAddDelButton("Report Market Review",DataTable.Value("
PageName","MarketReview"),"Filter:","Delete")
Wait(2)
Call click_WebButton("Report Market Review", DataTable.Value("PageName",
"MarketReview"), "OK")
Wait(1)
Call click_Image("Report Market Review",DataTable.Value("PageName","Mark
etReview"),"Filter_CloseButton")
Wait(2)
intFinalRowCount = Browser("Report Market Review").Page(DataTable.Value(
"PageName","MarketReview")).WebTable("Item").RowCount
If initialRowCount = intFinalRowCount Then
Reporter.ReportEvent micPass,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Same"
Else
Reporter.ReportEvent micFail,"Step 32, 33: Verfiying if the Numb
er of Records are Same after removing the Filter Criteria","The Number of Record
s are Not Same."
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 34: Click on Industry Column and check for the Ascending and Desc
ending Order Sort
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Sorted
in Ascending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Ascending Order or Not","The Column 'Industry' is Not Sor
ted in Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(2)
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Industry")
Wait(2)
Call chkSortOrder("Report Market Review",DataTable.Value("PageName","Ma
rketReview"),"Item","Industry","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Sorted
in Descending Order"
Else
Reporter.ReportEvent micFail,"Step 34: Verifying if the 'Industr
y' Column is Sorted in Descending Order or Not","The Column 'Industry' is Not So
rted in Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 35: Sort Name in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Name","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Sorted in Ascen
ding Order"
Else
Reporter.ReportEvent micFail,"Step 35: Verifying if the 'Name' C
olumn is Sorted in Ascending Order or Not","The Column 'Name' is Not Sorted in A
scending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 36: Sort : CUSIP in Descending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","CUSIP","descending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Sorted in De
scending Order"
Else
Reporter.ReportEvent micFail,"Step 36: Verifying if the 'CUSIP'
Column is Sorted in Descending Order or Not","The Column 'CUSIP' is Not Sorted i
n Descending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 37: Sort Ratio in Ascending Order
Call SortCriteria("Report Market Review",DataTable.Value("PageName","Mar
ketReview"),"Sort","Ratio (DRs:Und.)","ascending")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Sorted in Asc
ending Order"
Else
Reporter.ReportEvent micFail,"Step 37: Verifying if the 'Ratio'
Column is Sorted in Ascending Order or Not","The Column 'Ratio' is Not Sorted in
Ascending Order"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 38, 39: Multiple Sort
Call MultipleSortCriteria("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Sort",DataTable.Value("SortColumn","MarketReview"),DataTable.Va
lue("SortOrder","MarketReview"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 38, 39: Verifying Multiple So
rt Functionality","The Columns are Sorted as per the Multiple Sort Criteria"
Else
Reporter.ReportEvent micFail,"Step 38, 39: Verifying Multiple S
ort Functionality","The Columns are Not Sorted as per the Multiple Sort Criteria
"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 40: Export to Excel
Call click_WebElement("Report Market Review",DataTable.Value("PageName",
"MarketReview"),"Name")
Call Report_SaveExcel_LineBreak("Report Market Review",DataTable.Value("
PageName","MarketReview"),"SaveAsExcel","MarketReview")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Exported to Excel Successfully"
Else
Reporter.ReportEvent micFail,"Step 40: Verfiying if the Report i
s Exported to Excel Successfully","The Report is Not Exported to Excel Successfu
lly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
If Browser("MasterFile").Page("Login Page").Exist(3) Then
Call login("MasterFile","Login Page","User","MFLogin")
Wait(2)
Call select_Menu("MasterFile","Reports - Market Review",DataTabl
e.Value("MenuPath","MarketReview"))
End If
' Step 41: INCREMENT ROW
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABLE_ROW")
+ 1
DataTable.GetSheet("MarketReview").SetCurrentRow(Environment.Value("DATA
TABLE_ROW"))
Call select_Menu("MasterFile","Reports - Market Review",DataTable.Value(
"MenuPath","MarketReview"))
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Environ
ment.Value("strAppLinks") ,"")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 41: Verifying if the Required
Links are Present or Not","The Required Links are present in the Page ' Reports
- Market Review ' "
Else
Reporter.ReportEvent micFail,"Step 41: Verifying if the Require
d Links are Present or Not","The Required Links are Not present in the Page ' Re
ports - Market Review ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 42: Select the Link and check for the Fields
Call chkMarketReviewPageLinks("MasterFile","Reports - Market Review",Env
ironment.Value("strAppLinks"), DataTable.Value("SelectRequiredLink","MarketRevie
w"))
Call chkPage_MarketReview("MasterFile","Reports - Market Review",DataTab
le.Value("SelectRequiredLink","MarketReview"))
If DataTable.Value("RadioGroupIndex","MarketReview") <> "" Then
Call chkWebRadioGroup_MarketReview("MasterFile","Reports - Marke
t Review",DataTable.Value("RadioGroupDetails","MarketReview"))
End If
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are displaye
d after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","MarketR
eview") & " ' "
Else
Reporter.ReportEvent micFail,"Step 42: Verfiying the required Fi
elds are Dispalyed after clicking on the Link","The Required Fields are Not disp
layed after clicking on the Link ' " & DataTable.Value("SelectRequiredLink","Mar
ketReview") & " ' "
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 43: Enter Search Criteria
Call MarketReviewSearchCriteria("MasterFile","Reports - Market Review","
Summary")
Call clkGenerateSummaryLink("MasterFile","Reports - Market Review")
If Environment.Value("TestCase_Log")= "True" Then
Reporter.ReportEvent micPass,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file exists in the path "&strPdfPath &" and Please chec
k for the CORRECTNESS Manually"
Else
Reporter.ReportEvent micFail,"Step 43: Verify the Downloaded Rep
ort","The Downloaded pdf file is NOT Downloaded successfully in the path "&strPd
fPath
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "True"
End If
If Browser("Report Market Review").Exist(5) Then
Browser("Report Market Review").Close
End If
Wait(2)
' Step 44:
Call select_Menu("MasterFile","Reports - Market Review","Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 44: Verify if the ADR Home Pa
ge is Displayed or Not","The ADR Home page is Not displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If

End Function

'====================================================== Test Case Ends =========


========================================

'===============================================================================
=========================================================
' Name of the Function : CompSearchResultExcelAndAppData_Lin
eBeak
' Scope of the Function : Public
' Author : Shyam H D
' Description : This function is to Compare the Res
ult Exported to an Excel Sheet with the Values Dispalyed in the Application
' Parameters accepted : Path of the Excel Sheet and Sheet N
ame of the Excel.
' Parameter returned : Null
' Date and / or Version : 14-11-2008,version 1.0
' Call Statement : 'Call CompSearchResultExcelAndAppDa
ta_LineBeak("Report Market Review","Share of Total DR Programs","D:\Delete.xls",
"Delete")
'===============================================================================
============================
' Need to Upload : ------ Latest One

Public Function CompSearchResultExcelAndAppData_LineBeak(strBrowserName, strPage


Name, strExcelPath,strExcelSheetName)
Set ExcelSheet = CreateObject("Excel.Application")
ExcelSheet.Application.Visible = "True"
Set excelAppOpen = ExcelSheet.Workbooks.Open(strExcelPath)
blnNumFlag = "False"
blnFlag = "True"
blnExitFlag = "False"
blnFinalFlag = "True"
intRowCount = Browser(strBrowserName).Page(strPageName).WebTab
le("Item").RowCount
If intRowCount > 25 Then
intRowCount = 25
End If
counter = 0
intInital =1
strExcelRow = excelAppOpen.Sheets(strExcelSheetName).Cells(1,1
).value
While strExcelRow <> ""
counter = counter+1
strExcelRow = excelAppOpen.Sheets(strExcelSheetName).Cells(co
unter+1,1).value
Wend
intColumnCount = Browser(strBrowserName).Page(strPageNa
me).WebTable("Item").ColumnCount(1)
For intColumnCounters = 1 to intColumnCount
strValue = Browser(strBrowserName).Page(
strPageName).WebTable("Item").GetCellData(1,intColumnCounters)
If Instr(1,UCase(strValue),"NAME") Then
intReqColumn = intColumnCounters
Exit For
End If
Next
RowCount = 1
For intRowCounters = 1to intRowCount
blnExportDataFlag = "True"
strFirstCellValue = Browser(strBrowserName).Page(strPage
Name).WebTable("Item").GetCellData(intRowCounters,1)
If IsNumeric(strFirstCellValue) Then
blnNumFlag = "True"
ElseIf intRowCounters = 1 Then
blnNumFlag = "True"
Else
blnNumFlag = "False"
End If
Datacounter = 0
' intColumnCount = Browser(strBrowserName).Page(strPageName).Web
Table("Item").ColumnCount(1)
' For intColumnCounters = 1 to intColumnCount
' strValue = Browser(strBrowserName).Page(strPageN
ame).WebTable("Item").GetCellData(intRowCounters,intColumnCounters)
' If Instr(1,UCase(strValue),"NAME") Then
' intReqColumn = intColumnCounters
' Exit For
' End If
' Next
If blnNumFlag = "True" Then
'strAppCellDatas = Browser(strBrowserName).Page(strPageName).
WebTable("Item").GetCellData(intRowCounters,2)
strAppCellDatas = Browser(strBrowserName).Page(strPageName).W
ebTable("Item").GetCellData(intRowCounters,intReqColumn)
For intRowExcelCounter = 1 to counter
strExcelDatas = excelAppOpen.Sheets(strExcelSheetName).
Cells(intRowExcelCounter,intReqColumn).value
If strExcelDatas = strAppCellDatas Then
Datacounter = Datacounter + 1
End If
Next
End If

intReqRowCount = 1
intFindCounter = intReqRowCount
intFinalDataCounter = 0
'For DataTableCounter = 1 to DataCounter
For intRowCounter = intRowCounters to intRowCount
strFirstCellValue = Browser(strBrowserName).Page(strPageName).WebTable("Item
").GetCellData(intRowCounter,1)
If IsNumeric(strFirstCellValue) Then
blnNumFlag = "True"
ElseIf intRowCounter = 1 Then
blnNumFlag = "True"
Else
blnNumFlag = "False"
End If
If blnNumFlag = "True" Then
For intRowExcelCounter = intFindCounter to counter
strAppCellDatas = Browser(strBrowserName).Page(strPageName).WebTable("Item
").GetCellData(intRowCounter,intReqColumn)
strExcelDatas = excelAppOpen.Sheets(strExcelSheetName).Cells(intRowExcelCo
unter,intReqColumn).value
blnExistFlag = "True"
If strExcelDatas = strAppCellDatas Then
intFinalDataCounter = intFinalDataCounter + 1
intReqRowCount = intRowExcelCounter
intFindCounter = intReqRowCount
' If intRowExcelCounter = 1 Then
' intExitCounter = intFindCounter
' End If
intFindCounter = intFindCounter +1
intColumnCount = Browser(strBrowserName).Page(strPageName).WebTable("Item
").ColumnCount(1)
For intColumnCounter = 2 to intColumnCount
strAppCellData = Browser(strBrowserName).Page(strPageName).WebTable("Ite
m").GetCellData(intRowCounter,intColumnCounter)
strAppCellData = Replace(strAppCellData,"%","")
strAppCellData = Replace(strAppCellData,"+","")
strExcelData = excelAppOpen.Sheets(strExcelSheetName).Cells(intReqRowCou
nt,intColumnCounter).value
If IsNumeric(strAppCellData) Then
strAppCellData = strAppCellData/1
End If
If IsNumeric(strExcelData) Then
strExcelData = strExcelData/1
End If
If UCase(Trim(strAppCellData)) <> UCase(Trim(strExcelData)) Then
If strAppCellData <> "" OR strExcelData <> "0" Then
blnFlag = "False"
'If DataCounter = 1 OR DataTableCounter = DataCounter Then
'If intRowExcelCounter = (intExitCounter + DataCounter)
Or Datacounter = 1 Then
If intFinalDataCounter = DataCounter Then
blnFinalFlag = "False"
'blnFlag = "False"
blnExportDataFlag = "False"
Reporter.ReportEvent micFail,"Row Value : = " &
strAppCellDatas & " :: Application Row: = " & intRowCounter & " and Excel Row:=
" & intReqRowCount ,"Application Data := " & strAppCellData & ", Excel Sheet D
ata : = " & strExcelData
Call captureScreenShot()
' If DataTable.Value("TestCaseID","TradeVolume")="
TestCase72" Then
' ExcelSheet.Application.Quit
' Reporter.ReportEvent micFail,"Comparing
the Data in the Generated Result Table with the details exported to an Excel fil
e","The Result is NOT Successfully exported to the Excel Sheet"
' Environment.Value("TestCase_Log") = "Fal
se"
' Environment.Value("Execution_Log") = "Fa
lse"
' Exit Function
' End If
'Exit For
End If
blnExistFlag = "False"
End If
End If
Next
If blnExportDataFlag = "False" Then
If intFinalDataCounter = DataCounter Then
Exit For
End If
End If
If blnExistFlag = "True" Then
Exit For
End If
End IF
Next
If blnExportDataFlag = "False" Then
If intFinalDataCounter = DataCounter Then
Exit For
End If
End If
If blnExistFlag = "True"Then
Exit For
End If
End If
Next

Next
ExcelSheet.Application.Quit
If blnFinalFlag = "True" Then
Reporter.ReportEvent micPass,"Comparing the Data in the Generate
d Result Table with the details exported to an Excel file","The Result is Succes
sfully exported to the Excel Sheet"
Else
Reporter.ReportEvent micFail,"Comparing the Data in the Generate
d Result Table with the details exported to an Excel file","The Result is NOT Su
ccessfully exported to the Excel Sheet"
Environment.Value("TestCase_Log") = "False"
Environment.Value("Execution_Log") = "False"
End If

End Function

You might also like