You are on page 1of 29

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

=======================================================
' Name of the Script : MFProfileConstituent
' Scope of the Script : This test script covers 1
2 test cases related to MF Profile Constituent
' Author : Satish Dupati
' Description : MF Profile Constitu
ent Search and Development
' Date and / or Version : 21-11-2008,version 1.0
'Note : See the Text Area Name in TC4 as caCactn
DescTx_4,Change and Approve AT&T Corp 4values, AT&T Inc 4Values acc opp to Datat
able
'===============================================================================
=========================================================
Sub MFProfileConstituent()
'****Declaration of Environmental Variable
Environment.Value("Execution_Log")= "True"
Environment.Value("strSheetName")="Constituent"
'''''''''Test case count
Const TC_COUNT =12
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\"
' Including the Library files where all the Scripts are saved
'ExecuteFile strLibPath & "CAReportsAgingItemsTC.vbs"
'****Adding CALogin sheet to the dataTable and Importing the Input DataT
able
DataTable.AddSheet "MFLogin"
DataTable.ImportSheet strDataPath & "Login.xls","MFLogin","MFLogin"
DataTable.AddSheet "Constituent"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","Constituent
","Constituent"
DataTable.AddSheet "HomePageVerification"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","HomePageVer
ification","HomePageVerification"
DataTable.AddSheet "ReportHeader"
DataTable.ImportSheet strDataPath & "MasterFileProfile.xls","ReportHeade
r","ReportHeader"
'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
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL","MFLogin
"))
'****Checking the username, password and login objects in the login page
Call pageCheck_WebEdit("MasterFile","Login Page","username;j_password","
")
Call pageCheck_WebButton("MasterFile","Login Page","Login","")
'****Entering username and password and login into the masterfile applic
ation
Call login("MasterFile","Login Page","User","MFLogin")
Environment.Value("DATATABLE_ROW")=1
DataTable.GetSheet("Constituent").SetCurrentRow(Environment.Value("DATAT
ABLE_ROW"))
'***************************************** TC Driver Strat *************
******************************************
For intTCCount = 1 to TC_COUNT
Environment.Value("Execution_Log") = "True"
If DataTable("TestRunFlag","Constituent") = "Y" Then
''If run flag is Y in test data table
Reporter.ReportEvent micDone,"######## BEGIN TEST CASE -
'" & DataTable("TestCaseID","Constituent") & "' ########### ","Execution of Tes
t Case '" & DataTable("TestCaseDesc","Constituent") & "' Started"
strFuncName = "MFProfileConstituent_TC" & intTCCount & "
()" ''Formation of function name
Environment.Value("TestCase_Log")="True"
Execute "Call " & strFuncName
If Environment.Value("Execution_Log") = "True" Then
Call Execution_log("",Datatable.Value("T
estCaseID", "Constituent"), Datatable.Value("TestCaseDesc", "Constituent"), "PAS
S")
Else
Call Execution_log("",Datatable.Value("T
estCaseID", "Constituent"), Datatable.Value("TestCaseDesc", "Constituent"), "FAI
L")
End If
Reporter.ReportEvent micDone,"######### END OF TEST CASE
- '" & DataTable("TestCaseID","Constituent") & "###########","The Test Case Exe
cution Completed"
End If
strPrevious=Trim(DataTable.Value("TestCaseID","Constituent"))
''Increment the test data table row
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("Constituent").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Constituent"))
While strPrevious = strNext
Environment.Value("DATATABLE_ROW") = Environment.Value("
DATATABLE_ROW") + 1
DataTable.GetSheet("Constituent").SetCurrentRow(Environm
ent.Value("DATATABLE_ROW"))
strNext=Trim(DataTable.Value("TestCaseID","Constituent")
)
Wend
Next
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
End Sub
'***************************************** TC Driver End ***********************
********************************
'===============================Test Case 1 to Test Case 12=====================
=====================================
Public Function MFProfileConstituent_TC1()
'Step1 and 2
'Covered in TC Driver Script
'Step 3
Call chkADRHomePage("MasterFile","Depositary Receipt Division's"
,DataTable.Value("HomePageLinks","HomePageVerification"),Environment.Value("Norm
alUser"))
Call click_WebElement("MasterFile","Depositary Receipt D
ivision'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: Logs into the Mast
er File application","Master File application is opened"
Else
Reporter.ReportEvent micFail,"Step 3: Logs into the Mast
er File application","Master File application is opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 4,5
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call pageCheck_WebEditOR("MasterFile","Profile - Constit
uent","ConstituentName;ConstituentTickerSymbol;ConstituentCUSIP")
intRowCnt=Browser("MasterFile").Page("Profile - Constituent").We
bTable("Constituent Search Results").RowCount
If intRowCnt = 2 Then
Reporter.ReportEvent micDone,"Verification of Re
sult in Result Window ","Result Window does not contain any data"
Else
Reporter.ReportEvent micWarning,"Verification of
Result in Result Window" ,"Result Window had data"
Call captureScreenshot()
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 4,5:Navigating to Pro
file->Constituent Page","Page Displayed properly"
Else
Reporter.ReportEvent micFail,"Step 4,5:Navigating to Pro
file->Constituent Page","Page Not Displayed properly"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
Call select_Menu("MasterFile","Profile - Constituent",DataTable.
Value("MenuPath","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Entering value in C
onstituent Name field( Ex: A) and Click Search","Search Results are proper"
Else
Reporter.ReportEvent micFail,"Step 6:Entering value in C
onstituent Name field( Ex: A) and Click Search","Search Results are Not proper"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("Constituent").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step 7
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
Call select_Menu("MasterFile","Profile - Constituent",DataTable.
Value("MenuPath","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Entering value in C
onstituent Ticker Symbol ( Ex: AEG ) and Click Search","Search Results are prope
r"
Else
Reporter.ReportEvent micFail,"Step 7:Entering value in C
onstituent Ticker Symbol ( Ex: AEG ) and Click Search","Search Results are Not p
roper"
Environment.Value("TestCase_Log")="True"
End If
Environment.Value("DATATABLE_ROW") = Environment.Value("DATATABL
E_ROW") + 1
DataTable.GetSheet("Constituent").SetCurrentRow(Environment.Valu
e("DATATABLE_ROW"))
'Step 8
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
Call select_Menu("MasterFile","Profile - Constituent",DataTable.
Value("MenuPath","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Entering value in C
onstituent CUSIP Field (Ex: 007924103) and Click Search","Search Results are pro
per"
Else
Reporter.ReportEvent micFail,"Step 8:Entering value in C
onstituent CUSIP Field (Ex: 007924103) and Click Search","Search Results are Not
proper"
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC2()
'Step 1 to 5
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 5:Navigating to
Profile->Constituent Page","Search Page Dispalyed properly"
Else
Reporter.ReportEvent micFail,"Step 1 to 5:Navigating to
Profile->Constituent Page","Search Page Not Dispalyed properly"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Entering value in C
onstituent Name field( Ex: A) and Click Search","Search Results are proper"
Else
Reporter.ReportEvent micFail,"Step 6:Entering value in C
onstituent Name field( Ex: A) and Click Search","Search Results are Not proper"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","The cor
responding one opens with the the following Tabs:Detail (Default),Corporate Acti
on"
Else
Reporter.ReportEvent micFail,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","The cor
responding one opens with the the following Tabs:Detail (Default),Corporate Acti
on"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call pageCheck_WebEditOR("MasterFile","Profile - Constituent","C
USIP;GICSCode;USExchange;IntlExchange;ISIN;LastSyncDate;Price(USD);Price(CAD);IN
TLTickerSymbol;SecurityType;USTickerSymbol;Name")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Checking the Detai
l tab for the following fields.Name,US Ticker Symbol,Intl Ticker Symbol,US Excha
nge,GICS Code, Last Sync Date (* for DR),CUSIP,Price (USD),Price (CAD),Intl Exch
ange,ISIN,Security Type","In Detail tab for the following fields.Name,US Ticker
Symbol,Intl Ticker Symbol,US Exchange,GICS Code, Last Sync Date (* for DR),CUSI
P,Price (USD),Price (CAD),Intl Exchange,ISIN,Security Type are present with valu
es"
Else
Reporter.ReportEvent micFail,"Step 8:Checking the Detai
l tab for the following fields.Name,US Ticker Symbol,Intl Ticker Symbol,US Excha
nge,GICS Code, Last Sync Date (* for DR),CUSIP,Price (USD),Price (CAD),Intl Exch
ange,ISIN,Security Type","In Detail tab for the following fields.Name,US Ticker
Symbol,Intl Ticker Symbol,US Exchange,GICS Code, Last Sync Date (* for DR),CUSI
P,Price (USD),Price (CAD),Intl Exchange,ISIN,Security Type are Not present "
Environment.Value("TestCase_Log")="True"
End If
'Step 9
' strChkBoolean1=Browser("MasterFile").Page("Profile - Constituent
").WebTable("Detail").ChildItem(7,2,"Image",0).Exist And Browser("MasterFile").P
age("Profile - Constituent").WebTable("Detail").ChildItem(6,2,"Image",0).Exist
' strChkBoolean2=(Browser("MasterFile").Page("Profile - Constituen
t").WebEdit("USTickerSymbol").GetROProperty("readonly")=0) And (Browser("MasterF
ile").Page("Profile - Constituent").WebEdit("Price(USD)").GetROProperty("readonl
y")=0)
'
' If strChkBoolean1 And strChkBoolean2 Then
' Reporter.ReportEvent micPass,"Step 9:Change the GICS Cod
e-Eg-45 - Information Technology, US Ticker Symbol-Eg-25BXC, US Exchange-New yor
k Stock exchange, Price (USD)-Eg-45$","Should be able to change the existing val
ues."
' Else
' Reporter.ReportEvent micFail,"Step 9:Change the GICS Cod
e-Eg-45 - Information Technology, US Ticker Symbol-Eg-25BXC, US Exchange-New yor
k Stock exchange, Price (USD)-Eg-45$","Should be able to change the existing val
ues."
' 'captureScreenshot
' Environment.Value("Execution_Log")= "False"
' Environment.Value("TestCase_Log")= "False"
' End If
'Changing GICS Code
Browser("MasterFile").Page("Profile - Constituent").WebTable("De
tail").ChildItem(7,2,"Image",0).Click
Wait(5)
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("GICSCode","Con
stituent")).Click
'Changing US Exchange
Browser("MasterFile").Page("Profile - Constituent").WebTable("De
tail").ChildItem(6,2,"Image",0).Click
Wait(3)
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("USExchange","C
onstituent")).Click
'Change US Ticker Symbol
Call Set_webEdit_Value("MasterFile","Profile - Constituent","UST
ickerSymbol",Datatable.Value("USTickerSymbol","Constituent"))
'Change Price(USD)
Call Set_webEdit_Value("MasterFile","Profile - Constituent","Pri
ce(USD)",Datatable.Value("PriceUSD","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Change the
GICS Code-Eg-45 - Information Technology, US Ticker Symbol-Eg-25BXC, US Exchange
-New york Stock exchange, Price (USD)-Eg-45$","Should be able to change the exis
ting values."
Else
Reporter.ReportEvent micFail,"Step 9:Change the GICS Cod
e-Eg-45 - Information Technology, US Ticker Symbol-Eg-25BXC, US Exchange-New yor
k Stock exchange, Price (USD)-Eg-45$","Should be able to change the existing val
ues."
Environment.Value("TestCase_Log")= "True"
End If
'Step 10
If Browser("MasterFile").Page("Profile - Constituent").WebEdit("
CUSIP").GetROProperty("readonly") And Browser("MasterFile").Page("Profile - Cons
tituent").WebEdit("SecurityType").GetROProperty("readonly") Then
Reporter.ReportEvent micPass,"Step 10:Change the CUSIP,
Security Type.","User should not be allowed to change the Values"
Else
Reporter.ReportEvent micFail,"Step 10:Change the CUSIP,
Security Type.","User should not be allowed to change the Values"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
End If
'Step 11
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Call chkFlagImage("MasterFile","Profile - Constituent","
Detail","GICS Code;US Exchange;US Ticker Symbol;Price(CAD)","Exist")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11:Saving the changes
and Checking for the Yellow flag after Changed Filelds","Save Success,Yellow F
lag Present After GICS Code field"
Else
Reporter.ReportEvent micFail,"Step 11:Saving the changes
and Checking for the Yellow flag after Changed Filelds","Save Failed"
Environment.Value("TestCase_Log")="True"
End If
' Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC3()
'Step 11, 12
If Browser("MasterFile").Page("Profile - Constituent").WebButton
("Synchronize").Exist Then
Call click_webButton("MasterFile","Profile - Con
stituent","Synchronize")
If Browser("MasterFile").Page("Profile - Constit
uent").Frame("SynchronizeFrame").Exist Then
Reporter.ReportEvent micPass,"Ve
rification of window Synchronize HOLDR constituent with DR CUSIP presence","Sync
hronize HOLDR constituent with DR CUSIP window exist"
Browser("MasterFile").Page("Prof
ile - Constituent").Frame("SynchronizeFrame").WebButton("Synchronize").Click
Reporter.ReportEvent micPass,"Ve
rification of window Synchronize HOLDR constituent with DR CUSIP Absence","Synch
ronize HOLDR constituent with DR CUSIP window closed after click on Synchronize
button"
Else
Reporter.ReportEvent micFail,"Ve
rification of window Synchronize HOLDR constituent with DR CUSIP presence","Sync
hronize HOLDR constituent with DR CUSIP window not exist"
Call captureScreenshot()
Environment.Value("Execution_Log
")= "False"
Environment.Value("TestCase_Log"
)= "False"
End If
If Environment.Value("TestCase_Log")="True" The
n
Reporter.ReportEvent micPass,"Step 11 to
12:Clicking On Synchronize and Checking The Synchronize Frame","In Frame requir
ed Fields are present and Clicked on Synchronize Button "
Else
Reporter.ReportEvent micFail,"Step 11 to
12:Clicking On Synchronize and Checking The Synchronize Frame","In Frame requir
ed Fields are Not present and Not Clicked on Synchronize Button "
Environment.Value("TestCase_Log")="True"
End If
Else
Reporter.ReportEvent micFail,"Step 11 to 12:Chec
king for Synchronize Button","Synchronize Button not Exist "
Environment.Value("Execution_Log")= "False"
Call captureScreenshot()
End If
'Step 13
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13:From the Home menu
, select DR Home","Navigated to Home Page "
Else
Reporter.ReportEvent micFail,"Step 13:From the Home menu
, select DR Home","Not Navigated to Home Page "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC4()
'Step 1
Call click_WebElement("MasterFile","Depositary Receipt Division's","Mast
erFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
'Step 2 to 6
Call ProfileConstituentSearch("MasterFile","Profile - Constituent")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 7:Following the
step 1 to Step 7 of test case 2","Got The Expected Result "
Else
Reporter.ReportEvent micFail,"Step 1 To 7:Following the
step 1 to Step 7 of test case 2","Not the Expected Result "
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call click_WebElement("MasterFile","Profile - Constituent","Corp
orateAction")
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","CA Date;CA Type;Comments","CorporateAction")
'Call pageCheck_WebEditOR("MasterFile","Profile - Constituent","
CADate;CAType;Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click on Corporate
Action Tab","Corporate Action Tab displaying with the following fields.CA Date,
CA Type, Comments "
Else
Reporter.ReportEvent micFail,"Step 8:Click on Corporate
Action Tab","Corporate Action Tab Not displaying with the following fields.CA Da
te, CA Type, Comments "
Environment.Value("TestCase_Log")="True"
End If
'Step 9,10
intInitialRowCount = Browser("MasterFile").Page("Profile - Const
ituent").WebTable("CorporateAction").RowCount
Call click_webButton("MasterFile","Profile - Constituent","Add")
Wait(2)
intFinalRowCount = Browser("MasterFile").Page("Profile - Constit
uent").WebTable("CorporateAction").RowCount
'If Browser("MasterFile").Page("Profile - Constituent").WebTable
("CorporateAction").RowCount=3 Then
If intFinalRowCount = intInitialRowCount + 1 Then
Reporter.ReportEvent micPass,"Verification for n
ew row addition in Corporate Action tabel after click on ADD button","New Row is
added to give CA Date,Ca Type and Comments"
Browser("MasterFile").Page("Profile - Constituen
t").WebTable("CorporateAction").ChildItem(intFinalRowCount ,1,"Image",0).Click
totaldate=split(DataTable.Value("CADate","Consti
tuent"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Profile - C
onstituent",strMonth,strYear,strDate)
Browser("MasterFile").Page("Profile - Constituen
t").WebTable("CorporateAction").ChildItem(intFinalRowCount ,2,"Image",0).Click
Browser("MasterFile").Page("Profile - Constituen
t").Frame("lookupFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value
("CAType","Constituent")).Click
Browser("MasterFile").Page("Profile - Constituen
t").WebEdit("name:=caCactnDescTx_7","html tag:=TEXTAREA").Set Datatable.Value("C
omments","Constituent")
Call click_Image("MasterFile","Profile - Constit
uent","SaveProfile")
Wait(5)
Else
Reporter.ReportEvent micFail,"Verification for n
ew row addition in Corporate Action tabel after click on ADD button","New Row is
NOT added to give CA Date,Ca Type and Comments"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9,10:Click on Add and
Giving CA Deatils","Given Details are updating "
Else
Reporter.ReportEvent micFail,"Step 9,10:Click on Add and
Giving CA Deatils","Given Details are NOT updating "
Environment.Value("TestCase_Log")="True"
End If
'Step 11
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11:From the Home menu
, select DR Home","Navigated to Home Page "
Else
Reporter.ReportEvent micFail,"Step 11:From the Home menu
, select DR Home","Not Navigated to Home Page "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC5()
'Step 1
Datatable.GetSheet("HomePageVerification").setcurrentRow(1)
Call click_WebElement("MasterFile","Depositary Receipt Division'
s","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
'Step 2 to 6
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 7:Following the
step 1 to Step 7 of test case 2","Got The Expected Result "
Else
Reporter.ReportEvent micFail,"Step 1 To 7:Following the
step 1 to Step 7 of test case 2","Not the Expected Result "
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call click_WebElement("MasterFile","Profile - Constituent","Corp
orateAction")
Call pageCheck_WebEditOR("MasterFile","Profile - Constituent","C
ADate;CAType;Comments")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click on Corporate
Action Tab","Corporate Action Tab displaying with the following fields.CA Date,
CA Type, Comments "
Else
Reporter.ReportEvent micFail,"Step 8:Click on Corporate
Action Tab","Corporate Action Tab Not displaying with the following fields.CA Da
te, CA Type, Comments "
Environment.Value("TestCase_Log")="True"
End If
'Step 9
strPrRowCount=Browser("MasterFile").Page("Profile - Constituent"
).WebTable("CorporateAction").RowCount
Call click_webButton("MasterFile","Profile - Constituent","Add")
strCurRowCount=Browser("MasterFile").Page("Profile - Constituent
").WebTable("CorporateAction").RowCount
If strPrRowCount < strCurRowCount Then
Reporter.ReportEvent micPass,"Step 9:Verification for ne
w row addition in Corporate Action tabel after click on ADD button","New Row is
added to give CA Date,Ca Type and Comments"
Else
Reporter.ReportEvent micFail,"Step 9:Verificatio
n for new row addition in Corporate Action tabel after click on ADD button","New
Row is NOT added to give CA Date,Ca Type and Comments"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
'Step 10
Browser("MasterFile").Page("Profile - Constituent").WebTable("Co
rporateAction").ChildItem(strCurRowCount,3,"Image",0).Click
If Browser("MasterFile").Page("Profile - Constituent").F
rame("lookupFrame").Exist Then
Reporter.ReportEvent micPass,"Step 10:Click the blue i.
near the comments Field","should be blank unless the CA was assigned from the HO
LDR profile"
Else
Reporter.ReportEvent micFail,"Step 10:Click the blue i.
near the comments Field","should be blank unless the CA was assigned from the HO
LDR profile"
Call captureScreenshot()
Environment.Value("Execution_Log")= "False"
End If
'Step 11
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 11:From the Home menu
, select DR Home","Navigated to Home Page "
Else
Reporter.ReportEvent micFail,"Step 11:From the Home menu
, select DR Home","Not Navigated to Home Page "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC6()
'Step1 to 5
Datatable.GetSheet("HomePageVerification").setcurrentRow(1)
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 To 5:Navigating to
Profile->Constituent Page","Page Displayed properly"
Else
Reporter.ReportEvent micFail,"Step 1 To 5:Navigating to
Profile->Constituent Page","Page Not Displayed properly"
Environment.Value("TestCase_Log")="True"
End If
'Step 6
Call click_Image("MasterFile","Profile - Constituent","New")
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 6:Click on New button
.","Profile - Constituent Profile screen with the screen name as New Constituent
and Details Tab as default prompting us to enter the values."
Else
Reporter.ReportEvent micFail,"Step 6:Click on New button
.","Profile - Constituent Profile screen with the screen name as New Constituent
and Details Tab as default prompting us to enter the values."
Environment.Value("TestCase_Log")="True"
End If
'Step 7
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:With out entering a
ny values click Save","Clicked on Save"
Else
Reporter.ReportEvent micFail,"Step 7:With out entering a
ny values click Save","Not Clicked on Save"
Environment.Value("TestCase_Log")="True"
End If
Wait(5)
'Step 8 to 12
Call chkValidationErrorDetailsPrompt("MasterFile","Profile - Con
stituent","Validation Error","US Exchange;Name;US Ticker Symbol;CUSIP","USExchan
ge;Name;USTickerSymbol;CUSIP","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8 to 12:Clicking on
US Exchange,Name,US Ticker Symbol,CUSIP in the Validation error Window ","US Ex
change,Name,US Ticker Symbol,CUSIP in New Constituent window marking with red.
"
Else
Reporter.ReportEvent micFail,"Step 8 to 12:Clicking on
US Exchange,Name,US Ticker Symbol,CUSIP in the Validation error Window ","US Ex
change,Name,US Ticker Symbol,CUSIP in New Constituent window Not marking with
red."
Environment.Value("TestCase_Log")="True"
End If
'Step 13 ,14
Browser("MasterFile").Page("Profile - Constituent").WebTable("De
tail").ChildItem(6,2,"Image",0).Click
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("USExchange","C
onstituent")).Click
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Wait(5)
Call chkValidationErrorDetailsPrompt("MasterFile","Profile - Con
stituent","Validation Error","Name;US Ticker Symbol;CUSIP","Name;USTickerSymbol;
CUSIP","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13,14:Clicking on Na
me,US Ticker Symbol,CUSIP in the Validation error Window ","Name,US Ticker Symb
ol,CUSIP in New Constituent window marking with red."
Else
Reporter.ReportEvent micFail,"Step 13,14:Clicking on Na
me,US Ticker Symbol,CUSIP in the Validation error Window ","Name,US Ticker Symb
ol,CUSIP in New Constituent window Not marking with red."
Environment.Value("TestCase_Log")="True"
End If
'Step 15,16
Call Set_webEdit_Value("MasterFile","Profile - Constituent","Nam
e",Datatable.Value("ConstituentName","Constituent"))
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Wait(5)
Call chkValidationErrorDetailsPrompt("MasterFile","Profile - Con
stituent","Validation Error","US Ticker Symbol;CUSIP","USTickerSymbol;CUSIP","De
tail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15,16:Clicking on US
Ticker Symbol,CUSIP in the Validation error Window ","US Ticker Symbol,CUSIP i
n New Constituent window marking with red."
Else
Reporter.ReportEvent micFail,"Step 15,16:Clicking on US
Ticker Symbol,CUSIP in the Validation error Window ","US Ticker Symbol,CUSIP
in New Constituent window Not marking with red."
Environment.Value("TestCase_Log")="True"
End If
'Step 17,18
Call Set_webEdit_Value("MasterFile","Profile - Constituent","UST
ickerSymbol",Datatable.Value("ConstituentTickerSymbol","Constituent"))
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Wait(5)
Call chkValidationErrorDetailsPrompt("MasterFile","Profile - Con
stituent","Validation Error","CUSIP","CUSIP","Detail")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 17,18:Clicking on CUS
IP in the Validation error Window ","CUSIP in New Constituent window marking
with red."
Else
Reporter.ReportEvent micFail,"Step 17,18:Clicking on CU
SIP in the Validation error Window ","CUSIP in New Constituent window Not mar
king with red."
Environment.Value("TestCase_Log")="True"
End If
'Step 19
Call Set_webEdit_Value("MasterFile","Profile - Constituent","CUS
IP",Datatable.Value("ConstituentCUSIP","Constituent"))
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist T
hen
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Call chkFlagImage("MasterFile","Profile - Constituent","Detail",
"Name;CUSIP;US Ticker Symbol;Price(USD);Intl Ticker Symbol;Price(CAD);US Exchang
e;Intl Exchange;GICS Code;ISIN","Exist")
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19:Fill the CUSIP and
Click Save","Values saved and Yellow Flag should be seen next to the fields.."
Else
Reporter.ReportEvent micFail,"Step 19:Fill the CUSIP an
d Click Save ","Values saved and Yellow Flag should be seen next to the fields..
"
Environment.Value("TestCase_Log")="True"
End If
'Step 20
Call Set_webEdit_Value("MasterFile","Profile - Constituent","Pri
ce(USD)",Datatable.Value("PriceUSD","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20:Fill the Price(USD
) ","The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 20:Fill the Price(USD
) ","The value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 21
Call Set_webEdit_Value("MasterFile","Profile - Constituent","Pri
ce(CAD)",Datatable.Value("PriceCAD","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21:Fill the Price(CAD
) ","The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 21:Fill the Price(CAD
) ","The value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 22
Call Set_webEdit_Value("MasterFile","Profile - Constituent","INT
LTickerSymbol",Datatable.Value("IntlTickerSymbol","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22:Fill the Intl Tick
er Symbol ","The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 22:Fill the Intl Tick
er Symbol ","The value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 23
Browser("MasterFile").Page("Profile - Constituent").WebTable("De
tail").ChildItem(6,4,"Image",0).Click
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("IntlExchange",
"Constituent")).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 23:Select Intl Excha
nge by clicking on the '?' symbol. ","The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 23:Select Intl Excha
nge by clicking on the '?' symbol. ","The value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 24
Browser("MasterFile").Page("Profile - Constituent").WebTable("De
tail").ChildItem(7,2,"Image",0).Click
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("GICSCode","Con
stituent")).Click
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 24:Select GICS Code b
y clicking on the '?' symbol. ","The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 24:Select GICS Code
by clicking on the '?' symbol. ","The value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 25
Call Set_webEdit_Value("MasterFile","Profile - Constituent","ISI
N",Datatable.Value("ISIN","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22:Fill the ISIN ","
The value is displayed.."
Else
Reporter.ReportEvent micFail,"Step 22:Fill the ISIN ","T
he value is NOT displayed.."
Environment.Value("TestCase_Log")="True"
End If
'Step 26
' If get_webEdit_Value("MasterFile","Profile - Constituent","Secur
ityType")<>"" And get_webEdit_Value("MasterFile","Profile - Constituent","LastS
yncDate")<>"" Then
' Reporter.ReportEvent micPass,"Step 26:Verifying the LastSyncDate
and Security types are auto populated or not","Populated as "&get_webEdit_Value
("MasterFile","Profile - Constituent","LastSyncDate")&","&get_webEdit_Value("Mas
terFile","Profile - Constituent","SecurityType")
' Else
' Reporter.ReportEvent micFail,"Step 26:Verifying the LastSyncDate
and Security types are auto populated or not","Not Populated"
' 'captureScreenshot
' Environment.Value("Execution_Log")= "False"
' Environment.Value("TestCase_Log")="True"
' End If
If get_webEdit_Value("MasterFile","Profile - Constituent","Secur
ityType")<>"" Then
Reporter.ReportEvent micPass,"Step 26:Verifying the Security typ
es are auto populated or not","Populated as " &get_webEdit_Value("MasterFile","P
rofile - Constituent","SecurityType")
Else
Reporter.ReportEvent micFail,"Step 26:Verifying the Security typ
es are auto populated or not","Not Populated"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
End If
'Step 27
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
Wait(5)
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 27:Click on Save ","S
aved.."
Else
Reporter.ReportEvent micFail,"Step 27:Click on Save ","N
ot Saved.."
Environment.Value("TestCase_Log")="True"
End If
'Step 28
Call click_webElement("MasterFile","Profile - Constituent","Corp
orateAction")
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Corporate Action;CA Date;CA Type;Comments","CorporateAction")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 28:Click on Corporate
Action Tab","Corporate Action Tab displaying with the following fields.CA Date,
CA Type, Comments "
Else
Reporter.ReportEvent micFail,"Step 28:Click on Corporate
Action Tab","Corporate Action Tab Not displaying with the following fields.CA D
ate, CA Type, Comments "
Environment.Value("TestCase_Log")="True"
End If
'Step 29
Call click_webButton("MasterFile","Profile - Constituent","Add")
If Browser("MasterFile").Page("Profile - Constituent").WebTable(
"CorporateAction").RowCount = 3 Then
Reporter.ReportEvent micPass,"Step 29:Verification of Corporate
Action Table after click on ADD button","A new row is Added"
Else
Reporter.ReportEvent micFail,"Step 29:Verification of Corporate
Action Table after click on ADD button","A new row is not Added"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")="True"
End If
'Step 30
Browser("MasterFile").Page("Profile - Constituent").WebTable("Co
rporateAction").ChildItem(3,1,"Image",0).Click
totaldate=split(DataTable.Value("CADate","Constituent"),";")
strMonth=totaldate(1)
strYear=totaldate(2)
strDate=totaldate(0)
Call ClickIcon_SetDate("MasterFile","Profile - Constituent",strM
onth,strYear,strDate)
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist T
hen
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
End If
Browser("MasterFile").Page("Profile - Constituent").WebTable("Co
rporateAction").ChildItem(3,2,"Image",0).Click
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("CAType","Const
ituent")).Click
Call Set_webEdit_Value("MasterFile","Profile - Constituent","Com
ments",Datatable.Value("Comments","Constituent"))
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 30:Giving CA Deatils"
,"Given Details are updating "
Else
Reporter.ReportEvent micFail,"Step 30:Giving CA Deatils"
,"Given Details are Not updating "
Environment.Value("TestCase_Log")="True"
End If
'Step 31
Call click_webElement("MasterFile","Profile - Constituent","Cons
tituentSearchLink")
Call pageCheck_WebEditOR("MasterFile","Profile - Constituent","C
onstituentName;ConstituentTickerSymbol;ConstituentCUSIP")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 31:Click on Constitue
nt Search","Profile - Constituent Profile Search screen displayed with search fi
elds. "
Else
Reporter.ReportEvent micFail,"Step 31:Click on Constitue
nt Search","Profile - Constituent Profile Search screen not displayed with searc
h fields. "
Environment.Value("TestCase_Log")="True"
End If
'Step 32
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 32:Searching the nam
e using which we created ","Search is successful and the search result holding o
ne row, each value is same as entered while creating."
Else
Reporter.ReportEvent micFail,"Step 32:Searching the nam
e using which we created ","Search is Not successful "
Environment.Value("TestCase_Log")="True"
End If
'Step 33
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 33:From the Home menu
, select DR Home","Navigated to Home Page "
Else
Reporter.ReportEvent micFail,"Step 33:From the Home menu
, select DR Home","Not Navigated to Home Page "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public function MFProfileConstituent_TC7()
' 'Step 1
' Call MFProfileConstituent_TC2()
Call logoutfromApp("MasterFile","Depositary Receipt Division's")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Else
Reporter.ReportEvent micFail,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Environment.Value("TestCase_Log")="True"
End If
'Step 2
DataTable.GetSheet("MFLogin").SetCurrentRow(2)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Else
Reporter.ReportEvent micFail,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call ApprovalFunction("MasterFile","Constituent Profile","CUSIP;
Name;Last User Updated;Last Updated",DataTAble.Value("ConstituentName","Constitu
ent"),"Approved the Changes Made","Approved","Pending Approval")
'Step 12
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12:Click Logout ","A
ble to Logout of the application."
Else
Reporter.ReportEvent micFail,"Step 12:Click Logout ","A
ble to Logout of the application."
Environment.Value("TestCase_Log")="True"
End If
'Step 13
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","User","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13:Repeat step 1--5
to test case 1 ","Expected result of up to Step 5 - Test case 1."
Else
Reporter.ReportEvent micFail,"Step 13:Repeat step 1--5
to test case 1 ","Expected result of up to Step 5 - Test case 1."
Environment.Value("TestCase_Log")="True"
End If
'Step 14
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
Call chkFlagImage("MasterFile","Profile - Constituent","Detail",
"GICS Code;US Exchange;US Ticker Symbol;Price(CAD)","Not Exist")
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14:Repeat step 6 of T
est Case 1,Going to the particular Constituent and looking for Flag ","Expected
result of Step 6 - Test case 1,No Flag found."
Else
Reporter.ReportEvent micFail,"Step 14:Repeat step 6 of T
est Case 1,Going to the particular Constituent and looking for Flag ","Expected
result of Step 6 - Test case 1,No Flag found."
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public function MFProfileConstituent_TC8()
'Step 1
Call MFProfileConstituent_TC2()
Call logoutfromApp("MasterFile","Depositary Receipt Divi
sion's")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Else
Reporter.ReportEvent micFail,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Environment.Value("TestCase_Log")="True"
End If
'Step 2
DataTable.GetSheet("MFLogin").SetCurrentRow(2)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Else
Reporter.ReportEvent micFail,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Environment.Value("TestCase_Log")="True"
End If
'Step 3
Call ApprovalFunction("MasterFile","Constituent Profile","CUSIP;
Name;Last User Updated;Last Updated",DataTAble.Value("ConstituentName","Constitu
ent"),"Rejected the Changes Made","Rejected","Pending Approval")
'Step 12
Call logoutfromApp("MasterFile","Approval Queue Item Search")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12:Click Logout ","ab
le to Logout of the application."
Else
Reporter.ReportEvent micFail,"Step 12:Click Logout ","ab
le to Logout of the application."
Environment.Value("TestCase_Log")="True"
End If
'Step 13
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","User","MFLogin")
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13:Repeat step 1--5 o
f test case 1","Expected result of Step 5 - Test case 1."
Else
Reporter.ReportEvent micFail,"Step 13:Repeat step 1--5 o
f test case 1","Expected result of Step 5 - Test case 1."
Environment.Value("TestCase_Log")="True"
End If
'Step 14
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 14:Execute step 6 of
test cases 1","Expected result of step 6 of Test cases 1."
Else
Reporter.ReportEvent micFail,"Step 14:Execute step 6 of
test cases 1","Expected result of step 6 of Test cases 1."
Environment.Value("TestCase_Log")="True"
End If
'Step 15
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
Call chkRejectedFlagImage("MasterFile","Profile - Constituent","
Detail","GICS Code;US Exchange;US Ticker Symbol;Price(CAD)","Exist")
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 15:Going to the parti
cular HOLDR which edited and go to all the tabs where you edited and see for Fla
g","Red Flag should be seen "
Else
Reporter.ReportEvent micFail,"Step 15:Going to the parti
cular HOLDR which edited and go to all the tabs where you edited and see for Fla
g","Red Flag should be seen "
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC9()
'Step 1 to 6
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Else
Reporter.ReportEvent micFail,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Else
Reporter.ReportEvent micFail,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call click_Image("MasterFile","Profile - Constituent","RelatedPr
ofiles")
If Browser("MasterFile").Page("Profile - Constituent").Frame("lo
okupFrame").Exist Then
Reporter.ReportEvent micPass,"Verify the Related Profile Window
is Displaying or Not","Displaying Properly with Related Profiles as :"&Browser("
MasterFile").Page("Profile - Constituent").Frame("lookupFrame").WebTable("GICSCo
deTable").GetROProperty("innertext")
Else
Reporter.ReportEvent micFail,"Verify the Related Profile Window
is Displaying or Not","Not Displaying"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click on Related Bu
tton","Related Profile Window opened "
Else
Reporter.ReportEvent micFail,"Step 8:Click on Related Bu
tton","Related Profile Window opened"
Environment.Value("TestCase_Log")="True"
End If
'Step 9
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:From the Home menu,
select DR Home","DR Home displayed with the corresponding links."
Else
Reporter.ReportEvent micFail,"Step 9:From the Home menu,
select DR Home","DR Home displayed with the corresponding links."
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC10()
'Step 1 to 6
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Else
Reporter.ReportEvent micFail,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Else
Reporter.ReportEvent micFail,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call click_Image("MasterFile","Profile - Constituent","PreviewPr
ofile")
If Browser("MasterFile").Page("Profile - Constituent").Frame("Pr
iviewFrame").Exist Then
Call frameCheck_WebEdit("MasterFile","Profile - Constituent","Pr
iviewFrame","caCactnEvntDt_0;cusipNo_0;DisplaycaCactnTypeCd_0;DisplaygicsCd_0;Di
splaymktCd_0;DisplayscndMktCd_0;isinNo_0;lstPendSyncDt_0;mktPrcAm_0;scndMktPrcAm
_0;scndMktTsymNm_0;secTypeCd_0;tsymNm_0;usSecNm_0")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8:Click on Preview Bu
tton","Constituent Profile screen displayed with printable format"
Else
Reporter.ReportEvent micFail,"Step 8:Click on Preview Bu
tton","Constituent Profile screen displayed with printable format"
Environment.Value("TestCase_Log")="True"
End If
'step 9
Browser("MasterFile").Page("Profile - Constituent").Frame("Privi
ewFrame").Image("Back").Click
If Browser("MasterFile").Page("Profile - Constituent").Frame("P
riviewFrame").webEdit("caCactnDescTx_0").Exist Then
Reporter.ReportEvent micFail,"Verification of Return Button Func
tion in Constituent Priview Frame","Constituent profile screen is not taken back
"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
Else
Reporter.ReportEvent micPass,"Verification of Return Button Func
tion in Constituent Priview Frame","Constituent profile screen is taken back and
all fields are displaying with values "
End If
Else
Reporter.ReportEvent micFail,"Verification of Priview Profile","
Priview Button is not working and Frame is not Displayed"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 9:Click on Return but
ton","HOLDR Profile screen displayed with all details."
Else
Reporter.ReportEvent micFail,"Step 9:Click on Return but
ton","HOLDR Profile screen displayed with all details."
Environment.Value("TestCase_Log")="True"
End If
'Step 10
Call select_Menu("MasterFile","Profile - Constituent","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 displayed with the corresponding links."
Else
Reporter.ReportEvent micFail,"Step 10:From the Home menu
, select DR Home","DR Home displayed with the corresponding links."
Environment.Value("TestCase_Log")="True"
End If
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC11()
'Step 1
Call MFProfileConstituent_TC2()
Call logoutfromApp("MasterFile","Profile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Else
Reporter.ReportEvent micFail,"Step 1:Execute Test cases
2","Expected result of test case 2 "
Environment.Value("TestCase_Log")="True"
End If
'Step 2
DataTable.GetSheet("MFLogin").SetCurrentRow(2)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","Approver","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Else
Reporter.ReportEvent micFail,"Step 2:Login with user wit
h approval Power"," able to login in to the application "
Environment.Value("TestCase_Log")="True"
End If
'Step 3 to 11
Call ApprovalFunction("MasterFile","Constituent Profile","CUSIP;
Name;Last User Updated;Last Updated",DataTable.Value("ConstituentName","Constitu
ent"),"Approved the Changes Made","Approved","Pending Approval")
Call logoutfromApp("MasterFile","Approval Queue Item Sea
rch")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 3 to 11:Approve the c
hanges made to constituent ","Successfully Approved"
Else
Reporter.ReportEvent micFail,"Step 3 to 11:Approve the c
hanges made to constituent ","Not Successfully Approved"
Environment.Value("TestCase_Log")="True"
End If
'Step 12
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","User","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 12:Login as a Ca_User
","The user is logged in.."
Else
Reporter.ReportEvent micFail,"Step 12:Login as a Ca_User
","The user is Not logged in.."
Environment.Value("TestCase_Log")="True"
End If
'Step 13 to 17
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 13 to 17:Go to Master
File,Profile Constituent Search Page,Search the changed and approved constituent
,click on it,","Successfully Navigated "
Else
Reporter.ReportEvent micFail,"Step 13 to 17:Go to Master
File,Profile Constituent Search Page,Search the changed and approved constituent
,click on it,","Successfully Navigated "
Environment.Value("TestCase_Log")="True"
End If
'Step 18
Browser("MasterFile").Page("Profile - Constituent").WebTable("D
etail").ChildItem(7,2,"Image",0).Click
Wait(5)
Browser("MasterFile").Page("Profile - Constituent").Frame("looku
pFrame").WebElement("html tag:=TD","innertext:="&Datatable.Value("NewGICSCode","
Constituent")).Click
Call click_Image("MasterFile","Profile - Constituent","SaveProfi
le")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 18:Change the GICS co
de by clicking on the '?' icon and selecting a new value. Click on save.","Save
Success"
Else
Reporter.ReportEvent micFail,"Step 18:Change the GICS co
de by clicking on the '?' icon and selecting a new value. Click on save.","Save
Success"
Environment.Value("TestCase_Log")="True"
End If
'Step 19
Call logoutfromApp("MasterFile","Profile - Constituent")
DataTable.GetSheet("MFLogin").SetCurrentRow(2)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","Approver","MFLogin")
Call ApprovalFunction("MasterFile","Constituent Profile"
,"CUSIP;Name;Last User Updated;Last Updated",DataTable.Value("ConstituentName","
Constituent"),"Approved the Changes Made","Approved","Pending Approval")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 19:Logout and login a
s Ca_Approver and approve the fields by following the steps 2 to 12 above ","The
values should be approved"
Else
Reporter.ReportEvent micFail,"Step 19:Logout and login a
s Ca_Approver and approve the fields by following the steps 2 to 12 above ","The
values should be approved"
Environment.Value("TestCase_Log")="True"
End If
'Step 20
Call logoutfromApp("MasterFile","Approval Queue Item Search")
DataTable.GetSheet("MFLogin").SetCurrentRow(1)
Call invoke_URL("MasterFile","Login Page",DataTable.Value("URL",
"MFLogin"))
Call login("MasterFile","Login Page","User","MFLogin")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 20:Logout and Login
as a Ca_User","The user is logged in."
Else
Reporter.ReportEvent micFail,"Step 20:Logout and Login
as a Ca_User","The user is logged in."
Environment.Value("TestCase_Log")="True"
End If
'Step 21
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 21:Click on Master Fi
le ","Master File screen is displayed with Welcome Message and the Built Date. "
Else
Reporter.ReportEvent micFail,"Step 21:Click on Master Fi
le ","Master File screen is displayed with Welcome Message and the Built Date. "
Environment.Value("TestCase_Log")="True"
End If
'Step 22 to 25
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 22 to 25:Go to Master
File,Profile Constituent Search Page,Search the changed and approved constituent
,click on it,","Successfully Navigated "
Else
Reporter.ReportEvent micFail,"Step 22 to 25:Go to Master
File,Profile Constituent Search Page,Search the changed and approved constituent
,click on it,","Successfully Navigated "
Environment.Value("TestCase_Log")="True"
End If
'Step 26
Call click_Image("MasterFile","Profile - Constituent","ProfileAu
dit")
If Browser("MasterFile").Page("Profile - Constituent").Frame("lo
okupFrame").Exist Then
Reporter.ReportEvent micPass,"Verification of Pr
ofile Audit Button Function","Frame Displaying all the changes that made on GICS
Field as"&Browser("MasterFile").Page("Profile - Constituent").Frame("lookupFram
e").WebTable("GICSCodeTable").GetROProperty("innertext")
Else
Reporter.ReportEvent micFail,"Verification of Pr
ofile Audit Button Function","Frame is not Displaying changes that made on diff
Fields"
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 26:Click on the Audit
button. ","Displayed the changes last made before and after values, user ids an
d time stamps.."
Else
Reporter.ReportEvent micFail,"Step 26:Click on the Audit
button. ","Displayed the changes last made before and after values, user ids an
d time stamps.."
Environment.Value("TestCase_Log")="True"
End If
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
End Function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++
Public Function MFProfileConstituent_TC12()
'Step 1 to 6
Call click_WebElement("MasterFile","Depositary Receipt D
ivision's","MasterFile")
Call select_Menu("MasterFile","MasterFile",DataTable.Value("Menu
Path","Constituent"))
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
Call ProfileConstituentSearchResultVerification("MasterFile","Pr
ofile - Constituent")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Else
Reporter.ReportEvent micFail,"Step 1 to 6:From the Home
menu, select DR Home,Step 3 to Step 6 of test case 1","Expected Result"
Environment.Value("TestCase_Log")="True"
End If
'Step 7
strVal=Browser("MasterFile").Page("Profile - Constituent").WebTa
ble("Constituent Search Results").GetCellData(3,1)
Browser("MasterFile").Page("Profile - Constituent").WebElement("
html tag:=TD","innertext:="&strVal&"").Click
Wait(5)
Call pageCheck_WebElementinTable("MasterFile","Profile - Constit
uent","Detail;Corporate Action","DetailCorporateActionLabels")
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Else
Reporter.ReportEvent micFail,"Step 7:Click and open the
search result.( Note click with is in maroon colour and not the HOLDR)","Corresp
onding one opens with Detail (Default),Corporate Action Tabs"
Environment.Value("TestCase_Log")="True"
End If
'Step 8
Call click_Image("MasterFile","Profile - Constituent","DeletePro
file")
If Browser("MasterFile").Dialog("DeleteRowConformation").Exist T
hen
Reporter.ReportEvent micPass,"Verification of Delete Button Func
tion","Dialog asking for confirmation is displaying"
'Step 9
Browser("MasterFile").Dialog("DeleteRowConformation").WinButton(
"OK").Click
Wait(4)
'Step 10
Call ProfileConstituentSearch("MasterFile","Profile - Constituen
t")
If Browser("MasterFile").Page("Profile - Constituent").WebTable
("Constituent Search Results").RowCount = 2 Then
Reporter.ReportEvent micPass,"Verification of Delete Button Func
tion","Result page is not displaying the Deleted Constituent"
Else
Reporter.ReportEvent micFail,"Verification of Delete Button Func
tion","Result page is still displaying the Deleted Enterprise"
'captureScreenshot
Environment.Value("Execution_Log")= "False"
Environment.Value("TestCase_Log")= "False"
End If
Else
Reporter.ReportEvent micFail,"Verification of Delete Button Func
tion","Dialog asking for confirmation is not displaying"
End If
If Environment.Value("TestCase_Log")="True" Then
Reporter.ReportEvent micPass,"Step 8,9,10:Click on Delet
e Button,Click Ok on Confirmation Window,Search the Same deleted Constituent Pro
file by Name or by Constituent Ticker Symbol or by Constituent CUSIP","Displayed
A Microsoft Window stating 'Are u Sure want to delete the Profile?' With Ok or
Cancel Button.,Search result have zero rows."
Else
Reporter.ReportEvent micFail,"Step 8,9,10:Click on Delet
e Button,Click Ok on Confirmation Window,Search the Same deleted Constituent Pro
file by Name or by Constituent Ticker Symbol or by Constituent CUSIP","Displayed
A Microsoft Window stating 'Are u Sure want to delete the Profile?' With Ok or
Cancel Button.,Search result have zero rows."
Environment.Value("TestCase_Log")="True"
End If
'Step 11
Call select_Menu("MasterFile","Profile - Constituent","Home;DR H
ome")
'log out is covered in TC Driver script
End Function

You might also like