NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

@pytest.mark.app(constants.CMPAPP_DRIVER)
def test_Accounting_Drops_CMP_DROP_075(bootstrap):
basePage = BasePage(bootstrap)
genericfunc = CmpGenericActions(bootstrap)
thome = ToolsHome(bootstrap)
security = Security(bootstrap)
login = CMPLoginPage(bootstrap)
phome = PlayerHome(bootstrap)
Ahome = Accounting(bootstrap)
cashDrop = CashDrop(bootstrap)
storage = Storage(bootstrap)
eCashDrop = ECashDrop(bootstrap)
dbOperations = DbOperations(bootstrap)

#getting values from toml
getLocation=basePage.getData("Location")
remarks = basePage.getData("Remark") + str(random.randrange(1000, 1000000))
codeList = basePage.getData("CodeList")
action = basePage.getData("action")
selectChoice = basePage.getData("choice")
selectKeyName1 = basePage.getData("keyName1")
newDataValue1 = basePage.getData("dataValue1")
newDataValue2 = basePage.getData("dataValue2")
keyData = basePage.getData("keyData")
selectKeyName2 = basePage.getData("keyName2")
getECashDrop = basePage.getData("Values")

#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)

#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)

#getting data from TLocn
TLocn = dbOperations.checkIfLocationExistInTLocn(constants.LOGIN_LOCATION)

#assertin TLocn Data
assert TLocn != None

#go to players home
phome.goToPlayerHome()

#Verify the player home
assert True == phome.verifyPlayerHome()

#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(newDataValue1,selectKeyName1,keyData)

# Updating Values in Storage
storage.updateDataValue1(newDataValue2,selectKeyName2,keyData)

#Refresh
phome.goToPlayerHome()

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

#go to Accounting home
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}')

#going to ECash drop
genericfunc.jumpToScreens(constants.ENTER_ECASH_DROP)

#To verify if eCash Drop window
assert True == eCashDrop.verifyECashDropWindowOpen()

#enter amount
eCashDrop.enterECashCardValue(getECashDrop)

#entering remarks
eCashDrop.enterRemarksValue(remarks)

#checking document is mandatory field
checkStar = eCashDrop.checkStarSymbol()
checkDocumentEnabled = eCashDrop.verifyEnabledDocument()

#click on submit button
cashDrop.clickOnSubmitButton()

#message pop up for document is required
msgPopup = genericfunc.verifyOkPopUpText()

#click on OK
genericfunc.clickOkPopUp()

#click on cmd cancle
genericfunc.cmdCancel()

#go to Accounting home
Ahome.goToAccountingHome()

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

#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(newDataValue2,selectKeyName2,keyData)

#Refresh
phome.goToPlayerHome()

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

#go to Accounting home
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}')

#going to ECash drop
genericfunc.jumpToScreens(constants.ENTER_ECASH_DROP)

#To verify if eCash Drop window
assert True == eCashDrop.verifyECashDropWindowOpen()

#enter amount
eCashDrop.enterECashCardValue(getECashDrop)

#entering remarks
eCashDrop.enterRemarksValue(remarks)

# Text field for document should be non- editable
checkDocumentEditable = eCashDrop.verifyEnabledDocument()

#click on submit button
cashDrop.clickOnSubmitButton()

# jumping to void redeem points
genericfunc.jumpToScreens(constants.VOID_ECASH_DROP)

# selecting first row
genericfunc.selectFirstRow()

# getting document
document = eCashDrop.getDocument()

# result(Expected Result 2)- auto generated document number
assert document != None

#getting posted amount
amount = eCashDrop.getPostedAmount()
amt = '$ ' + getECashDrop + '.00'

#cmd cancle
genericfunc.cmdCancel()

#Refresh
phome.goToPlayerHome()

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

########################################################
# Verifying all the expected Results
########################################################
#To verify Result 1: The warning message for the mandatory document number should be displayed.
#Mandatory symbol '*' should be displayed for the Document field and should be editable to enter the text.
assert msgPopup == constants.DOCUMENT_NO_IS_REQUIRED
assert True == checkStar
assert True == checkDocumentEnabled

#To verify Result 2: Transaction should be posted and Document value should be generated automatically when the transaction is submitted.
# Text field for document should be non- editable
assert False == checkDocumentEditable

# result(Expected Result 2)- auto generated document number
assert document != None

#result(Expected result 2)- Transaction is posted
assert amount == amt
     
 
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.