Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0031928 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | always | 2016-01-18 13:24 | 2024-02-08 14:44 | |||
Reporter | jorge-garcia | View Status | public | |||||
Assigned To | Retail | |||||||
Priority | urgent | Resolution | out of date | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
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("{}")); } | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0083372) hgbot (developer) 2016-01-18 13:28 |
Repository: tools/automation/pi-mobile Changeset: cdf0353f325fda344c47473b0651985bbdec799b Author: Jorge Garcia <jorge.garcia <at> openbravo.com> Date: Mon Jan 18 13:27:43 2016 +0100 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/cdf0353f325fda344c47473b0651985bbdec799b [^] Related to issue 1827: 401 errors The testAnnotation has change to avoid execution until the issue 31928 is fixed. --- M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I31827_Error401WhenCashup.java --- |
(0160458) shuehner (administrator) 2024-02-08 14:44 |
After mass reviewing old pos issues in 52891 => Closing as out of date |
![]() |
|||
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 | OBNetwork customer | => No |
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 |
Copyright © 2000 - 2009 MantisBT Group |