You are on page 1of 54

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

==========================
' Name of the Script : Master File Reports BooksClos
ed
' Scope of the Script : This test script covers 17 te
st cases related to the MF Reports Enterprise
' Author
: Mohan Gummadi
' Description : Master File --
> Enterprise
' Date and / or Version : 02-1-2009,version 1.0
'===============================================================================
============================
Sub MFReportsBooksClosed()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")="True"
'''''''''Test case count
Const TC_COUNT = 18
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
strAllPath =""
For intCounter = 0 to strBound - 1
strAllPath = strAllPath & strIndVar(intCounter)
&"\"
Next
strPath = Trim(strPath)
strDataPath = strAllPath & "DataTables\"
strLibPath = strAllPath & "Function_Library\"
'****Adding MFLogin sheet to the dataTable and Importing the Input DataT
able
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLog
in"
DataTable.AddSheet "BooksClosed"
Environment.Value("strSheetName")="BooksClosed"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Boo
ksClosed","BooksClosed"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Rep
ortHeader","ReportHeader"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileReports.xls","Hom
ePageVerification","HomePageVerification"
' Logs the Scenario name Execution in a .csv file
Call Execution_log(DataTable.Value("Scenario_Name", "Master"), "
", "", "")
'****Invoking IE and navigating to the ADR Login page
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
'****Checking the username, password and login objects in the lo
gin page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfil
e application
Call login("MasterFile","Login Page","User","MFLogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
Environment.Value("TestCase_Log")="True"
If DataTable("TestRunFlag","BooksClosed")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","BooksClosed") & "' ########### ","Executio
n of Test Case '" & DataTable("TestCaseDesc","BooksClosed") & "' Started"
strFuncName = "MFReportsBooksClosed_TC" & intTCCount & "()"
''Formation of function name
''Call Function
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "BooksClosed"), Datatable.Value("TestCaseDesc", "BooksClosed
"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "BooksClosed"), Datatable.Value("TestCaseDesc", "BooksClosed
"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","BooksClosed") & "###########","The Test
Case Execution Completed"
End If

strPrevious=Trim(DataTable.Value("TestCaseID","BooksClos
ed"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","BooksClosed")
)
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(
Environment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Books
Closed"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
'***************************************** TC Driver End *******
************************************************
End Sub

Public Function MFReportsBooksClosed_TC1()


Environment.Value("TestCase_Log")="True"
'Step #1 & Step #2
'Login Operation is included in the Driver Script.

'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: Navigate t
o DR Home page after successful login.","Successfully verified the links - " & D
ataTable.Value("HomePageLinks","HomePageVerification")
Else
Reporter.ReportEvent micFail,"Step 3: Navigate t
o DR Home page after successful login.","The links - '" & DataTable.Value("HomeP
ageLinks","HomePageVerification") & "' are not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on R
eports Link","The Report Link list should contain Books Closed"
Else
Reporter.ReportEvent micFail,"Step 4: Click on R
eports Link","The Report Link list should not contain Books Closed"
Environment.Value("TestCase_Log")="True"
End If
'Step #5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("MenuPath"
,"BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Repor
t",DataTable.Value("ReportNamesString","BooksClosed"),"")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5: Click on T
rading Volume","Reports pre-defined page is displayed with all report links"
Else
Reporter.ReportEvent micFail,"Step 5:Click on Tr
ading Volume","Reports pre-defined page is not displayed with all report links"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call select_Menu("MasterFile","Reports - Pre-defined","Home; DR
Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: From the H
ome menu, select DR home","DR Home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 6: From the H
ome menu, select DR home","DR Home page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC2()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 5: Under
Reports menu select Books Closed","Reports - Pre-defined Screen displayed with
report name links"
Else
Reporter.ReportEvent micFail,"Step 1 To 5: Under
Reports menu select Books Closed","Reports - Pre-defined Screen not displayed w
ith report name links"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #9
xCoordinate=Browser("MasterFile").Page("Reports - Pre-defined").WebEleme
nt("BooksClosedFlagReasonReport").GetROProperty("x")
yCoordinate=Browser("MasterFile").Page("Reports - Pre-defined").
WebElement("BooksClosedFlagReasonReport").GetROProperty("y")
Window("Microsoft Internet Explorer").WinObject("Internet Explor
er_Server").Click xCoordinate,yCoordinate
Call fnc_wait(Dialog("text:=File Download"))
Wait(3)
strExcelSheetName = DataTable.Value("TestCaseID","BooksClosed")
strTestCaseName = DataTable.Value("TestCaseID","BooksClosed") &
".xls"
strVar = Environment("TestDir")
strIndVar = Split(strVar,"\",-1,1)
strBound = UBound(strIndVar)
For intCounter= 0 to strBound-1
strinitialPath = strinitialPath & strIndVar(intCounter)
&"\"
Next
strPath = strinitialPath & "DownloadFiles\"
blnFolder = "False"
Set fso = CreateObject("Scripting.FileSystemObject")
blnFolder = fso.FolderExists(strPath)
If blnFolder = "False" Then
fso.CreateFolder(strPath)
End If
strExcelPath = strinitialPath & "DownloadFiles\" & strTestCaseNa
me
Call DeletingFile(strExcelPath)
If Dialog("text:=File Download").Exist(5) Then
Dialog("text:=File Download").WinButton("text:=&
Save").Click
If Dialog("text:=File Download").WinButton("text
:=&Save").Exist(5) Then
Dialog("text:=File Download").Wi
nButton("text:=&Save").Click
End If
End If
Wait(2)
Dialog("File Download").Dialog("Save As").WinEdit("File name:").
Type strExcelPath
Dialog("File Download").Dialog("Save As").WinButton("Save").Clic
k
Call fnc_wait(Dialog("text:=Download complete"))
If Dialog("text:=Download complete").Exist(2) Then
Dialog("Download complete").WinButton("Close").C
lick
End If
blnBoolValue = chkFileExist(strExcelPath)
If blnBoolValue = "True" Then
Reporter.ReportEvent micPass,"Verifying if the x
ls file exists or Not","The Excel file exist in the Path "&strPath
Call chkExcelHeaderNames(strExcelPath,DataTable.
Value("TestCaseID","BooksClosed"),"BooksClosedFlagReasonReport","ReportHeader","
Cusip")
Else
Reporter.ReportEvent micFail,"Verifying if the xls file exists o
r Not","The Excel file does NOT exist in the Path "&strPath
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 9: Go to
the location and open the BooksClosedFlagReasonReport.xls","Report headers are
displayed correctly"
Else
Reporter.ReportEvent micFail,"Step 6 To 9: Go to
the location and open the BooksClosedFlagReasonReport.xls","Report headers are
not displayed correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call select_Menu("MasterFile","Reports - Pre-defined","HOME;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: From the
Home menu, select DR home","DR Home page is displayed with the corresponding lin
ks"
Else
Reporter.ReportEvent micFail,"Step 10 : From the
Home menu, select DR home","DR Home page is not displayed with the correspondin
g links"
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC3()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #5
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 5: Under
Reports menu select Books Closed","Reports - Pre-defined Screen displayed with
report name links"
Else
Reporter.ReportEvent micFail,"Step 1 To 5: Under
Reports menu select Books Closed","Reports - Pre-defined Screen not displayed w
ith report name links"
Environment.Value("TestCase_Log")="True"
End If
'Step #6
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedforCancellationApplyReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Call SelectCAEventNameInReport("MasterFile",DataTable.Value("Rep
ortName","BooksClosed"),"Item",DataTable.Value("DRName","BooksClosed"))
strDRText=Trim(Browser("MasterFile").Page("DR Profile").WebEleme
nt("DRProfile").GetROProperty("innertext"))
If strDRText="DR Profile" Then
Reporter.ReportEvent micPass,"verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Reporter.ReportEvent micFail,"verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Environment.Value("Execution_Log")="False"
End If
strTab=Trim(Browser("MasterFile").Page("DR Profile").WebElement(
"DRIndices").GetROProperty("innertext"))
If strTab="Details" Then
Reporter.ReportEvent micPass,"Verify Detail tab
is selected by default","Detail tab is selected by default"
Else
Reporter.ReportEvent micFail,"Verify Detail tab
is selected by default","Detail tab is not selected by default"
Environment.Value("Execution_Log")="False"
End If
Call pageCheck_WebElementOR("MasterFile","DR Profile","Detail;CUSIPSumma
ryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profile","Name;Type;De
positary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversion;Comments;Orig
in;SU;EffectiveDate;TerminationDate;TerminationReason;SingleListed")
Call pageCheck_ImageOR("MasterFile","DR Profile","CADREvents;PreviewProf
ile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profile","SecurityDesc
ription;QualifiedForeignCorp;Status;DateDividendQualified")
Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSummar
yAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profile","Type;CUSIP;D
RExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentCUSIP")
Browser("MasterFile").Page("DR Profile").WebElement("Offerings")
.Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offerings","D
RProfileOfferingsFields")
Browser("MasterFile").Page("DR Profile").WebElement("AdditionalD
RExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile","AdditionalDRE
xchanges","DRProfileAdditionalDRExchangeFileds")
Browser("MasterFile").Page("DR Profile").WebElement("OtherDRServ
ices").Click
Call chkMFProfileHeader("MasterFile","DR Profile","OtherDRServic
es","DRProfileOtherDRServicesFields")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he Name link in the Name Column","DR Profile screen is displayed with all fields
"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he Name link in the Name Column","DR Profile screen is not displayed with all fi
elds"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","DR Profile","Profile;DR")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Under Prof
ile menu select Books Closed","DR search page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Prof
ile menu select Books Closed","DR search page is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Sep #9
Browser("MasterFile").Page("Profile - DR Search").WebEdit("DRNam
e").Set Datatable.Value("DRName","BooksClosed")
Browser("MasterFile").Page("Profile - DR Search").Image("Search"
).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search Opened"
Else
Reporter.ReportEvent micFail,"Step 9: Enter the
'DR Name' in the DR Name search criteria Field and click Search","Profile - DR
Search is not Opened"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Browser("MasterFile").Page("Profile - DR Search").WebElement("html tag:=
TD","index:=1","innertext:= " & Datatable.Value("DRName","BooksClosed")).click
strDRText=Trim(Browser("MasterFile").Page("DR Profile").WebEleme
nt("DRProfile").GetROProperty("innertext"))
If strDRText="DR Profile" Then
Reporter.ReportEvent micPass,"verify DR Profile
page is displayed or not","DR Profile page is displayed"
Else
Reporter.ReportEvent micFail,"verify DR Profile
page is displayed or not","DR Profile page is not displayed"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
Call pageCheck_WebElementOR("MasterFile","DR Profile","Detail;CUSIPSumma
ryAdd;Offerings;AdditionalDRExchanges;OtherDRServices")
Call pageCheck_WebEditOR("MasterFile","DR Profile","Name;Type;De
positary;EstimatedFirstYearRevenue;Successor;UnsponsoredConversion;Comments;Orig
in;SU;EffectiveDate;TerminationDate;TerminationReason;SingleListed")
Call pageCheck_ImageOR("MasterFile","DR Profile","CADREvents;PreviewProf
ile;ProfileAudit;RelatedProfiles;SaveProfile")
Call pageCheck_WebListOR("MasterFile","DR Profile","SecurityDesc
ription;QualifiedForeignCorp;Status;DateDividendQualified")
Browser("MasterFile").Page("DR Profile").WebElement("CUSIPSummar
yAdd").Click
Call pageCheck_WebEditOR("MasterFile","DR Profile","Type;CUSIP;D
RExchange;DRTickerSymbol;RatioDRs;RatioUnderlyingShares;CurrentCUSIP")
Browser("MasterFile").Page("DR Profile").WebElement("Offerings")
.Click
Call chkMFProfileHeader("MasterFile","DR Profile","Offerings","D
RProfileOfferingsFields")
Browser("MasterFile").Page("DR Profile").WebElement("AdditionalD
RExchanges").Click
Call chkMFProfileHeader("MasterFile","DR Profile","AdditionalDRE
xchanges","DRProfileAdditionalDRExchangeFileds")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click on
the Name link in the Name Column","DR Profile screen is displayed with all field
s"
Else
Reporter.ReportEvent micFail,"Step 10: Click on
the Name link in the Name Column","DR Profile screen is not displayed with all f
ields"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile","DR Profile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #12
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 12: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #13
Call SelectCAIsinInReport("MasterFile",DataTable.Value("ReportNa
me","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #15
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 15: Cli
ck on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search opens"
Else
Reporter.ReportEvent micFail,"Step 14 To 15: Cli
ck on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search not opens"
Environment.Value("TestCase_Log")="True"
End If
'Step #16
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 16: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #17
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 17: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #18
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 18: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #19 To Step #21
Call SelectCABooksClosed("MasterFile",DataTable.Value("ReportNam
e","BooksClosed"),"Item",DataTable.Value("BooksClosedReason","BooksClosed"))
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP=Trim(Browser("MasterFile").Page("Books Closed").WebTabl
e("CUSIP").GetCellData(1,2))
strCUSIPName=Trim(Browser("MasterFile").Page("Books Closed").Web
Table("CUSIPNameTable").GetCellData(1,1))
strCreated=Trim(Browser("MasterFile").Page("Books Closed").WebEl
ement("CreatedHeader").GetROProperty("innertext"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19 To 21: In
the Books Closed screen, note all the fields and their values in the Books Close
d/Open section and also note the created/updated Detail(Audit log)","Values are
noted successfully"
Else
Reporter.ReportEvent micFail,"Step 19 To 21: In
the Books Closed screen, note all the fields and their values in the Books Clos
ed/Open section and also note the created/updated Detail(Audit log)","Values are
not noted successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #22
Call select_Menu("MasterFile","Books Closed","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 22: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #23
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23: Click on
the Cusip link","The Cusip profile is displayed"
Else
Reporter.ReportEvent micFail,"Step 23: Click on
the Cusip link","The Cusip profile is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #24 To Step #25
Browser("MasterFile").Page("CUSIP Profile").WebElement("BooksClo
sedLink").Click
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP1=Trim(Browser("MasterFile").Page("Books Closed").WebTab
le("CUSIP").GetCellData(1,2))
strCUSIPName1=Trim(Browser("MasterFile").Page("Books Closed").We
bTable("CUSIPNameTable").GetCellData(1,1))
strCreated1=Trim(Browser("MasterFile").Page("Books Closed").WebE
lement("CreatedHeader").GetROProperty("innertext"))
If intCUSIP1=intCUSIP And strCUSIPName1=strCUSIPName And strCre
ated=strCreated1 Then
Reporter.ReportEvent micPass,"Verify the cusip D
etail are matched or not","Cusip Detail are matched"
Else
Reporter.ReportEvent micFail,"Verify the cusip D
etail are matched or not","Cusip Detail are not matched"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 24 To 25: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is matched"
Else
Reporter.ReportEvent micFail,"Step 24 To 25: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is not matched"
Environment.Value("TestCase_Log")="True"
End If
'Step #26
Call select_Menu("MasterFile","Books Closed","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 26: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 26: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC4()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedforCancellationApplyReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Call MultipleFilterCriteria("MasterFile",DataTable.Value("Report
Name","BooksClosed"),DataTable.Value("FilterColumn","BooksClosed"),DataTable.Val
ue("FilterExpression","BooksClosed"),DataTable.Value("FilterVal","BooksClosed"),
DataTable.Value("FilterCondition","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC5()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedforCancellationApplyReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 1: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #3
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in ascending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in ascending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in descending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in descending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in ascending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in ascending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in descending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in descending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #10 To Step #11
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("DRTypeHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","DR Type","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 To 11 : In
the results displayed, click on the 'DR Type' header","The results should be so
rted in ascending Order based on DR Type"
Else
Reporter.ReportEvent micFail,"Step 10 To 11 : In
the results displayed, click on the 'DR Type' header","The results should not b
e sorted in ascending Order based on DR Type"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To Step #13
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("DRTypeHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","DR Type","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13 : In
the results displayed, click on the 'DR Type' header","The results should be so
rted in descending Order based on DR Type"
Else
Reporter.ReportEvent micFail,"Step 12 To 13 : In
the results displayed, click on the 'DR Type' header","The results should not b
e sorted in descending Order based on DR Type"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #16
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #17
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Verificat
ion of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 17: Verificat
ion of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #18 To Step #20
Call MultipleSortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is working correctl
y"
Else
Reporter.ReportEvent micFail,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is not working corr
ectly"
End If
'Step #21
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC6()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedforCancellationApplyReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("NameHeader").Click
strExcelPath=Report_SaveExcel("MasterFile",DataTable.Value("Repo
rtName","BooksClosed"),"SaveAsExcel","BooksClosed")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is workin
g successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is not wo
rking successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC7()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen displayed with
report name links"
Else
Reporter.ReportEvent micFail,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen not displayed w
ith report name links"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedPendingReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 3: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAIsinInReport("MasterFile",DataTable.Value("ReportNa
me","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Wait(2)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Wait(2)
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5To Step #6
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIP","BooksClosed"),"index:=0"
).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search opens"
Else
Reporter.ReportEvent micFail,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search not opens"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
strOption1=DataTable.Value("CUSIPName","BooksClosed")
strOption2=Replace(strOption1,"(","\(")
strOption=Replace(strOption2,")","\)")
Wait(2)
Browser("MasterFIle").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:= " & strOption,"index:=0").Click
Wait(2)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail;Managem
entReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Wait(2)
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item",DataTable.Value("DRName","BooksClosed"))
Wait(2)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Wait(2)
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #11 To step #13
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
strOption1=DataTable.Value("CUSIPName","BooksClosed")
strOption2=Replace(strOption1,"(","\(")
strOption=Replace(strOption2,")","\)")
Wait(2)
Browser("MasterFIle").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:= " & strOption,"index:=0").Click
Wait(2)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail;Managem
entReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Wait(2)
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #16 To Step #18
Call SelectCABooksClosedPendingReport("MasterFile",DataTable.Val
ue("ReportName","BooksClosed"),"Item",DataTable.Value("BooksClosedReason","Books
Closed"))
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Environment.Value("Execution_Log")="False"
End If
intCUSIP=Trim(Browser("MasterFile").Page("Books Closed").WebTabl
e("CUSIP").GetCellData(1,2))
strCUSIPName=Trim(Browser("MasterFile").Page("Books Closed").Web
Table("CUSIPNameTable").GetCellData(1,1))
strCreated=Trim(Browser("MasterFile").Page("Books Closed").WebEl
ement("CreatedHeader").GetROProperty("innertext"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Close
d/Open section and also note the created/updated Detail(Audit log)","Values are
noted successfully"
Else
Reporter.ReportEvent micFail,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Clos
ed/Open section and also note the created/updated Detail(Audit log)","Values are
not noted successfully"
Call captureScreenshot()
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call select_Menu("MasterFile","Books Closed","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
strOption1=DataTable.Value("CUSIPName","BooksClosed")
strOption2=Replace(strOption1,"(","\(")
strOption=Replace(strOption2,")","\)")
Wait(2)
Browser("MasterFIle").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:= " & strOption,"index:=0").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: Click on
the Cusip link","The Cusip profile is displayed"
Else
Reporter.ReportEvent micFail,"Step 20: Click on
the Cusip link","The Cusip profile is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #21 To Step #22
Browser("MasterFile").Page("CUSIP Profile").WebElement("index:=9
2").Click
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP1=Trim(Browser("MasterFile").Page("Books Closed").WebTab
le("CUSIP").GetCellData(1,2))
strCUSIPName1=Trim(Browser("MasterFile").Page("Books Closed").We
bTable("CUSIPNameTable").GetCellData(1,1))
strCreated1=Trim(Browser("MasterFile").Page("Books Closed").WebE
lement("CreatedHeader").GetROProperty("innertext"))
If intCUSIP1=intCUSIP And strCUSIPName1=strCUSIPName And strCre
ated=strCreated1 Then
Reporter.ReportEvent micPass,"Verify the cusip D
etail are matched or not","Cusip Detail are matched"
Else
Reporter.ReportEvent micFail,"Verify the cusip D
etail are matched or not","Cusip Detail are not matched"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is matched"
Else
Reporter.ReportEvent micFail,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is not matched"
Environment.Value("TestCase_Log")="True"
End If
'Step #23
Call select_Menu("MasterFile","Books Closed","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC8()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedPendingReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Call MultipleFilterCriteria("MasterFile",DataTable.Value("Report
Name","BooksClosed"),DataTable.Value("FilterColumn","BooksClosed"),DataTable.Val
ue("FilterExpression","BooksClosed"),DataTable.Value("FilterVal","BooksClosed"),
DataTable.Value("FilterCondition","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC9()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedPendingReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step : Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 1: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #3
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in ascending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in ascending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in descending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in descending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in ascending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in ascending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in descending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in descending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #10 To Step #11
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("CloseDateHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in ascending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in ascending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To Step #13
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("CloseDateHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in descending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in descending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #16
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #17
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Verificat
ion of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 17: Verificat
ion of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #18 To Step #20
Call MultipleSortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is working correctl
y"
Else
Reporter.ReportEvent micFail,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is not working corr
ectly"
End If
'Step #21
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC10()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedPendingReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("TransactionTypeHeader").Click
strExcelPath=Report_SaveExcel("MasterFile",DataTable.Value("Repo
rtName","BooksClosed"),"SaveAsExcel","BooksClosed")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is workin
g successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is not wo
rking successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC11()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen displayed with
report name links"
Else
Reporter.ReportEvent micFail,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen not displayed w
ith report name links"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on B
ooks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is ge
nerated"
Else
Reporter.ReportEvent micFail,"Step 3: Click on B
ooks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is no
t generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Wait(5)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail;Managem
entReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5To Step #6
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIP","BooksClosed"),"index:=0"
).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search opens"
Else
Reporter.ReportEvent micFail,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search not opens"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail;Managem
entReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #11 To step #13
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement("html ta
g:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index:=0").Cl
ick
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
;ManagementReport")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
Browser("MasterFile").Page("CUSIP Profile").WebElement("Manageme
ntReport").Click
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","ReportSta
rtDate")
Call pageCheck_WebListOR("MasterFile","CUSIP Profile","ShowPreRe
lease;ShowInstitutional;CUSIPLinking;GenerateReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #16 To Step #18
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item",DataTable.Value("BooksClosedReason","BooksClosed"))
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP=Trim(Browser("MasterFile").Page("Books Closed").WebTabl
e("CUSIP").GetCellData(1,2))
strCUSIPName=Trim(Browser("MasterFile").Page("Books Closed").Web
Table("CUSIPNameTable").GetCellData(1,1))
strCreated=Trim(Browser("MasterFile").Page("Books Closed").WebEl
ement("CreatedHeader").GetROProperty("innertext"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Close
d/Open section and also note the created/updated Detail(Audit log)","Values are
noted successfully"
Else
Reporter.ReportEvent micFail,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Clos
ed/Open section and also note the created/updated Detail(Audit log)","Values are
not noted successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call select_Menu("MasterFile","Books Closed","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: Click on
the Cusip link","The Cusip profile is displayed"
Else
Reporter.ReportEvent micFail,"Step 20: Click on
the Cusip link","The Cusip profile is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #21 To Step #22
Browser("MasterFile").Page("CUSIP Profile").WebElement("index:=9
2").Click
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP1=Trim(Browser("MasterFile").Page("Books Closed").WebTab
le("CUSIP").GetCellData(1,2))
strCUSIPName1=Trim(Browser("MasterFile").Page("Books Closed").We
bTable("CUSIPNameTable").GetCellData(1,1))
strCreated1=Trim(Browser("MasterFile").Page("Books Closed").WebE
lement("CreatedHeader").GetROProperty("innertext"))
If intCUSIP1=intCUSIP And strCUSIPName1=strCUSIPName And strCre
ated=strCreated1 Then
Reporter.ReportEvent micPass,"Verify the cusip D
etail are matched or not","Cusip Detail are matched"
Else
Reporter.ReportEvent micFail,"Verify the cusip D
etail are matched or not","Cusip Detail are not matched"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is matched"
Else
Reporter.ReportEvent micFail,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is not matched"
Environment.Value("TestCase_Log")="True"
End If
'Step #23
Call select_Menu("MasterFile","Books Closed","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC12()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","BooksClos
ed"),"BooksClosed","ReportLinks")
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","BooksClo
sed"),"BooksClosedReport")
Wait(10)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is gen
erated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is n
ot generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Call MultipleFilterCriteria("MasterFile",DataTable.Value("Report
Name","BooksClosed"),DataTable.Value("FilterColumn","BooksClosed"),DataTable.Val
ue("FilterExpression","BooksClosed"),DataTable.Value("FilterVal","BooksClosed"),
DataTable.Value("FilterCondition","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC13()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","BooksClos
ed"),"BooksClosed","ReportLinks")
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","BooksClo
sed"),"BooksClosedReport")
Wait(10)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step : Click on Bo
oks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is gen
erated"
Else
Reporter.ReportEvent micFail,"Step 1: Click on B
ooks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is no
t generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #3
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item","CUSIP")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","BooksClosed
"), "Item","CUSIP","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in ascending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in ascending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item","CUSIP")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","BooksClose
d"), "Item","CUSIP","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in descending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in descending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item","Name")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in ascending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in ascending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Call clickRecordinTableDOM("MasterFile",DataTable.Value("Report
Name","BooksClosed"),"Item","Name")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in descending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in descending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #10 To Step #11
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item","Close Date")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in ascending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in ascending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To Step #13
Call clickRecordinTableDOM("MasterFile",DataTable.Value("Report
Name","BooksClosed"),"Item","Close Date")
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in descending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in descending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #16
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #17
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Verificat
ion of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 17: Verificat
ion of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #18 To Step #20
Call MultipleSortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is working correctl
y"
Else
Reporter.ReportEvent micFail,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is not working corr
ectly"
End If
'Step #21
Call select_MenuOR("MasterFile",DataTable.Value("ReportName","Bo
oksClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
RepoBrowser("MasterFile").Page("Books Closed Rep
ort").WebElement("HOME_2").Click
rter.ReportEvent micFail,"Step 21: Under Reports menu select Books Closed","DR h
ome page is not displayed"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC14()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","BooksClos
ed"),"BooksClosed","ReportLinks")
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"BooksClosedReport")
Wait(10)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is gen
erated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed Report",DataTable.Value("ReportName","BooksClosed") & " report is no
t generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Call clickRecordinTableDOM("MasterFile",DataTable.Value("ReportN
ame","BooksClosed"),"Item","Transaction Type")
strExcelPath=Report_SaveExcel("MasterFile",DataTable.Value("Repo
rtName","BooksClosed"),"SaveAsExcel","BooksClosed")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is workin
g successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is not wo
rking successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_MenuOR("MasterFile",DataTable.Value("ReportName","Bo
oksClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC15()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #2
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen displayed with
report name links"
Else
Reporter.ReportEvent micFail,"Step 1 To 2: Under
Reports menu select Books Closed","Reports - Pre-defined Screen not displayed w
ith report name links"
Environment.Value("TestCase_Log")="True"
End If
'Step #3
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("TimeStamp").GetROProperty("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"OrphanCUSIPBooksClosedReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 3: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #4
Call SelectCAIsinInReport("MasterFile",DataTable.Value("ReportNa
me","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Wait(5)
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 4: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #5To Step #6
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIP","BooksClosed"),"index:=0"
).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search opens"
Else
Reporter.ReportEvent micFail,"Step 5 To 6: Click
on PROFILE Menu ,Select CUSIP","Profile - CUSIP Search not opens"
Environment.Value("TestCase_Log")="True"
End If
'Step #7
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all f
ields"
Else
Reporter.ReportEvent micFail,"Step 7: Click on t
he CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with a
ll fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #8
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 8: Under Repo
rts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #9
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 9: Click on "
& DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Boo
ksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #10
Call SelectCAIsinInReport("MasterFile",DataTable.Value("ReportNa
me","BooksClosed"),"Item",DataTable.Value("CUSIP","BooksClosed"))
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 10: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #11 To step #13
Call select_Menu("MasterFile","CUSIP Profile","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement("html ta
g:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index:=0").Cl
ick
Call pageCheck_WebElementOR("MasterFile","CUSIP Profile","Detail
")
Call pageCheck_WebEditOR("MasterFile","CUSIP Profile","Name;Brie
fName;HomeMarketCountry;RatioDRs;RatioUnderlyingShares;DRTickerSymbol;DRExchange
;DRIsin;DRCommonCode;CommonDepository;PricingSEDOL;UnderlyingSecurity;Bifurcated
;SU;Depositary;F6Threshold;EffectiveFlag;CUSIP;Type;Price;DRSedol;NomineeAccount
;ShareBase;UnderlyingISIN;UnderlyingSEDOL;MultipleUnderlyingFlag")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is displayed with all
fields"
Else
Reporter.ReportEvent micFail,"Step 13: Click on
the CUSIP link in the CUSIP Column","CUSIP Profile screen is not displayed with
all fields"
Environment.Value("TestCase_Log")="True"
End If
'Step #14
Call select_Menu("MasterFile","CUSIP Profile",DataTable.Value("M
enuPath","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page is displayed"
Else
Reporter.ReportEvent micFail,"Step 14: Under Rep
orts menu select Books Closed","Reports - Pre-defined Page not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #15
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","
Report",DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("Repo
rtName","BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 15: Click on
" & DataTable.Value("ReportName","BooksClosed"),DataTable.Value("ReportName","Bo
oksClosed") & " report is notgenerated"
Environment.Value("TestCase_Log")="True"
End If
'Step #16 To Step #18
Call SelectCABooksClosedPendingReport("MasterFile",DataTable.Val
ue("ReportName","BooksClosed"),"Item",DataTable.Value("BooksClosedReason","Books
Closed"))
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP=Trim(Browser("MasterFile").Page("Books Closed").WebTab
le("CUSIP").GetCellData(1,2))
strCUSIPName=Trim(Browser("MasterFile").Page("Books Closed").Web
Table("CUSIPNameTable").GetCellData(1,1))
strCreated=Trim(Browser("MasterFile").Page("Books Closed").WebEl
ement("CreatedHeader").GetROProperty("innertext"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Close
d/Open section and also note the created/updated Detail(Audit log)","Values are
noted successfully"
Else
Reporter.ReportEvent micFail,"Step 16 To 18: In
the Books Closed screen, note all the fields and their values in the Books Clos
ed/Open section and also note the created/updated Detail(Audit log)","Values are
not noted successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #19
Call select_Menu("MasterFile","Books Closed","Profile;CUSIP")
Browser("MasterFile").Page("Profile - CUSIP Search").WebEdit("CU
SIP").Set DataTable.Value("CUSIP","BooksClosed")
Browser("MasterFile").Page("Profile - CUSIP Search").Image("Sear
ch").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 19: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #20
Browser("MasterFile").Page("Profile - CUSIP Search").WebElement(
"html tag:=TD","innertext:=" & DataTable.Value("CUSIPName","BooksClosed"),"index
:=0").Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20: Click on
the Cusip link","The Cusip profile is displayed"
Else
Reporter.ReportEvent micFail,"Step 20: Click on
the Cusip link","The Cusip profile is not displayed"
Environment.Value("TestCase_Log")="True"
End If
'Step #21 To Step #22
Wait(10)
Browser("MasterFile").Page("CUSIP Profile").WebElement("index:=9
2").Click
strBooksClosed=Trim(Browser("MasterFile").Page("Books Closed").W
ebElement("BooksClosed").GetROProperty("innertext"))
If strBooksClosed="Books Closed" Then
Reporter.ReportEvent micPass,"Verify books close
d page is opened or not","Books closed page is opened"
Else
Reporter.ReportEvent micFail,"Verify books close
d page is opened or not","Books closed page is not opened"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
intCUSIP1=Trim(Browser("MasterFile").Page("Books Closed").WebTa
ble("CUSIP").GetCellData(1,2))
strCUSIPName1=Trim(Browser("MasterFile").Page("Books Closed").We
bTable("CUSIPNameTable").GetCellData(1,1))
strCreated1=Trim(Browser("MasterFile").Page("Books Closed").WebE
lement("CreatedHeader").GetROProperty("innertext"))
If intCUSIP1=intCUSIP And strCUSIPName1=strCUSIPName And strCreated=strC
reated1 Then
Reporter.ReportEvent micPass,"Verify the cusip D
etail are matched or not","Cusip Detail are matched"
Else
Reporter.ReportEvent micFail,"Verify the cusip D
etail are matched or not","Cusip Detail are not matched"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is matched"
Else
Reporter.ReportEvent micFail,"Step 21 To 22: In
the Books Closed screen, verify all the fields and their values in the Books Clo
sed/Open section and also note the created/updated Detail(Audit log). They shoul
d match with the ones noted above","Data is not matched"
Environment.Value("TestCase_Log")="True"
End If
'Step #23
Call select_Menu("MasterFile","Books Closed","Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is displayed"
Else
Reporter.ReportEvent micFail,"Step 23: Navigate
to the Profile-> CUSIP screen and enter the Cusip number in the CUSIP field and
click search","The result is not displayed"
Environment.Value("TestCase_Log")="True"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC16()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"OrphanCUSIPBooksClosedReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Call MultipleFilterCriteria("MasterFile",DataTable.Value("Report
Name","BooksClosed"),DataTable.Value("FilterColumn","BooksClosed"),DataTable.Val
ue("FilterExpression","BooksClosed"),DataTable.Value("FilterVal","BooksClosed"),
DataTable.Value("FilterCondition","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 7 To 10 : Ver
ify the Filter criteria","Filter Criteria is not working correctly"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC17()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"OrphanCUSIPBooksClosedReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step : Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 1: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #2 To Step #3
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in ascending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 2 To 3 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in ascending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #4 To Step #5
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("CUSIPHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","CUSIP","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should be sorted
in descending Order based on CUSIP"
Else
Reporter.ReportEvent micFail,"Step 4 To 5 : In t
he results displayed, click on the 'CUSIP' header","The results should not be so
rted in descending Order based on CUSIP"
Environment.Value("TestCase_Log")="True"
End If
'Step #6 To Step #7
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in ascending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 6 To 7 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in ascending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #8 To Step #9
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("NameHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Name","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should be sorted
in descending Order based on Name"
Else
Reporter.ReportEvent micFail,"Step 8 To 9 : In t
he results displayed, click on the 'Name' header","The results should not be sor
ted in descending Order based on Name"
Environment.Value("TestCase_Log")="True"
End If
'Step #10 To Step #11
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("CloseDateHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Ascending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in ascending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 10 To 11 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in ascending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #12 To Step #13
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksC
losed")).WebElement("CloseDateHeader").Click
Call chkSortOrder("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"), "Item","Close Date","Descending")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should be
sorted in descending Order based on Close Date"
Else
Reporter.ReportEvent micFail,"Step 12 To 13 : In
the results displayed, click on the 'Close Date' header","The results should no
t be sorted in descending Order based on Close Date"
Environment.Value("TestCase_Log")="True"
End If
'Step #14 To Step #16
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 14 To 16: Ver
ification of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #17
Call SortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17: Verificat
ion of Sort criteria","Sort criteria is working correctly"
Else
Reporter.ReportEvent micFail,"Step 17: Verificat
ion of Sort criteria","Sort criteria is not working correctly"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("BooksClosed").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step #18 To Step #20
Call MultipleSortCriteria("MasterFile",DataTable.Value("ReportName","Boo
ksClosed"),"Sort",DataTable.Value("SortColumn","BooksClosed"),DataTable.Value("S
ortOrder","BooksClosed"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is working correctl
y"
Else
Reporter.ReportEvent micFail,"Step 18 To 20: Ver
ification of Multiple Sort criteria","Multiple Sort criteria is not working corr
ectly"
End If
'Step #21
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 21: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++
Public Function MFReportsBooksClosed_TC18()
Environment.Value("TestCase_Log")="True"
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
'Step #1 To Step #6
Call check_Menu("MasterFile","MasterFile",DataTable.Value("MenuP
ath","BooksClosed"))
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","BooksClosed"))
Call chkPreDefinedReports("MasterFile","Reports - Pre-defined","Report",
DataTable.Value("ReportNamesString","BooksClosed"),DataTable.Value("ReportName",
"BooksClosed"))
Call fnc_wait(Browser("MasterFile").Page(DataTable.Value("Report
Name","BooksClosed")).WebElement("TimeStamp"))
Call chkReportLinks("MasterFile",DataTable.Value("ReportName","B
ooksClosed"),"BooksClosed","ReportLinks")
DateTimetext=Trim(Browser("MasterFile").Page(DataTable.Value("ReportName
","BooksClosed")).WebElement("html tag:=SPAN","innertext:=As of.*").GetROPropert
y("outertext"))
If DateTimetext<>"" Then
Reporter.ReportEvent micPass,"Verify the Date an
d Timestamp of the report",DateTimetext&" is displayed successfully"
Else
Reporter.ReportEvent micFail,"Verify the Date an
d Timestamp of the report","Date and Timestamp is not displayed successfully"
Call captureScreenshot()
Environment.Value("Execution_Log")="False"
Environment.Value("TestCase_Log")="False"
End If
Call chkReportHeader("MasterFile",DataTable.Value("ReportName","
BooksClosed"),"OrphanCUSIPBooksClosedReport")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6 Click on Bo
oks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Book
sClosed") & " report is generated"
Else
Reporter.ReportEvent micFail,"Step 6: Click on B
ooks Closed for Cancellation and Apply Report",DataTable.Value("ReportName","Boo
ksClosed") & " report is not generated"
Environment.Value("TestCase_Log")="True"
End If
'Step #7 To Step #10
Browser("MasterFile").Page(DataTable.Value("ReportName","BooksCl
osed")).WebElement("TransactionTypeHeader").Click
strExcelPath=Report_SaveExcel("MasterFile",DataTable.Value("Repo
rtName","BooksClosed"),"SaveAsExcel","BooksClosed")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is workin
g successfully"
Else
Reporter.ReportEvent micFail,"Step 6 To 10: Clic
k on Save as Excel link and verify the process","Save as Excel process is not wo
rking successfully"
Environment.Value("TestCase_Log")="True"
End If
'Step #11
Call select_Menu("MasterFile",DataTable.Value("ReportName","Book
sClosed"),"Home;DR Home")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11: Under Rep
orts menu select Books Closed","DR home page is displayed"
Else
Reporter.ReportEvent micFail,"Step 11: Under Rep
orts menu select Books Closed","DR home page is not displayed"
End If
End Function

You might also like