NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

############################################################################
# Author: Richa Singh
# Pupose: To Verify that cash drop cannot be posted for location already posted
############################################################################

@pytest.mark.app(constants.CMPAPP_DRIVER)
def test_Accounting_Drops_CMP_DROP_012(bootstrap):
basePage = BasePage(bootstrap)
genericfunc = CmpGenericActions(bootstrap)
thome = ToolsHome(bootstrap)
security = Security(bootstrap)
login = CMPLoginPage(bootstrap)
phome = PlayerHome(bootstrap)
Ahome = Accounting(bootstrap)
storage = Storage(bootstrap)

#getting values from toml
getLocation=basePage.getData("Location")
getCashDrop = basePage.getData("cashDrop")
selectChoice = basePage.getData("choice")
selectKeyName = basePage.getData("keyName")
newDataValue = basePage.getData("dataValue")
keyData = basePage.getData("keyData")
documentData = basePage.getData("Doc") + str(random.randrange(1000, 1000000))
remarks = basePage.getData("Remark") + str(random.randrange(1000, 1000000))
getValues = basePage.getData("Values")
msgText = "CASHDROP already posted for Locn " +constants.LOGIN_LOCATION+ " Gaming Date 30-Oct-2012 Shift 1; void previous transaction(s) first""

#Go to Player Home
phome.goToPlayerHome()

#Verify the Player Home
assert True == phome.verifyPlayerHome()

#Go to Tools HomePage
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#go to security page
genericfunc.jumpToScreensWithTree(constants.SECURITY)
security.goToSecurity()

#Getting values from toml
codeList = basePage.getData("CodeList")
action = basePage.getData("action")

#Changing Security Code
security.changeMultipleSecurityCodes(action, codeList, constants.EMP_ROLE)

#Logout and login for enabling security codes
login.applicationLogout(constants.LOGOUT_VERIFY)
login.loginWithValidCredentials(constants.USERNAME,constants.PASSWORD,constants.LOGIN_LOCATION,constants.ENV)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#Jump to Storage
genericfunc.jumpToScreens(constants.STORAGE)

#Selecting Option casino
storage.chooseSection(selectChoice)

# Updating Values in Storage
storage.updateDataValue1(newDataValue,selectKeyName,keyData)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#Refresh
phome.goToPlayerHome()

# To verify if Player's Home is open
assert True == phome.verifyPlayerHome()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to cash drop
genericfunc.jumpToScreens(getCashDrop)

#Entering amount
Ahome.enterValues1(getValues)

#entering document name
Ahome.enterDocument(documentData)

#entering remarks
Ahome.enterCashDropRemarks(remarks)

#clicking on submit button
Ahome.clickOnSubmitButton()

#Verifying the Popup
msgPopup = genericfunc.verifyOkPopUpText()

#clicking OK button
genericfunc.clickOkPopUp()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory again
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to cash drop
genericfunc.jumpToScreens(getCashDrop)

#Entering amount
Ahome.enterValues(getValues)

#entering document name
Ahome.enterDocument(documentData)

#entering remarks
Ahome.enterCashDropRemarks(remarks)

#clicking on submit button
Ahome.clickOnSubmitButton()

#clicking OK button
msgpopup = genericfunc.clickOkPopUp()

#verifying transaction is not posted
assert msgText == msgpopup

#clicking cancel
genericfunc.cmdCancel()

#Go to Player Home
phome.goToPlayerHome()

#Verify the Player Home
assert True == phome.verifyPlayerHome()
############################################################################
# Author: Richa Singh
# Pupose: To verify the remark mandatory for the 'Void Cash drop' transaction.
############################################################################
@pytest.mark.app(constants.CMPAPP_DRIVER)
def test_Accounting_Drops_CMP_DROP_021(bootstrap):
basePage = BasePage(bootstrap)
genericfunc = CmpGenericActions(bootstrap)
thome = ToolsHome(bootstrap)
security = Security(bootstrap)
login = CMPLoginPage(bootstrap)
phome = PlayerHome(bootstrap)
Ahome = Accounting(bootstrap)
storage = Storage(bootstrap)

#getting values from toml
getLocation=basePage.getData("Location")
getCashDrop = basePage.getData("cashDrop")
selectChoice = basePage.getData("choice")
selectKeyName = basePage.getData("keyName")
newDataValue = basePage.getData("dataValue")
keyData = basePage.getData("keyData")
documentData = basePage.getData("Doc") + str(random.randrange(1000, 1000000))
remarks = basePage.getData("Remark") + str(random.randrange(1000, 1000000))
getValues = basePage.getData("Values")
msgText = "Remarks are required. Please enter remarks."

#Go to Player Home
phome.goToPlayerHome()

#Verify the Player Home
assert True == phome.verifyPlayerHome()

#Go to Tools HomePage
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#go to security page
genericfunc.jumpToScreensWithTree(constants.SECURITY)
security.goToSecurity()

#Getting values from toml
codeList = basePage.getData("CodeList")
action = basePage.getData("action")

#Changing Security Code
security.changeMultipleSecurityCodes(action, codeList, constants.EMP_ROLE)

#Logout and login for enabling security codes
login.applicationLogout(constants.LOGOUT_VERIFY)
login.loginWithValidCredentials(constants.USERNAME,constants.PASSWORD,constants.LOGIN_LOCATION,constants.ENV)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#Jump to Storage
genericfunc.jumpToScreens(constants.STORAGE)

#Selecting Option casino
storage.chooseSection(selectChoice)

# Updating Values in Storage
storage.updateDataValue1(newDataValue,selectKeyName,keyData)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#Refresh
phome.goToPlayerHome()

# To verify if Player's Home is open
assert True == phome.verifyPlayerHome()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to cash drop
genericfunc.jumpToScreens(getCashDrop)

#Entering amount
Ahome.enterValues(getValues)

#entering document name
Ahome.enterDocument(documentData)

#entering remarks
Ahome.enterCashDropRemarks(remarks)

#clicking on submit button
Ahome.clickOnSubmitButton()

#Verifying the Popup
msgPopup = genericfunc.verifyOkPopUpText()

#clicking OK button
genericfunc.clickOkPopUp()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory again
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to void cash drop window
genericfunc.jumpToScreens(constants.ENTER_VOID_CASH_DROP)

#selecting first Row
genericfunc.selectFirstRow()

#click on submit button
Ahome.clickOnSubmitButton()

#verifying Ok pop-up
msgPopup = genericfunc.verifyOkPopUpText()

#verifying the result "Remarks are required, please enter the remark."
assert msgText == msgPopup

#clicking OK button
genericfunc.clickOkPopUp()

#closing the cash drop window
genericfunc.cmdCancel()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#clicking cancel
genericfunc.cmdCancel()

#Go to Player Home
phome.goToPlayerHome()

#Verify the Player Home
assert True == phome.verifyPlayerHome()





############################################################################
# Author: Richa Singh
# Pupose: To verify the remark mandatory for the 'Estimated Void Cash drop' transaction.
############################################################################
@pytest.mark.app(constants.CMPAPP_DRIVER)
def test_Accounting_Drops_CMP_DROP_061(bootstrap):
basePage = BasePage(bootstrap)
genericfunc = CmpGenericActions(bootstrap)
thome = ToolsHome(bootstrap)
security = Security(bootstrap)
login = CMPLoginPage(bootstrap)
phome = PlayerHome(bootstrap)
Ahome = Accounting(bootstrap)
storage = Storage(bootstrap)

#getting values from toml
getLocation=basePage.getData("Location")
selectChoice = basePage.getData("choice")
selectKeyName = basePage.getData("keyName")
newDataValue = basePage.getData("dataValue")
keyData = basePage.getData("keyData")
remarks = basePage.getData("remark") + str(random.randrange(1000, 1000000))
getValues = basePage.getData("Values")

# Go to Player home
phome.goToPlayerHome()

# To verify if Player's Home is open
assert True == phome.verifyPlayerHome()

#Go to Tools HomePage
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#go to security page
genericfunc.jumpToScreensWithTree(constants.SECURITY)
security.goToSecurity()

#Getting values from toml
codeList = basePage.getData("CodeList")
action = basePage.getData("action")

#Changing Security Code
security.changeMultipleSecurityCodes(action, codeList, constants.EMP_ROLE)

#Logout and login for enabling security codes
login.applicationLogout(constants.LOGOUT_VERIFY)
login.loginWithValidCredentials(constants.USERNAME,constants.PASSWORD,constants.LOGIN_LOCATION,constants.ENV)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#go to storage page
genericfunc.jumpToScreensWithTree(constants.STORAGE)

#Selecting Option casino
storage.chooseSection(selectChoice)

# Updating Values in Storage
storage.updateDataValue1(newDataValue,selectKeyName,keyData)

#going to Tools Home Page
thome.goToToolsHome()

#Verify Tools Home
assert True == thome.verifyToolsHome()

#Refresh
phome.goToPlayerHome()

# To verify if Player's Home is open
assert True == phome.verifyPlayerHome()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory again
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to void cash drop window
genericfunc.jumpToScreens(constants.ESTIMATED_CASH_DROP)

#enter amount
Ahome.enterValues(getValues)

#entering remarks
Ahome.enterCashDropRemarks(remarks)

#click on submit button
Ahome.clickOnSubmitButton()

#selecting first Row
genericfunc.selectFirstRow()

#closing the estimated cash drop window
genericfunc.cmdCancel()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#selcting Loction in Location Directory again
Ahome.enterSearchType(getLocation)

#entering location in search box
Ahome.enterTextInSearchTextBox(constants.LOGIN_LOCATION)

#pressing enter key
genericfunc.keyPress('{ENTER}')

#jumping to void cash drop window
genericfunc.jumpToScreens(constants.VOID_ESTIMATED_CASH_DROP)

#select void icon
Ahome.selectVoidIcon()

#selecting first Row
genericfunc.selectFirstRow()

#submitting without entering remarks
Ahome.clickOnSubmitButton()

#assert verifying text
assert genericfunc.verifyOkPopUpText() == "Remarks are required. Please enter remarks."

#clicking OK button
genericfunc.clickOkPopUp()

#closing the cash drop window
genericfunc.cmdCancel()

#going to Acounting Home Page
Ahome.goToAccountingHome()

# To verify if Accounting's Home is open
assert True == Ahome.verifyAccountingHome()

#Go to Player Home
phome.goToPlayerHome()

#Verify the Player Home
assert True == phome.verifyPlayerHome()




[TC-124736]
action = 1
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowSubmits"]
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
autoIdOfBox="cboLocn"
autoIdOfPane="ucTranACCTG"

[TC-124641]
action = 1
Values='67.55'
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]

[TC-124614]
action = 1
Values='1000.00'
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]
Doc = ""
Remark = ""

[TC-124626]
action = 1
Values='1000.00'
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]
Doc = ""
Remark = ""

[TC-124685]
action = 1
Values='1000.00'
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]
Doc = ""
Remark =""

[TC-124610]
action = 1
Values='1000.00'
Location='l'
LocationLetter='x'
CashDrop="Enter Cash Drop"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowSubmits"]
Doc = ""
Remark =""

[TC-124629]
action =1
Location ='l'
LocationLetter='x'
Values="100"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]
choice ="Casino"
keyName = "AllowMultipleCashDrop"
keyData = "XXX"
dataValue = "0"
cashDrop = "Enter Cash Drop"
Doc = ""
Remark =""

[TC-124647]
action =1
Location ='l'
LocationLetter='x'
Values="100"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowPriorShift"]
choice ="Casino"
keyName = "RemarksRequired"
keyData = "XXX"
dataValue = "1"
cashDrop = "Enter Cash Drop"
Doc = ""
Remark =""

[TC-124688]
action =1
CodeList = "AllowVoidSecondaryApproval"
dataValue= "1"
keyName = "CheckSecondaryApproval"
keyData = "SecondaryApproval"
Location ='l'
LocationLetter='x'
choice="Company"
remark = ""

[TC-124699]
action =1
Location ='l'
LocationLetter='x'
Values="100"
CodeList = ["Accounting","LocationDirectory","EnterCashDrop","AllowSubmits"]
choice ="Casino"
keyName = "RemarksRequired"
keyData = "XXX"
dataValue = "1"
Remark =""





#Author: Richa Singh
#Purpose: selecting void Icon
def selectVoidIcon(self):
self.voidIcon.WaitForVisible()
self.voidIcon.ClickInput()
self.logger.debug("Void Icon selected")

#Author: Richa Singh
#Purpose: enter username for secondary approval
def secondaryApprovalName(self,name):
self.secondaryAuthorizeEmp.WaitForVisible()
self.secondaryAuthorizeEmp.ClickInput()
self.secondaryAuthorizeEmp.EnterText(name)
self.logger.debug("'Data Entered in Remarks' : "+ str(name))

#Author: Richa Singh
#Purpose: enter username for secondary approval
def secondaryApprovalPassword(self,password):
self.secondaryAppPassword.WaitForVisible()
self.secondaryAppPassword.ClickInput()
self.secondaryAppPassword.EnterText(password)
self.logger.debug("'Data Entered in Remarks' : "+ str(password))


#Author: Richa Singh
#Purpose: verify secondary approval window
def verifySecondaryApprovalWindow(self):
visib = False
if self.submitButton.IsVisible():
visib = True
self.logger.debug("secondary approval page is visible :"+str(visib))
return visib








     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.