Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0031928
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2016-01-18 13:242024-02-08 14:44
Reporterjorge-garciaView Statuspublic 
Assigned ToRetail 
PriorityurgentResolutionout of dateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0031928: Test I31827_Error401WhenCashup is failling

DescriptionThe solution of the issue and the test is ok. The problem is the infrastructure of the tests.
Steps To Reproduce1) 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 SolutionThe 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("{}"));
  }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0031827 closedjorge-garcia 401 errors 

-  Notes
(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

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker