Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0031928 | Retail Modules | Web POS | public | 2016-01-18 13:24 | 2024-02-08 14:44 | |||||||
Reporter | jorge-garcia | |||||||||||
Assigned To | Retail | |||||||||||
Priority | urgent | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | out of date | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0031928: Test I31827_Error401WhenCashup is failling | |||||||||||
Description | The solution of the issue and the test is ok. The problem is the infrastructure of the tests. | |||||||||||
Steps To Reproduce | 1) Execute test I31827_Error401WhenCashup 2) Check that the test fails and show this error: "The preferences (permissions) have changed. If you changed the preferences within the test, restore them to the original values" | |||||||||||
Proposed Solution | The infrastructure of the test checks the permission when the test do a login and a logout. These checks must be done when the test starts and when the test ends. Maybe, the solution is to change this function in MobileCoreTerminalHelper: private void verifyThatThePermissionsHaveNotChanged() { if (SequentialTestInfo.isTestCompatible() == false) { return; } TestLogger.getLogger().debug("Verifying that the 'permissions/preferences' have not changed"); final String expectedPermissions = SequentialTestInfo.getPermissions(); final String script = String.format("" + "var expectedPermissions = %s;" + "var currentPermissions = OB.MobileApp.model.attributes.permissions;" // + "if (currentPermissions === expectedPermissions) {" + " return '{}';" + "} else if (currentPermissions === null) {" // + " return JSON.stringify(expectedPermissions);" // + "} else if (expectedPermissions === null) {" // + " return JSON.stringify(currentPermissions);" // + "} else {" // + " return JSON.stringify(OB.UTIL.diffJson(currentPermissions, expectedPermissions));" // + "}" // , expectedPermissions); // final String currentPermissions = (String) SeleniumHelper.executeScript(script); assertThat( "The preferences (permissions) have changed. If you changed the preferences within the test, restore them to the original values", currentPermissions, equalTo("{}")); } | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-01-18 13:24 | jorge-garcia | New Issue | ||||||||||
2016-01-18 13:24 | jorge-garcia | Assigned To | => Orekaria | |||||||||
2016-01-18 13:24 | jorge-garcia | Triggers an Emergency Pack | => No | |||||||||
2016-01-18 13:25 | jorge-garcia | Relationship added | related to 0031827 | |||||||||
2016-01-18 13:28 | hgbot | Checkin | ||||||||||
2016-01-18 13:28 | hgbot | Note Added: 0083372 | ||||||||||
2016-11-10 18:15 | Orekaria | Assigned To | Orekaria => Retail | |||||||||
2024-02-08 14:44 | shuehner | Note Added: 0160458 | ||||||||||
2024-02-08 14:44 | shuehner | Status | new => closed | |||||||||
2024-02-08 14:44 | shuehner | Resolution | open => out of date |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|