feat(uiTest): Data changes to fit new display name req.

This commit is contained in:
Noelia 2022-04-25 14:20:49 +02:00 committed by Iuri Matias
parent 6d1e0f8cc3
commit 78f6df4d06
2 changed files with 12 additions and 13 deletions

View File

@ -16,8 +16,8 @@
from data.StatusAccount import StatusAccount from data.StatusAccount import StatusAccount
from processes.StatusLoginProcess import StatusLoginProcess from processes.StatusLoginProcess import StatusLoginProcess
@Given("A Status Desktop |any| and |word| with |word| as a preference language") @Given("A Status Desktop |any| and |word|")
def step(context,account,password,languageType): def step(context,account,password):
# Create new data domain: # Create new data domain:
accountObj = StatusAccount(account, password) accountObj = StatusAccount(account, password)
@ -28,7 +28,6 @@ def step(context,account,password,languageType):
# Set needed context properties: # Set needed context properties:
context.userData['process'] = process context.userData['process'] = process
context.userData['account'] = accountObj context.userData['account'] = accountObj
context.userData['languageType'] = languageType
# Verify process can be executed: # Verify process can be executed:
test.verify(process.can_execute_process(), "Not possible to start login process. Check if expected Login Screen is available.") test.verify(process.can_execute_process(), "Not possible to start login process. Check if expected Login Screen is available.")

View File

@ -17,23 +17,23 @@ Feature: Status Desktop login
Scenario Outline: User tries to login with a valid password Scenario Outline: User tries to login with a valid password
Given A Status Desktop <account> and <password> with <languageType> as a preference language Given A Status Desktop <account> and <password>
When the user tries to login with valid credentials When the user tries to login with valid credentials
Then the user is able to login to Status Desktop application Then the user is able to login to Status Desktop application
Examples: Examples:
| account | password | languageType | | account | password |
| Athletic Prime Springtail | Test_1234 | english | | Athletic_Prime | Test_1234 |
| Nervous Pesky Serpent | Test_1234 | english | | Nervous_Pesky | Test_1234 |
| Granular Diligent Gorilla | Test_1234 | english | | Granular_Diligent| Test_1234 |
Scenario Outline: User tries to login with an invalid password Scenario Outline: User tries to login with an invalid password
Given A Status Desktop <account> and <password> with <languageType> as a preference language Given A Status Desktop <account> and <password>
When the user tries to login with invalid credentials When the user tries to login with invalid credentials
Then the user is NOT able to login to Status Desktop application Then the user is NOT able to login to Status Desktop application
Examples: Examples:
| account | password | languageType | | account | password |
| Athletic Prime Springtail | Invalid34 | english | | Athletic_Prime | Invalid34 |
| Granular Diligent Gorilla | Testpwd | english | | Granular_Diligent | Testpwd |
| Nervous Pesky Serpent | WrongPSW | english | | Nervous_Pesky | WrongPSW |