Professional Documents
Culture Documents
==========================
' Name of the Script : Master File Profile HOLDR
' Scope of the Script : This test script covers 16 te
st cases related to the MF Profile --> HOLDR
' Author : Shyam H D
' Description : Master File Profile HOLDR
' Date and / or Version : 05-12-2008,version 1.0
'===============================================================================
============================
Sub MFProfileHOLDR()
'****Declaration of Environmental Variable
Environment.Value("StepExecution_Log") = "True"
Environment.Value("strSheetName") = "HOLDR"
'''''''''Test case count
Const TC_COUNT = 16
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 "HOLDR"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","HOL
DR","HOLDR"
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"), "
", "", "")
''****Entering username and password and login into the masterfile appli
cation
'Call login("MasterFile","Login Page","User","MFLogin")
Environment.Value("AppURL") = DataTable.Value("URL","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("HOLDR").SetCurrentRow(Environment.Value("DAT
ATABLE_ROW"))
'***************************************** TC Driver Strat *****
**************************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
Environment.Value("TestCase_Log")= "True"
If DataTable("TestRunFlag","HOLDR")="Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TES
T CASE - '" & DataTable("TestCaseID","HOLDR") & "' ########### ","Execution of T
est Case '" & DataTable("TestCaseDesc","HOLDR") & "' Started"
strFuncName = "MFProfileHOLDR_TC" & intTCCount &
"()" ''Formation of function name
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True"
Then
Call Execution_log("",Datatable.
Value("TestCaseID", "HOLDR"), Datatable.Value("TestCaseDesc", "HOLDR"), "PASS")
Else
Call Execution_log("",Datatable.
Value("TestCaseID", "HOLDR"), Datatable.Value("TestCaseDesc", "HOLDR"), "FAIL")
End If
Reporter.ReportEvent micDone,"######### END OF T
EST CASE - '" & DataTable("TestCaseID","HOLDR") & "###########","The Test Case E
xecution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","HOLDR"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("HOLDR").SetCurrentRow(Environment.Va
lue("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","HOLDR"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment
.Value("DATATABLE_ROW") + 1
DataTable.GetSheet("HOLDR").SetCurrentRow(Enviro
nment.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","HOLDR
"))
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
End Sub
'***************************************** TC Driver End *******
************************************************
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileHOLDR_TC1()
Call invoke_URL("MasterFile","Login Page",Environment.Value("App
URL"))
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_pas
sword","")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the L
ogin Page is Dispalyed or NOT","The Login Page is Dispalyed successfully with th
e Required Field"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the L
ogin Page is Dispalyed or NOT","The Login Page is NOT Dispalyed successfully wit
h the Required Field"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call login("MasterFile","Login Page","User","MFLogin")
' Step 2:
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("NormalUser")
)
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying the DR H
ome Page","The DR Home Page is displayed successfully with Home Page Links and t
he User Details"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying the DR H
ome Page","The DR Home Page is NOT displayed successfully with Home Page Links a
nd the User Details"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step : 3
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call chkMFCAHomePage("MasterFile","MasterFile",DataTable.Value("MenuName
","HomePageVerification"),Environment.Value("NormalUser"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 3: Check for
MF Home Page", "The Required Menu Items and the Version of the Application is d
isplayed correctly"
Else
Reporter.ReportEvent micFail, "Step 3: Check for
MF Home Page", "The Required Menu Items and the Version of the Application is N
OT displayed correctly"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 4:
Call check_Menu("MasterFile", "MasterFile", DataTable.Value("Sel
ectMenu", "HOLDR"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 4: Check for
HOLDR Sub Menu", "The HOLDR Sub Menu is present in the Profile Menu"
Else
Reporter.ReportEvent micFail, "Step 4: Check for
HOLDR Sub Menu", "The HOLDR Sub Menu is NOT present in the Profile Menu."
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 5:
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("Se
lectMenu", "HOLDR"))
' Check for the fields present in the Profile - HOLDR Search Scr
een
Call chkMFProfile_HOLDRPage("MasterFile", "Profile - HOLDR Profi
le", DataTable.Value("HOLDRName", "HOLDR"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 5 & 6 : Chec
k for Fields present in Profile - HOLDR Search Page & Click on HOLDR", "The Name
of the HOLDR is dispalyed as " & DataTable.Value("HOLDRName", "HOLDR") & " with
6 Tabs"
Else
Reporter.ReportEvent micFail, "Step 5 & 6 : Chec
k for Fields present in Profile - HOLDR Search Page & Click on HOLDR", "The Deta
ils in Profile - HOLDR Profile Page is NOT Dispalyed Sucessfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
blnExistFlag = "True"
' Selecting the Details Tab and Chekin for the Fields Present
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Detail")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "Details_Name;Details_BriefName;Details_USTickerSymbol;Details_IntlUSTickerSym
bol;Details_USExchange;Details_IntlExchange;Details_USClearingHouse;Details_Intl
ClearingHouse;Details_MinimumShareSlot;Details_TASAccountNumber;Details_SECFileN
umber;Details_SECFileDate;Details_CUSIP;Details_Price;Details_EffectiveDate;Deta
ils_TerminationDate;Details_TerminationReason;Details_AgreementTerminationDate;D
etails_ISIN;Details_CID;Details_LocalTax")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in Detail Tab", "The Required Fields are Present in Detail Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in Detail Tab", "The Required Fields are NOT Present in Detail Ta
b"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Selecting the Constituent Tab and checking for the Fields pres
ent
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Constituen
t")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "ConstituentDetails_Name;ConstituentDetails_ShareAmount;ConstituentDetails_Ini
tialWeight;ConstituentDetails_InclusionDate;ConstituentDetails_RemovalDate;Const
ituentDetails_CUSIP;ConstituentDetails_Price;ConstituentDetails_SecurityType;Con
stituentDetails_RemovalReason;CorporateActionDetails_CAType;CorporateActionDetai
ls_CADate;CorporateActionDetails_CACUSIPNumber;CorporateActionDetails_CACUSIPNam
e;CorporateActionDetails_CAComments")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in Constituent Tab", "The Required Fields are Present in Constitu
ent Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in Constituent Tab", "The Required Fields are NOT Present in Cons
tituent Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Select the Cash Delivery Tab and cheking for the Fields Presen
t
Call click_WebElement("MasterFile","Profile - HOLDR Profile","CashDelive
ry")
Call pageCheck_WebElementinTable("MasterFile", "Profile - HOLDR
Profile", "Name;CUSIP;Start Date;End Date;Rate/Share;Active Flag","")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "CashDeliveryDetails_Name;CashDeliveryDetails_StartDate;CashDeliveryDetails_En
dDate;CashDeliveryDetails_Description;CashDeliveryDetails_Comments;CashDeliveryD
etails_CUSIP;CashDeliveryDetails_Rate")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "CADetailsCashDelivery_CAType;CADetailsCashDelivery_CADate;CADetailsCashDelive
ry_CACUSIP;CADetailsCashDelivery_CACUSIPName")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in Cash Delivery Tab", "The Required Fields are Present in Cash D
elivery Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in Cash Delivery Tab", "The Required Fields are NOT Present in Ca
sh Delivery Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Select the GICSTab and cheking for the Fields Present
Call click_WebElement("MasterFile","Profile - HOLDR Profile","GI
CSCode")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "GICSCode")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in GICS Tab", "The Required Fields are Present in GICS Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in GICS Tab", "The Required Fields are NOT Present in GICS Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Select the Fee Tab and cheking for the Fields Present
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Fe
e")
Call pageCheck_WebElementinTable("MasterFile", "Profile - HOLDR
Profile", "Fee Type;Fee Rate","")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "Fee_Issuance;Fee_Cancellation")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in Fee Tab", "The Required Fields are Present in Fee Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in Fee Tab", "The Required Fields are NOT Present in Fee Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Select the Legal Tab and cheking for the Fields Present
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Le
gal")
Call pageCheck_WebEditOR("MasterFile", "Profile - HOLDR Profile"
, "Legal_LawFirmInitialDepositor;Legal_LawFirmBNY")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Checking for the
Fields Present in Legal Tab", "The Required Fields are Present in Legal Tab"
Else
Reporter.ReportEvent micFail, "Checking for the
Fields Present in Legal Tab", "The Required Fields are NOT Present in Legal Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
If blnExistFlag = "True" Then
Reporter.ReportEvent micPass, "Step 7: Checking
for the Fields Present in Various Tabs", "The Required Fields are Present in the
ir Respective tabs"
Else
Reporter.ReportEvent micFail, "Step 7: Checking
for the Fields Present in Various Tabs", "The Required Fields are NOT Present in
their Respective tabs"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
' Modifying the Detail Tab of an Existing HOLDR
Public Function MFProfileHOLDR_TC2()
'Step 1: Selecting the Details Tab and Cheking for the Values in the De
tail Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Detail")
strAppValues = GetAllFieldValueInTable("MasterFile","Profile - HOLDR Pro
file","Detail","WebEdit","INPUT")
If strAppValues <> "" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Values prese
nt in the Detail Tab","The Default Values are Present in the respective fields i
n Detail Tab"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying the Values prese
nt in the Detail Tab","The Default Values are NOT Present in the respective fiel
ds in Detail Tab"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step2
Call FillHOLDRProfileDetailsTab("MasterFile", "Profile - HOLDR Profile")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Detail", DataTabl
e.Value("Details_FieldModified", "HOLDR"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Check for the Pending App
roval Flag Next to the Field Changed", "The Pending Approval Flag is Dispalyed
Next to the Field Modified"
Else
Reporter.ReportEvent micFail, "Step 2: Check for the Pending App
roval Flag Next to the Field Changed", "The Pending Approval Flag is NOT Dispal
yed Next to the Field Modified"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
' Modifying the Constituent Tab of an Existing HOLDR
Public Function MFProfileHOLDR_TC3()
' Step 1:
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Constituen
t")
intRowCount = Browser("MasterFile").Page("Profile - HOLDR Profile").WebTable
("Constituent").RowCount
If intRowCount < 3 Then
Reporter.ReportEvent micFail,"Verifying the Number Constituent",
"There are No Constituent to Select and hence can't proceed furthur"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call SetChkHOLDRConstitutentTab("MasterFile", "Profile - HOLDR Profile",
"Constituent", "Constituent_RadioGroup", DataTable.Value("Constituent_Name", "H
OLDR"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the Default V
alues of the Selected Constituent is displayed or NOT","The Default Values of t
he Constituent " & DataTable.Value("Constituent_Name", "HOLDR") & " is Displayed
Successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the Default V
alues of the Selected Constituent is displayed or NOT","The Default Values of th
e Constituent " & DataTable.Value("Constituent_Name", "HOLDR") & " is NOT Displa
yed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 2:
'Call FillHOLDRProfileConstituentTab("MasterFile","Profile - HOLDR Profi
le")
'ConstituentDetails_ShareAmount
strOldInitialWeight = get_WebEdit_Value("MasterFile","Profile - HOLDR Pr
ofile","ConstituentDetails_InitialWeight")
strNewInitialWeight = strOldInitialWeight + 0.1
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Constitue
ntDetails_InitialWeight",strNewInitialWeight)
Call click_Image("MasterFile","Profile - HOLDR Profile","Save")
Wait(2)
strConstituentName = get_WebEdit_Value("MasterFile","Profile - HOLDR Pro
file","ConstituentDetails_Name")
If UCase(Trim(strConstituentName)) <> UCase(DataTable.Value("Constituent
_Name","HOLDR")) Then
Reporter.ReportEvent micWarning,"Verifying if the Modified Const
ituent is Selected or Not","The Modified Constituent ' " & DataTable.Value("Con
stituent_Name","HOLDR") & " ' is Not Selected"
Reporter.ReportEvent micWarning,"Verifying if the Modified Const
ituent is Selected or Not","Selecting theModified Constituent ' " & DataTable.V
alue("Constituent_Name","HOLDR") & " ' to Proceed Execution"
Call captureScreenShot()
Call SelectRadioButton_ProfileHOLDR("MasterFile","Profile - HOLD
R Profile","Constituent","Constituent_RadioGroup",DataTable.Value("Constituent_N
ame","HOLDR"))
Wait(2)
End If
Call chkFlagImageinTable("MasterFile", "Profile - HOLDR Profile", "Constitue
nt", DataTable.Value("Constituent_Name", "HOLDR"), "Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Check for the Modified Fl
ag for the selected Constituent","The Modified Flag is displayed for the Constit
uent " & DataTable.Value("Constituent_Name", "HOLDR")
Else
Reporter.ReportEvent micFail, "Step 2: Check for the Modified Fl
ag for the selected Constituent","The Modified Flag is NOT displayed for the Con
stituent " & DataTable.Value("Constituent_Name", "HOLDR")
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
Public Function MFProfileHOLDR_TC4()
'Step 1: Select Cash Delivery Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","CashDelive
ry")
intRowCount = Browser("MasterFile").Page("Profile - HOLDR Profile").WebT
able("ConstituentCashDelivery").RowCount
If intRowCount < 3 Then
Reporter.ReportEvent micFail,"Verifying the Number Constituent C
ash Delivery","There are No Constituent Cash Delivery to Select and hence can't
proceed furthur"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Exit Function
End If
Call SetChkHOLDRCashDeliveryTab("MasterFile", "Profile - HOLDR Profile", "Co
nstituentCashDelivery", "CashDelivery_RadioGroup", DataTable.Value("CashDelivery
_Name", "HOLDR"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the Details o
f the Selected Constituent Cash Delivery is displayed or NOT","The Details of th
e Cash Delivery " & DataTable.Value("CashDelivery_Name", "HOLDR") & " is Displa
yed Successfully"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the Details o
f the Selected Constituent Cash Delivery is displayed or NOT","The Details of t
he Cash Delivery " & DataTable.Value("CashDelivery_Name", "HOLDR") & " is NOT D
isplayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Fill the Cash Delivery Tab:
strCashDelivery = FillHOLDRProfileCashDeliveryTab("MasterFile", "Profile - H
OLDR Profile")
Wait(5)
If UCase(Trim(strCashDelivery)) <> UCase(DataTable.Value("CashDelivery_Name",
"HOLDR")) Then
Reporter.ReportEvent micWarning,"Verifying if the Modified Const
ituent Cash Delivery is Selected or Not","The Modified Constituent Cash Delivery
' " & DataTable.Value("CashDelivery_Name","HOLDR") & " ' is Not Selected"
Reporter.ReportEvent micWarning,"Verifying if the Modified Const
ituent Cash Delivery is Selected or Not","Selecting the Modified Constituent Ca
sh Delivery ' " & DataTable.Value("CashDelivery_Name","HOLDR") & " ' to Proceed
Execution"
Call captureScreenShot()
Call SelectRadioButton_ProfileHOLDR("MasterFile","Profile - HOLD
R Profile","ConstituentCashDelivery","CashDelivery_RadioGroup",DataTable.Value("
CashDelivery_Name","HOLDR"))
Wait(2)
End If
Wait(5)
strDisplayedName = get_WebEdit_Value("MasterFile","Profile - HOLDR Profile",
"CashDeliveryDetails_Name")
If strDisplayedName = DataTable.Value("CashDelivery_Name","HOLDR") Then
Reporter.ReportEvent micPass,"Step 1: Verfiying if the Selected
Cash Delivery is Displayed or Not","The Selected Cash Delivery '" & DataTable.Va
lue("CashDelivery_Name","HOLDR") & " ' is Displayed"
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying if the Selected
Cash Delivery is Displayed or Not","The Selected Cash Delivery '" & DataTable.Va
lue("CashDelivery_Name","HOLDR") & " ' is NOT Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
strValue = get_WebEdit_Value("MasterFile", "Profile - HOLDR Profile", "CashD
eliveryDetails_EndDate")
strValues = Replace(strValue," ","")
strSetDate = DataTable.Value("CashDeliveryDetails_EndDate", "HOLDR")
strInputDate = Split(strSetDate,";",-1,1)
strFinalDate = strInputDate(1) & " " & strInputDate(0) & ", " & strInpu
tDate(2)
strFinalDates = Replace(strFinalDate," " ,"")
Wait(2)
If Trim(strValues) = Trim(strFinalDates) Then
Reporter.ReportEvent micPass,"Step 1: Verfiying the Value in the
End Date Field","The Value Displayed in the End Date Field is " & strFinalDate
Else
Reporter.ReportEvent micFail,"Step 1: Verfiying the Value in the
End Date Field","The Value Displayed in the End Date Field is Not " & strFinal
Date
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 2: Select GICS Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","GICSCode")
Call pageCheck_WebEditOR("MasterFile","Profile - HOLDR Profile","GICSCod
e")
strAppValue = GetAllFieldValueInTable("MasterFile","Profile - HOLDR Prof
ile","GICSCode","WebEdit","INPUT")
If strAppValue <> "" AND Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verfiying the Default Value and Fi
elds Present in the GICS Code tab ","The Default value in the GICS Code tab is "
& strAppValue & " and the Required Fields are Present"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the Default V
alue and Fields Present in the GICS Code tab","The Default Value is Not displaye
d in the GICS Code tab or the Required Fields are NOT Present"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
Public Function MFProfileHOLDR_TC5()
' Step 1:
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Fee")
strAppFeeValues = GetAllFieldValueInTable("MasterFile","Profile - HOLDR
Profile","Fee","WebEdit","INPUT")
If strAppFeeValues <> "" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Default Valu
es in the Fee tab","The Default Values are dispalyed in the Fee tab"
Else
Reporter.ReportEvent micFail,"Step 1: Verifying the Default Valu
es in the Fee tab","The Default Values are NOT dispalyed in the Fee tab"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
strOldFeeIssuance = get_WebEdit_Value("MasterFile","Profile - HOLDR Profile"
,"Fee_Issuance")
strFeeIssuance = strOldFeeIssuance + 0.01
strOldFeeCancellation = get_WebEdit_Value("MasterFile","Profile - HOLDR
Profile","Fee_Cancellation")
strFeeCancellation = strOldFeeCancellation + 0.01
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Fee_Issua
nce",strFeeIssuance)
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Fee_Cance
llation",strFeeCancellation)
Call click_Image("MasterFile","Profile - HOLDR Profile","Save")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Fee", DataTable.V
alue("Fee_FieldModified", "HOLDR"), "Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Check for the Pending App
roval and the Modified Flag Next to the Field Changed", "The Pending Approval Fl
ag is Dispalyed Next to the Field Modified"
Else
Reporter.ReportEvent micFail, "Step 2: Check for the Pending Approval an
d the Modified Flag Next to the Field Changed", "The Pending Approval Flag is N
OT Dispalyed Next to the Field Modified"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
Public Function MFProfileHOLDR_TC6()
' Step 1:
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Legal")
strLegalValues = GetAllFieldValueInTable("MasterFile","Profile - HOLDR P
rofile","Legal","WebEdit","INPUT")
strLegalBNYValue = get_WebEdit_Value("MasterFile","Profile - HOLDR Profi
le","Legal_LawFirmBNY")
strLegalDepositar = get_WebEdit_Value("MasterFile","Profile - HOLDR Prof
ile","Legal_LawFirmInitialDepositor")
If strLegalBNYValue <> "" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Value in the
Field Law Firm BNY","The Value in the Field 'Law Firm BNY' is " & strLegalBNYVa
lue
Else
Reporter.ReportEvent micWarning,"Step 1: Verifying the Value in
the Field Law Firm BNY","The Value in the Field 'Law Firm BNY' is ' NULL ' "
Call captureScreenShot()
End If
If strLegalDepositar <> "" Then
Reporter.ReportEvent micPass,"Step 1: Verifying the Value in the
Field Law Firm Initial Depositar","The Value in the Field 'Law Firm BNY' is " &
strLegalDepositar
Else
Reporter.ReportEvent micWarning,"Step 1: Verifying the Value in
the Field Law Firm Initial Depositar","The Value in the Field 'Law Firm BNY' is
' NULL ' "
Call captureScreenShot()
End If
' Step 2:
Call FillHOLDRProfileLegalTab("MasterFile", "Profile - HOLDR Profile", "Lega
l")
Wait(5)
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Legal", DataTable
.Value("Legal_FieldModified", "HOLDR"), "Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 2: Check for the Pending Approval Fl
ag Next to the Field Changed", "The Pending Approval Flag is displayed Next to t
he Field Changed"
Else
Reporter.ReportEvent micFail, "Step 2: Check for the Pending App
roval Flag Next to the Field Changed", "The Approval Flag is displayed Next to t
he Field Changed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call Select_Menu("MasterFile", "Profile - HOLDR Profile", "Home;DR Home")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 3: Verifying if Depositary Re
ceipt Division's Page is displayed or Not","The Page 'Depositary Receipt Devisio
n' page is displayed Successfully"
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if Depositary Re
ceipt Division's Page is displayed or Not","The Page 'Depositary Receipt Devisio
n' page is displayed Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End Function
'===============================================================================
===============================
Public Function MFProfileHOLDR_TC7()
'Call logoutfromApp("MasterFile", "Depositary Receipt Division's")
Call invoke_URL("MasterFile","Login Page",Environment.Value("AppURL"))
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","
")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 1: Verifying if the Login Pag
e is Displayed Successfully or Not","The Login Page is Displayed Successfully"
Else
Reporter.ReportEvent micPass,"Step 1: Verifying if the Login Pag
e is Displayed Successfully or Not","The Login Page is Displayed Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call login("MasterFile","Login Page","Approver","MFLogin")
Call chkADRHomePage("MasterFile","Depositary Receipt Division's",DataTab
le.Value("HomePageLinks","HomePageVerification"),Environment.Value("ApproverUser
"))
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 2: Verifying if DR Home Page"
,"The Required Menu items are Displayed in the DR Home Page"
Else
Reporter.ReportEvent micPass,"Step 2: Verifying if DR Home Page"
,"The Required Menu items are Displayed in the DR Home Page"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call ApprovalFunction("MasterFile","HOLDR Profile","Name;CUSIP;US Exchan
ge;Last User Updated;Last Updated",DataTable.Value("HOLDRName","HOLDR"),"Approve
d the Changes","Approved","Pending Approval")
If Environment.Value("StepExecution_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 3 to 11: Verifying if the App
roval is done Successfully or Not","The changes made to the HOLDR " & DataTable.
Value("HOLDRName","HOLDR") & " is Approved Successfully"
Else
Reporter.ReportEvent micFail,"Step 3 to 11: Verifying if the App
roval is done Successfully or Not","The changes made to the HOLDR " & DataTable.
Value("HOLDRName","HOLDR") & " is NOT Approved Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("StepExecution_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call logoutfromApp("MasterFile","Approval Queue Item Search")
Wait(2)
If Browser("MasterFile").Exist(5) Then
Reporter.ReportEvent micFail,"Step 12: Verifying if Logged out f
rom the Application","Not logged out from the Application Successfully"
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass,"Step 12: Verifying if Logged out f
rom the Application","Llogged out from the Application Successfully"
End If
' Login Again with User Id:
Call invoke_URL("MasterFile","Login Page",Environment.Value("AppURL"))
Call login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Wait(5)
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
Call chkMFProfile_HOLDRPage("MasterFile", "Profile - HOLDR Profile", DataTab
le.Value("HOLDRName", "HOLDR"))
blnFalgExist = "True"
' Select Detail Tab
Call click_WebElement("MasterFile", "Profile - HOLDR Profile", "Detail")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Detail",DataTable
.Value("Details_FieldModified", "HOLDR"),"Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Detail Tab","The Pending Approval Flags ar
e Not Present in the Detail Tab"
Else
Reporter.ReportEvent micFail,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Detail Tab","The Pending Approval Flags ar
e Present in the Detail Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFalgExist = "False"
End If
' Select Constituent Tab
Call click_WebElement("MasterFile", "Profile - HOLDR Profile", "Constitu
ent")
Call chkFlagImageinTable("MasterFile", "Profile - HOLDR Profile","Constituen
t", DataTable.Value("Constituent_Name", "HOLDR"), "Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Modified and Pend
ing Approval Flags are Not Displayed in the Constituent Tab","The Pending Approv
al Flags are Not Present in the Constituent Tab"
Else
Reporter.ReportEvent micFail,"Verifying if the Modified and Pend
ing Approval Flags are Not Displayed in the Constituent Tab","The Pending Approv
al Flags are Present in the Constituent Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFalgExist = "False"
End If
' Select Cash Delivery Tab
Call click_WebElement("MasterFile", "Profile - HOLDR Profile", "CashDeli
very")
Call chkFlagImageinTable("MasterFile", "Profile - HOLDR Profile","Constituen
tCashDelivery",DataTable.Value("CashDelivery_Name", "HOLDR"),"Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Modified and Pend
ing Approval Flags are Not Displayed in the Cash Delivery Tab","The Pending Appr
oval Flags are Not Present in the Cash Delivery Tab"
Else
Reporter.ReportEvent micFail,"Verifying if the Modified and Pend
ing Approval Flags are Not Displayed in the Cash Delivery Tab","The Pending Appr
oval Flags are Present in the Cash Delivery Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFalgExist = "False"
End If
' Select Fee Tab
Call click_WebElement("MasterFile", "Profile - HOLDR Profile", "Fee")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Fee",DataTabl
e.Value("Fee_FieldModified", "HOLDR"),"Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Fee Tab","The Pending Approval Flags are N
ot Present in the Fee Tab"
Else
Reporter.ReportEvent micFail,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Fee Tab","The Pending Approval Flags are P
resent in the Fee Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFalgExist = "False"
End If
' Select Legal Tab
Call click_WebElement("MasterFile", "Profile - HOLDR Profile", "Legal")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile","Legal",DataTa
ble.Value("Legal_FieldModified", "HOLDR"),"Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Legal Tab","The Pending Approval Flags are
Not Present in the Legal Tab"
Else
Reporter.ReportEvent micFail,"Verifying if the Flags are Not Dis
played Next to the Modified Fields in Legal Tab","The Pending Approval Flags are
Present in the Legal Tab"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFalgExist = "False"
End If
If blnFalgExist = "True" Then
Reporter.ReportEvent micPass,"Step 13, 14: Verifying if the Flag
s are Not Displayed Next to the Modified Fields in Various Tab","The Pending App
roval Flags are Not Present in Various Tab"
Else
Reporter.ReportEvent micFail,"Step 13, 14: Verifying if the Flag
s are Not Displayed Next to the Modified Fields in Various Tab","The Pending App
roval Flags are Present in the Various Tab"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call Select_Menu("MasterFile", "Profile - HOLDR Profile", "Home;DR Home")
End Function
'===============================================================================
==========================================
End Function
'===============================================================================
==========================================
Public Function MFProfileHOLDR_TC9()
' Step 1 to 5
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
' Step 6:
Call click_Image("MasterFile","Profile - HOLDR Profile Search","NewHOLDR
")
Call pageCheck_WebElementOR("MasterFile","Profile - HOLDR Profile","Deta
il;Constituent;Fee;GICSCode;Legal")
intColumnCount = Browser("MasterFile").Page("Profile - HOLDR Profile").W
ebTable("InitialDepositor").ColumnCount(1)
For intColumnCounter = 1 to intColumnCount
strValue = Browser("MasterFile").Page("Profile - HOLDR Profile")
.WebTable("InitialDepositor").GetCellData(1,intColumnCounter)
strAppValue = strAppValue & ";" & strValue
Next
blnFlag = "False"
strDisplayedValue = "Initial Depositor;Merrill Lynch-HOLDRS;Country of Incor
poration;United States"
If Instr(1,strAppValue,strDisplayedValue) <> 0 Then
blnFlag = "True"
Else
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verfiying the Tabs and the
Elements in the Page ' Profile - HOLDR Profile' "," The Initial Depositor Value
is ' Merrill Lynch-HOLDRS ' and the Required Fields are Present"
Else
Reporter.ReportEvent micFail,"Step 6: Verfiying the Tabs and the
Elements in the Page ' Profile - HOLDR Profile' "," The Initial Depositor Value
is NOT ' Merrill Lynch-HOLDRS ' OR the Required Fields are Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
Call click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryField = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError", DataTable.Value("MandatoryFields","HOLDR"),"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Mandatory
Fields are Dispalyed in the Validation Error or Not","The Mandatory Fields are
Displayed in the Validation Error Table."
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Mandatory
Fields are Dispalyed in the Validation Error or Not","The Mandatory Fields are
NOT Displayed in the Validation Error Table."
Reporter.ReportEvent micFail,"Step 7: Required Mandatory Field :
= " & DataTable.Value("MandatoryFields","HOLDR"),"Displayed Mandatory Field : =
" & strMandatoryField
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 8 to 14
Call clkValidationErrorElement("MasterFile","Profile - HOLDR Profile","V
alidationError",DataTable.Value("MandatoryFields","HOLDR"),"Details_EffectiveDat
e;Details_USExchange;Details_ISIN;Details_Name;Details_USTickerSymbol;Details_CU
SIP;Details_BriefName")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8 to 14: Verfiying if the Cor
responding Field is Highlighted after clicking on the Element in the Validation
table","The Corresponding Field is Highlighted after clicking on the Correspondi
ng Element in the Validation Error table"
Else
Reporter.ReportEvent micFail,"Step 8 to 14: Verfiying if the Cor
responding Field is Highlighted after clicking on the Element in the Validation
table","The Corresponding Field is NOT Highlighted after clicking on the Corresp
onding Element in the Validation Error table"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Entering the Values for the Elements dispalyed in the Validation Error
strCurrentTime = Time
strCurrentDate = Date
strDate = Split(strCurrentDate,"/" ,-1,1)
strTime = Split(strCurrentTime,":",-1,1)
strDateTimeStamp = strDate(0) &strDate(1)&strDate(2) & " "& strTime(0)
& strTime(1) & strTime(2)
strNewHOLDRName = "QTPHOLDR_" & strDateTimeStamp
strNewHOLDRName = Replace(strNewHOLDRName," ","")
DataTable.Value("Details_Name","HOLDR") = strNewHOLDRName
Environment.Value("ApprovedHOLDR") = strNewHOLDRName
strVar1 = Environment("TestDir")
strIndVar1 = Split(strVar1,"\",-1,1)
strBound = UBound(strIndVar1)
strAllPath1 =""
For intCounters = 0 to strBound - 1
strAllPath1 = strAllPath1 & strIndVar1(intCounters) &"\"
Next
strPath1 = Trim(strPath1)
strDataPath1 = strAllPath1 & "DataTables\"
DataTable.ExportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR"
DataTable.ImportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR","HO
LDR"
strMandatoryValue = ValidationErrorDetails("MasterFile","Profile - HOLDR
Profile","ValidationError",DataTable.Value("MandatoryFields","HOLDR"),"Detail")
' Filling the Effective Date
strDataTableValue = DataTable.Value("Details_EffectiveDate","HOLDR")
strValue = Split(strDataTableValue,";",-1,1)
strDateValue = strValue(0)
strMonthValue = strValue(1)
strYearValue = strValue(2)
Call SelectImage("MasterFile","Profile - HOLDR Profile","Detail","Effect
ive Date","show-calendar.gif")
Call ClickIcon_SetDate("MasterFile","Profile - HOLDR Profile",strMonthVa
lue,strYearValue,strDateValue)
Call click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryValue = Replace(strMandatoryValue,"Effective Date","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
strErrorValue = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass," Step 15: Verfiying the Mandatory
Fields dispalyed in the Validation Error Table","The Mandatory Fields are Displa
yed in the Validation Error Table and the Mandatory Fields are " & strErrorValue
Else
Reporter.ReportEvent micFail,"Step 15: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Filling the US Exchange
Call SelectImage("MasterFile","Profile - HOLDR Profile","Detail","US Exc
hange","info.gif")
strElementName = DataTable.Value("Details_USExchange","HOLDR")
If Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("lookupF
rame").WebElement("html tag:=TD","innertext:="&strElementName).Exist(2) Then
Reporter.ReportEvent micPass,"Verifying the WebElement e
xists or Not","The WebElement "&strElementName &"is Present for clicking"
Browser("MasterFile").Page("Profile - HOLDR Profile").Fr
ame("lookupFrame").WebElement("html tag:=TD","innertext:="&strElementName).Click
Else
Reporter.ReportEvent micFail,"Verifying the WebElement e
xists or Not","The WebElement "&strElementName &"is Not Present for clicking"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call Click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryValue = Replace(strErrorValue,"US Exchange","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
strErrorValue = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 16: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are Display
ed in the Validation Error Table and the Mandatory Fields are " & strErrorValue
Else
Reporter.ReportEvent micFail,"Step 16: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Filling ISIN
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Details_I
SIN",DataTable("Details_ISIN","HOLDR"))
Call Click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryValue = Replace(strErrorValue,"ISIN","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
strErrorValue = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 17: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are Display
ed in the Validation Error Table and the Mandatory Fields are " & strErrorValue
Else
Reporter.ReportEvent micFail,"Step 17: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Filling HOLDR Name
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Details_N
ame",DataTable("Details_Name","HOLDR"))
Call Click_Image("MasterFile","Profile - HOLDR Profile","Save")
intLen = Len("Name;")
intPos1 = Instr(1,strErrorValue,"Name;")
If intPos1 <> 0 Then
strMandatoryValue = Trim(Mid(strMandatoryValue,intLen+intPos))
End If
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
strErrorValue = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 18: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are Display
ed in the Validation Error Table and the Mandatory Fields are " & strErrorValue
Else
Reporter.ReportEvent micFail,"Step 18: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Reporter.ReportEvent micFail,"Step 18: Displayed Mandatory Detai
ls : = " & strErrorValue," Required Mandatory Field: = " & strMandatoryField
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Filling US Ticker Symbol
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Details_U
STickerSymbol",DataTable("Details_USTickerSymbol","HOLDR"))
Call Click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryValue = Replace(strMandatoryField,"US Ticker Symbol","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
strErrorValue = ValidationErrorDetails("MasterFile","Profile - HOLDR Pro
file","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 19: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are Display
ed in the Validation Error Table and the Mandatory Fields are " & strErrorValue
Else
Reporter.ReportEvent micFail,"Step 19: Verfiying the Mandatory F
ields dispalyed in the Validation Error Table","The Mandatory Fields are NOT Dis
played in the Validation Error Table"
Reporter.ReportEvent micFail,"Step 19: Displayed Mandatory Detai
ls : = " & strErrorValue," Required Mandatory Field: = " & strMandatoryField
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'FIlling CUSIP
strCurrentTime = Time
strTime = Split(strCurrentTime,":",-1,1)
strCUSIPNum = strTime(0) & strTime(1) & strTime(2)
strCUSIPNum = Replace(strCUSIPNum," ","")
intLen = Len(strCUSIPNum)
If intLen =7 Then
strCUSIPNum = "01" & strCUSIPNum
ElseIf intLen = 8 Then
strCUSIPNum = "0" & strCUSIPNum
End If
DataTable.Value("Details_CUSIP","HOLDR") = strCUSIPNum
DataTable.ExportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR"
DataTable.ImportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR","HO
LDR"
Call set_WebEdit_Value("MasterFile","Profile - HOLDR Profile","Details_CUSIP
",DataTable("Details_CUSIP","HOLDR"))
If Browser("MasterFile").Dialog("Microsoft Internet Explorer").Exist(5)
Then
Browser("MasterFile").Dialog("Microsoft Internet Explorer").WinB
utton("OK").Click
If Browser("MasterFile").Dialog("Microsoft Internet Explorer").E
xist(2) Then
Browser("MasterFile").Dialog("Microsoft Internet Explore
r").WinButton("OK").Click
End If
End If
Call Click_Image("MasterFile","Profile - HOLDR Profile","Save")
strMandatoryValue = Replace(strMandatoryField,"CUSIP","")
intPos = InStr(1,strMandatoryValue,";")
If intPos = 1 Then
strMandatoryField = Trim(Mid(strMandatoryValue,intPos+1))
End If
If Browser("MasterFile").Page("Profile - HOLDR Profile").Image("ShowErro
rs").Exist(5) Then
strErrorValue = ValidationErrorDetails("MasterFile","Profile - H
OLDR Profile","ValidationError",strMandatoryField,"Detail")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 20: Verfiying the Man
datory Fields dispalyed in the Validation Error Table","The Mandatory Fields are
Displayed in the Validation Error Table and the Mandatory Fields are " & strErr
orValue
Else
Reporter.ReportEvent micFail,"Step 20: Verfiying the Man
datory Fields dispalyed in the Validation Error Table","The Mandatory Fields are
NOT Displayed in the Validation Error Table"
Reporter.ReportEvent micFail,"Step 20: Displayed Mandato
ry Details : = " & strErrorValue," Required Mandatory Field: = " & strMandatoryF
ield
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Else
Reporter.ReportEvent micFail,"Step 20: Verifying if the Validati
on Error Table is Displayed or NOT","The Validation Error Table is Not Displayed
"
Reporter.ReportEvent micFail,"Step 20: No Validation Error tabl
e is Displayed"," Required Mandatory Field: = " & strMandatoryField
End If
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++
Public Function MFProfileHOLDR_TC10()
' Step 1 to 5
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
' Step 6:
Call click_Image("MasterFile","Profile - HOLDR Profile Search","NewHOLDR
")
Call pageCheck_WebElementOR("MasterFile","Profile - HOLDR Profile","Deta
il;Constituent;Fee;GICSCode;Legal")
intColumnCount = Browser("MasterFile").Page("Profile - HOLDR Profile").W
ebTable("InitialDepositor").ColumnCount(1)
For intColumnCounter = 1 to intColumnCount
strValue = Browser("MasterFile").Page("Profile - HOLDR Profile")
.WebTable("InitialDepositor").GetCellData(1,intColumnCounter)
strAppValue = strAppValue & ";" & strValue
Next
blnFlag = "False"
strDisplayedValue = "Initial Depositor;Merrill Lynch-HOLDRS;Country of Incor
poration;United States"
If Instr(1,strAppValue,strDisplayedValue) <> 0 Then
blnFlag = "True"
Else
Call captureScreenShot()
End If
If Environment.Value("TestCase_Log") = "True" AND blnFlag = "True" Then
Reporter.ReportEvent micPass,"Step 6: Verfiying the Tabs and the
Elements in the Page ' Profile - HOLDR Profile' "," The Initial Depositor Value
is ' Merrill Lynch-HOLDRS ' and the Required Fields are Present"
Else
Reporter.ReportEvent micFail,"Step 6: Verfiying the Tabs and the
Elements in the Page ' Profile - HOLDR Profile' "," The Initial Depositor Value
is NOT ' Merrill Lynch-HOLDRS ' OR the Required Fields are Present"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 7:
strCurrentTime = Time
strCurrentDate = Date
strDate = Split(strCurrentDate,"/" ,-1,1)
strTime = Split(strCurrentTime,":",-1,1)
strDateTimeStamp = strDate(0) &strDate(1)&strDate(2) & " "& strTime(0)
& strTime(1) & strTime(2)
strNewHOLDRName = "QTPHOLDR_" & strDateTimeStamp
strNewHOLDRName = Replace(strNewHOLDRName," ","")
DataTable.Value("Details_Name","HOLDR") = strNewHOLDRName
strCurrentTime = Time
strTime = Split(strCurrentTime,":",-1,1)
strCUSIPNum = strTime(0) & strTime(1) & strTime(2)
strCUSIPNum = Replace(strCUSIPNum," ","")
intLen = Len(strCUSIPNum)
If intLen =7 Then
strCUSIPNum = "01" & strCUSIPNum
ElseIf intLen = 8 Then
strCUSIPNum = "0" & strCUSIPNum
End If
DataTable.Value("Details_CUSIP","HOLDR") = strCUSIPNum
strVar1 = Environment("TestDir")
strIndVar1 = Split(strVar1,"\",-1,1)
strBound = UBound(strIndVar1)
strAllPath1 =""
For intCounters = 0 to strBound - 1
strAllPath1 = strAllPath1 & strIndVar1(intCounters) &"\"
Next
strPath1 = Trim(strPath1)
strDataPath1 = strAllPath1 & "DataTables\"
DataTable.ExportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR"
DataTable.ImportSheet strDataPath1 & "MasterFileProfile.xls","HOLDR","HO
LDR"
Wait(2)
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Detail")
Call FillHOLDRProfileDetailsTab("MasterFile","Profile - HOLDR Profile")
Call chkFlagImage("MasterFile","Profile - HOLDR Profile","Detail","Name;
Brief Name;US Ticker Symbol;Intl Ticker Symbol;US Exchange;Intl Exchange;US Clea
ring House;Intl Clearing House;CUSIP;Price;Effective Date","Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 7: Verifying if the Pending A
pproval Flags are Displayed or Not in Detail Tab","The Pending Approval Flags ar
e displayed Next to the Modified Fields"
Else
Reporter.ReportEvent micFail,"Step 7: Verifying if the Pending A
pproval Flags are Displayed or Not in Detail Tab","The Pending Approval Flags ar
e NOT displayed Next to the Modified Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
' Step 8:
Wait(2)
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Constituen
t")
intInitialRowCount = Browser("MasterFile").Page("Profile - HOLDR Profile
").WebTable("Constituent").RowCount
intCounter = Browser("MasterFile").Page("Profile - HOLDR Profile").WebTa
ble("Constituent").ChildItemCount(1,2,"WebButton")
If IntCounter > 0 Then
Browser("MasterFile").Page("Profile - HOLDR Profile").WebTable("
Constituent").ChildItem(1,2,"WebButton",0).Click
End If
Call FillHOLDRProfileConstituentTab("MasterFile","Profile - HOLDR Profil
e")
Wait(5)
strConstituentName = get_WebEdit_Value("MasterFile","Profile - HOLDR Pro
file","ConstituentDetails_Name")
intFinalRowCount = Browser("MasterFile").Page("Profile - HOLDR Profile")
.WebTable("Constituent").RowCount
If intFinalRowCount = intInitialRowCount + 1 Then
Reporter.ReportEvent micPass,"Verifying the Number of Rows after
adding a New Constituent"," A New Row is added successfully after adding a New
Constituent"
Else
Reporter.ReportEvent micFail,"Verifying the Number of Rows after
adding a New Constituent"," A New Row is NOT added successfully after adding a
New Constituent"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call chkFlagImageinTable("MasterFile","Profile - HOLDR Profile","Constit
uent",strConstituentName,"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 8: Verifying if the New Const
ituent is added Successfully or Not","The New Constituent " & strConstituentName
& " is Added Successfully"
Else
Reporter.ReportEvent micFail,"Step 8: Verifying if the New Const
ituent is added Successfully or Not","The New Constituent " & strConstituentName
& " is NOT Added Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
'Step 9: Fill Fee tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Fee")
Wait(2)
Call FillHOLDRProfileFeeTab("MasterFile","Profile - HOLDR Profile","Fee"
)
Wait(5)
Call chkFlagImage("MasterFile","Profile - HOLDR Profile","Fee",DataTable
.Value("Fee_FieldModified","HOLDR"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 9: Verifying if the Pending A
pproval Flags are displayed next to the Modified Fields","The Pending Approval F
lags are Displayed Next to the Modified Fields"
Else
Reporter.ReportEvent micFail,"Step 9: Verifying if the Pending A
pproval Flags are displayed next to the Modified Fields","The Pending Approval F
lags are NOT Displayed Next to the Modified Fields"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Step 10: Legal Tab:
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Legal")
Call FillHOLDRProfileLegalTab("MasterFile", "Profile - HOLDR Profile", "
Legal")
Call chkFlagImage("MasterFile","Profile - HOLDR Profile","Legal",DataTable.V
alue("Legal_FieldModified","HOLDR"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 10: Check for the Pending Approval F
lag Next to the Field Changed", "The Pending Approval Flag is displayed Next to
the Field Changed"
Else
Reporter.ReportEvent micFail, "Step 10: Check for the Pending Ap
proval Flag Next to the Field Changed", "The Pending Approval Flag is displayed
Next to the Field Changed"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Wait(5)
Call click_Image("MasterFile","Profile - HOLDR Profile","Save")
' Step 11:
Call click_WebElement("MasterFile","Profile - HOLDR Profile","HOLDRSearc
h")
Wait(5)
intFoundRow = Browser("MasterFile").Page("Profile - HOLDR Profile Search").W
ebTable("HOLDR Search Results").GetRowWithCellText(DataTable.Value("Details_Name
","HOLDR"))
If intFoundRow <> - 1 Then
Reporter.ReportEvent micPass,"Step 11: Verifying if the Newly ad
ded HOLDR is displayed in the List or Not","The Newly added HOLDR " & DataTable.
Value("Details_Name","HOLDR") & " is present in the HOLDR Search Result"
Else
Reporter.ReportEvent micFail,"Step 11: Verifying if the Newly ad
ded HOLDR is displayed in the List or Not","The Newly added HOLDR " & DataTable.
Value("Details_Name","HOLDR") & " is NOT present in the HOLDR Search Result"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 12:
Call logoutfromApp("MasterFile","Profile - HOLDR Profile Search")
Wait(5)
If Browser("MasterFile").Exist(5) Then
Reporter.ReportEvent micFail,"Step 12: Verfiying if Logged out f
rom application or NOT","User is Not Logged out from application Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass,"Step 12: Verfiying if Logged out f
rom application or NOT","User is Logged out from application Successfully"
End If
' Step 13: Log in with Approver Id:
Call invoke_URL("MasterFile","Login Page",Environment.Value("AppURL"))
Call login("MasterFile","Login Page","Approver","MFLogin")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5)
Then
Reporter.ReportEvent micPass,"Step 13: Verifying if the Applicat
ion is launced","The Application is Launced Successfully"
Else
Reporter.ReportEvent micFail,"Step 13: Verifying if the Applicat
ion is launced","The Application is NOT Launced Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
' Step 14 to 20: Reject all the Changes made
Call ApprovalFunction("MasterFile","HOLDR Profile","Name;CUSIP;US Exchange;L
ast User Updated;Last Updated",DataTable.Value("Details_Name","HOLDR"),"Rejectin
g the Changes","Rejected","Pending Approval")
If Environment.Value("StepExecution_Log") = "True" Then
Reporter.ReportEvent micPass,"Step 14 to 20 : Verifying if the C
hanges made to the HOLDR is apporved or Not","The changes made to the HOLDR " &
DataTable.Value("Details_Name","HOLDR") & " is Rejected Successfully"
Else
Reporter.ReportEvent micFail,"Step 14 to 20 : Verifying if the C
hanges made to the HOLDR is apporved or Not","The changes made to the HOLDR " &
DataTable.Value("Details_Name","HOLDR") & " is NOT Rejected Successfully"
Environment.Value("Eexcution_Log") = "False"
Environment.Value("StepExecution_Log") = "True"
End If
Wait(2)
Call logoutfromApp("MasterFile","Approval Queue Item Search")
Wait(5)
If Browser("MasterFile").Exist(5) Then
Reporter.ReportEvent micFail,"Step 21: Verifying if Logged out f
rom Application Successfully","The User is NOT Successfully logged out from appl
ication"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass,"Step 21: Verifying if Logged out f
rom Application Successfully","The User is Successfully logged out from applicat
ion"
End If
' Step 22:
Call invoke_URL("MasterFile","Login Page",Environment.Value("AppURL"))
Call login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("SelectMenu",
"HOLDR"))
Wait(5)
Browser("MasterFile").Page("Profile - HOLDR Profile Search").WebElement(
"html tag:=TD","innertext:= " & DataTable.Value("Details_Name","HOLDR")).Click
Wait(5)
' Select Detail Tab
blnFlagExist = "False"
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Detail")
Call chkRejectedFlagImage("MasterFile","Profile - HOLDR Profile","Detail
","Name;Brief Name;US Ticker Symbol;Intl Ticker Symbol;US Exchange;Intl Exchange
;US Clearing House;Intl Clearing House;CUSIP;Price;Effective Date","Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Rejected Flag is
displayed or NOT in the Detail Tab","The Rejected Flag is Present next to the Mo
dified Fields"
Else
Reporter.ReportEvent micFail,"Verifying if the Rejected Flag is
displayed or NOT in the Detail Tab","The Rejected Flag is Not Present next to th
e Modified Fields"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFlagExist = "True"
End If
' Select Constituent Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Constituen
t")
Wait(2)
strConstituentName = get_WebEdit_Value("MasterFile","Profile - HOLDR Pro
file","ConstituentDetails_Name")
Wait(2)
Call chkRejectedFlagImageinTable("MasterFile","Profile - HOLDR Profile",
"Constituent",strConstituentName,"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Rejected Flag is
displayed or NOT in the Constituent Tab","The Rejected Flag is Present next to t
he Modified Fields"
Else
Reporter.ReportEvent micFail,"Verifying if the Rejected Flag is
displayed or NOT in the Constituent Tab","The Rejected Flag is Not Present next
to the Modified Fields"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFlagExist = "True"
End If
' Select Fee Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Fee")
Call chkRejectedFlagImage("MasterFile","Profile - HOLDR Profile","Fee",D
ataTable.Value("Fee_FieldModified","HOLDR"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Rejected Flag is
displayed or NOT in the Fee Tab","The Rejected Flag is Present next to the Modif
ied Fields"
Else
Reporter.ReportEvent micFail,"Verifying if the Rejected Flag is
displayed or NOT in the Fee Tab","The Rejected Flag is Not Present next to the M
odified Fields"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFlagExist = "True"
End If
' Select Legal Tab
Call click_WebElement("MasterFile","Profile - HOLDR Profile","Fee")
Call chkRejectedFlagImage("MasterFile","Profile - HOLDR Profile","Fee",D
ataTable.Value("Legal_FieldModified","HOLDR"),"Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass,"Verifying if the Rejected Flag is
displayed or NOT in the Legal Tab","The Rejected Flag is Present next to the Mod
ified Fields"
Else
Reporter.ReportEvent micFail,"Verifying if the Rejected Flag is
displayed or NOT in the Legal Tab","The Rejected Flag is Not Present next to the
Modified Fields"
Call captureScreenShot()
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
blnFlagExist = "True"
End If
If blnFlagExist = "False" Then
Reporter.ReportEvent micPass,"Step 23: Verfiying if the Rejected
Flags are Present in various tab after Rejecting the Changes made","The Rejecte
d Flags are Present in Various Tabs"
Else
Reporter.ReportEvent micFail,"Step 23: Verfiying if the Rejected
Flags are Present in various tab after Rejecting the Changes made","The Rejecte
d Flags are Not Present in Various Tabs"
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Profile - HOLDR Profile","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++
Public Function MFProfileHOLDR_TC14()
' Step 1 to 5
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
Wait(5)
Browser("MasterFile").Page("Profile - HOLDR Profile Search").WebElement(
"html tag:=TD","innertext:= " & DataTable.Value("HOLDRName","HOLDR")).Click
Wait(5)
Call click_Image("MasterFile","Profile - HOLDR Profile","Related")
If Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("lookupFr
ame").Exist(5) Then
strRelatedProfiles = Browser("MasterFile").Page("Profile - HOLDR
Profile").Frame("lookupFrame").GetROProperty("innertext")
If Trim(strRelatedProfiles) = "Related Profiles" Then
Reporter.ReportEvent micPass,"Step 7: Verifying the Func
tionality of Related Button","There are No Related Profiles for the HOLDR Select
ed"
Else
intLen = Len("Related Profiles")
strRelatedProfile = Mid(strRelatedProfiles,intLen+1)
Reporter.ReportEvent micPass,"Step 7: Verifying the Func
tionality of Related Button","The Profile related to HOLDR ' " & DataTable.Value
("HOLDRName","HOLDR") & " ' is '" & strRelatedProfile
End If
Else
Reporter.ReportEvent micFail,"Step 7: Verifying the Functionalit
y of Related Button","The Related Profile Window is not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Wait(5)
Browser("MasterFile").Page("Profile - HOLDR Profile").WebEdit("Details_E
ffectiveDate").Click
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++
' Fee
intTotalRow = 2+intConstituentRowCount+intCashDeliveryRowCount
intCounter = 0
For intTableIndex =intTotalRow to intFinalTotalRow
If Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("
Frame").WebTable("index:="& intTableIndex,"html tag:=TABLE").Exist Then
strTableName = Browser("MasterFile").Page("Profile - HOL
DR Profile").Frame("Frame").WebTable("index:="& intTableIndex,"html tag:=TABLE")
.GetCellData(1,1)
If Trim(strTableName) = "Fee" Then
blnFlag = "True"
intCounter = intCounter+1
End If
End If
Next
If intCounter = 1 Then
Reporter.ReportEvent micPass,"Verifying if the ' Fee ' table is
displayed or Not","The 'Fee ' Table is Displayed"
Else
Reporter.ReportEvent micFail,"Verifying if the 'Fee ' table is d
isplayed or Not","The 'Fee' Table is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
' Legal
intTotalRow = 2+intConstituentRowCount+intCashDeliveryRowCount
intCounter = 0
For intTableIndex =intTotalRow to intFinalTotalRow
If Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("
Frame").WebTable("index:="& intTableIndex,"html tag:=TABLE").Exist Then
strTableName = Browser("MasterFile").Page("Profile - HOL
DR Profile").Frame("Frame").WebTable("index:="& intTableIndex,"html tag:=TABLE")
.GetCellData(1,1)
If Trim(strTableName) = "Fee" Then
blnFlag = "True"
intCounter = intCounter+1
End If
End If
Next
If intCounter = 1 Then
Reporter.ReportEvent micPass,"Verifying if the ' Legal ' table i
s displayed or Not","The ' Legal ' Table is Displayed"
Else
Reporter.ReportEvent micFail,"Verifying if the ' Legal ' table i
s displayed or Not","The ' Legal ' Table is Not Displayed"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
blnExistFlag = "False"
End If
Wait(2)
blnReturnFlag = Browser("MasterFile").Page("Profile - HOLDR Profile").Fr
ame("Frame").Image("Back").Exist(2)
blnPrintFlag = Browser("MasterFile").Page("Profile - HOLDR Profile").Fra
me("Frame").Image("Print").Exist(2)
If blnReturnFlag = "True" And blnPrintFlag = "True" And blnExistFlag = "
True" Then
Reporter.ReportEvent micPass,"Step 2:Verifying if the HOLDR Deta
ils are Present or Not","The HOLDR Details are displayed Successfully with all
the Required Tables"
Else
Reporter.ReportEvent micFail,"Step 2: Verifying if the HOLDR Det
ails are Present or Not","The HOLDR Details are Not displayed Successfully with
all the Required Tables"
Environment.Value("Execution_Log") = "False"
End If
' Step 2: Click on Print Button
Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("Frame").Ima
ge("Print").Click
Wait(2)
If Dialog("Print").Exist(5) Then
Reporter.ReportEvent micWarning,"Step 2: Verify for the Print of
the HOLDR Details Manually","Print Dialog is Displayed and plz verify the Detai
ls Manually"
Else
Reporter.ReportEvent micWarning,"Step 2: Verify for the Print of
the HOLDR Details Manually"," Print Dialog is Not Displayed"
End If
Wait(2)
Dialog("Print").WinButton("Cancel").Click
If Dialog("Print").Exist(2) Then
Dialog("Print").WinButton("Cancel").Click
End If
' Step 3:
Browser("MasterFile").Page("Profile - HOLDR Profile").Frame("Frame").Ima
ge("Back").Click
If Browser("MasterFile").Page("Profile - HOLDR Profile").Exist(5) Then
Reporter.ReportEvent micPass,"Step 3: Verifying if the HOLDR Pro
file Page is displayed or Not","The Profile HOLDR Page is displayed successfully
"
Else
Reporter.ReportEvent micFail,"Step 3: Verifying if the HOLDR Pro
file Page is displayed or Not","The Profile HOLDR Page is displayed successfully
"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call select_Menu("MasterFile","Profile - HOLDR Profile","Home;DR Home")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
Public Function MFProfileHOLDR_TC16()
' Step 1 to 5
Call click_WebElement("MasterFile", "Depositary Receipt Division's", "Maste
rFile")
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
Wait (5)
Call chkMFProfile_HOLDRPage("MasterFile", "Profile - HOLDR Profile", Environ
ment.Value("ApprovedHOLDR")) ' We get Approved Holdr from Test Case 9
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 1 to 5: Verfiying if the Required Fi
elds are Present or Not", "The Required Fields are Present in the Page ' Profile
- HOLDR Profile Search and Profile - HOLDR Profile ' and the HOLDR ' " & Enviro
nment.Value("ApprovedHOLDR") & " ' is Opened Successfully"
Else
Reporter.ReportEvent micFail, "Step 1 to 5: Verfiying if the Required Fi
elds are Present or Not", "The Required Fields are Not Present in the Page ' Pro
file - HOLDR Profile Search and Profile - HOLDR Profile '"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Changing the
intOldPriceValue = get_WebEdit_Value("MasterFile", "Profile - HOLDR Profile"
, "Details_Price")
intNewPriceValue = intOldPriceValue + 0.5
Call set_WebEdit_Value("MasterFile", "Profile - HOLDR Profile", "Details_Pri
ce", "")
Call set_WebEdit_Value("MasterFile", "Profile - HOLDR Profile", "Details_Pri
ce", intNewPriceValue)
' Changing Miniumum Share Slot
intOldShareValue = get_WebEdit_Value("MasterFile", "Profile - HOLDR Profile"
, "Details_MinimumShareSlot")
intNewShareValue = intOldShareValue + 2
Call set_WebEdit_Value("MasterFile", "Profile - HOLDR Profile", "Details_Min
imumShareSlot", intNewShareValue)
'Call select_Combo_Value("MasterFile", "Profile - HOLDR Profile", "Details_S
tatus", "Effective")
Wait (2)
' Saving the Chnages made
Call click_Image("MasterFile", "Profile - HOLDR Profile", "Save")
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile", "Detail", "Minimu
m Share Lot;Price", "Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Step 6: Verifying if the Pending Approval
Flags are Displayed Next to the Modified Fields", "The Pending Approval Flags a
re Dispalyed Next to the Modified Fields"
Else
Reporter.ReportEvent micPass, "Step 6: Verifying if the Pending Approval
Flags are Displayed Next to the Modified Fields", "The Pending Approval Flags a
re Dispalyed Next to the Modified Fields"
Environment.Value("Execution_Log") = "False"
Environment.Value("TestCase_Log") = "True"
End If
Call logoutfromApp("MasterFile", "Profile - HOLDR Profile")
' Login with the Approver ID and approve the changes made
Call invoke_URL("MasterFile", "Login Page", Environment.Value("AppURL"))
Call login("MasterFile", "Login Page", "Approver", "MFLogin")
If Browser("MasterFile").Page("Depositary Receipt Division's").Exist(5) Then
Reporter.ReportEvent micPass, "Verifying if Application is opened succes
sfully", "The Applicaion is Opened Successfully"
Else
Reporter.ReportEvent micFail, "Verifying if Application is opened succes
sfully", "The Applicaion is Not Opened Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
Call ApprovalFunction("MasterFile", "HOLDR Profile", "Name;CUSIP;US Exchange
;Last User Updated;Last Updated", Environment.Value("ApprovedHOLDR"), "Approved
the Changes", "Approved", "Pending Approval")
If Environment.Value("StepExecution_Log") = "True" Then
Reporter.ReportEvent micPass, "Verifying if the Approval is done Success
fully or Not", "The changes made to the HOLDR " & Environment.Value("ApprovedHOL
DR") & " is Approved Successfully"
Else
Reporter.ReportEvent micFail, "Step: Verifying if the Approval is done S
uccessfully or Not", "The changes made to the HOLDR " & Environment.Value("Appro
vedHOLDR") & " is NOT Approved Successfully"
Environment.Value("TestCase_Log") = "True"
Environment.Value("StepExecution_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
Call logoutfromApp("MasterFile", "Approval Queue Item Search")
Wait (2)
If Browser("MasterFile").Exist(2) Then
Reporter.ReportEvent micFail, "Verifying if Logged out from the Applicat
ion", "Not logged out from the Application Successfully"
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
Else
Reporter.ReportEvent micPass, "Verifying if Logged out from the Applicat
ion", "Logged out from the Application Successfully"
End If
' Login Again with User Id:
Call invoke_URL("MasterFile", "Login Page", Environment.Value("AppURL"))
Call login("MasterFile", "Login Page", "User", "MFLogin")
Call click_WebElement("MasterFile", "Depositary Receipt Division's", "Master
File")
Wait (5)
Call Select_Menu("MasterFile", "MasterFile", DataTable.Value("SelectMenu", "
HOLDR"))
Wait(2)
' Select the Modified HOLDR
Browser("MasterFile").Page("Profile - HOLDR Profile Search").WebElement("htm
l tag:=TD", "innertext:=" & Environment.Value("ApprovedHOLDR")).Click
Wait (5)
Call chkFlagImage("MasterFile", "Profile - HOLDR Profile", "Detail", "Minimu
m Share Lot;Price", "Not Exist")
If Environment.Value("TestCase_Log") = "True" Then
Reporter.ReportEvent micPass, "Verifying if the Pending Approval Flag is
Displayed or Not", "The Pending Approval Flag is Not Displayed next to the Modi
feid Field after Approving"
Else
Reporter.ReportEvent micFail, "Verifying if the Pending Approval Flag is
Displayed or Not", "The Pending Approval Flag is Displayed next to the Modifeid
Field after Approving"
Environment.Value("TestCase_Log") = "True"
Environment.Value("Execution_Log") = "False"
End If
' Click on the Audit Button
Call click_Image("MasterFile", "Profile - HOLDR Profile", "Audit")
For index = 1 to 2
intRowCount = Browser("MasterFile").Page("Profile - HOLD
R Profile").Frame("lookupFrame").WebTable("index:= " & Index).RowCount
For intRowCounter = 1 To intRowCount
strFieldName = Browser("MasterFile").Page("Profi
le - HOLDR Profile").Frame("lookupFrame").WebTable("index:= " & Index).GetCellDa
ta(intRowCounter, 1)
If strFieldName = "Price" Then
strNewValue = Browser("MasterFile").Page
("Profile - HOLDR Profile").Frame("lookupFrame").WebTable("index:= " & Index).Ge
tCellData(intRowCounter, 2)
strOldValue = Browser("MasterFile").Page
("Profile - HOLDR Profile").Frame("lookupFrame").WebTable("index:= " & Index).Ge
tCellData(intRowCounter, 3)
If Round(strOldValue,2) = Round(intOldPr
iceValue,2) And Round(strNewValue,2) = Round(intNewPriceValue,2) Then
Reporter.ReportEvent mic
Pass, "Verfiying the Old and New Values", "The Old Value is " & intOldPriceValue
& " and New Value is " & intNewPriceValue & " in the Field " & strFieldName
Else
Reporter.ReportEvent mic
Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldPrice
Value & " Or New Value is Not " & intNewPriceValue & " in the Field " & strFiel
dName
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End If
If strFieldName = "Minimum Share Lot" Then
strNewValue = Browser("MasterFile").Page
("Profile - HOLDR Profile").Frame("lookupFrame").WebTable("index:= " & Index).Ge
tCellData(intRowCounter, 2)
strOldValue = Browser("MasterFile").Page
("Profile - HOLDR Profile").Frame("lookupFrame").WebTable("index:= " & Index).Ge
tCellData(intRowCounter, 3)
If Round(strOldValue,2) = Round(intOldSh
areValue,2) And Round(strNewValue,2) = Round(intNewShareValue,2) Then
Reporter.ReportEvent mic
Pass, "Verfiying the Old and New Values", "The Old Value is " & intOldShareValue
& " and New Value is " & intNewShareValue & " in the Field " & strFieldName
Else
Reporter.ReportEvent mic
Fail, "Verfiying the Old and New Values", "The Old Value is Not " & intOldShare
Value & " Or New Value is Not " & intNewShareValue & " in the Field " & strFie
ldName
Call captureScreenShot()
Environment.Value("Execution_Log") = "False"
End If
End If
If Instr(1,strFieldName,"Approved By") <> 0 Then
strApproverName = Environment.Value("App
roverUser")
strCheck = Split(strApproverName," ",-1,
1)
strFinalApproverName = strCheck(1) & " ,
" & strCheck(0)
If instr(1,strFieldName,strFinalApprover
Name) <> 0 Then
Reporter.ReportEvent micPass,"Ve
rfiying the Approval Details","The Details are Approved by the User ' " & strFin
alApproverName
Else
Reporter.ReportEvent micFail,"Ve
rifying the Approval Details","The Details are Not Approved by the User ' " & st
rFinalApproverName
Call captureScreenShot()
Environment.Value("Execution_Log
") = "False"
End If
End If
If Instr(1,strFieldName,"Updated By") <> 0 Then
strUserName = Environment.Value("NormalU
ser")
strChecks = Split(strUserName," ",-1,1)
strFinalUserName = strChecks(1) & " , "
& strChecks(0)
If instr(1,strFieldName,strFinalUserName
) <> 0 Then
Reporter.ReportEvent micPass,"Ve
rfiying the User Details","The Updated User is " & strFinalUserName
Else
Reporter.ReportEvent micFail,"Ve
rfiying the User Details","The Updated User is NOT " & strFinalUserName
Call captureScreenShot()
Environment.Value("Execution_Log
") = "False"
End If
End If
Next
Next
Wait(5)
Call select_Menu("MasterFile","Profile - HOLDR Profile","Home;DR Home")
End Function