afarran / swm2m_avl_tests

Feature tests of AVL agent
0 stars 0 forks source link

Continues property in Position service (PIN15 in SIN 20) value is not correctly reverted when terminal leaving Low Power Mode #21

Closed ArturMalyszewicz closed 9 years ago

ArturMalyszewicz commented 9 years ago

When terminal enters Low Power Mode value of Continues property (PIN 15) in Position service (SIN 20) should be changed to 0 (feature disabled, no periodic read of GPS). And when terminal leaves LPM this value should be reverted back to user-saved. The bug is that it is always reverted to value 2 no matter what was the user setting.

Steps to reproduce:

  1. Set Continues property (PIN 15) in Position service (SIN 20) to known value (in eg. 15)
  2. Simulate terminal entering LPM
  3. Check what is the value of Continues property - it 0 - that is correct
  4. Simulate terminal leaving LPM
  5. Check Continues property again - it has value 2 (that is not what was set before entering LPM) - that is not correct.

Expected behaviour: Continues property is reverted to it's initial value (before entering LPM)

Version of AVL Agent: v3.2.2 r1625

Related TC: test: test_LPM_WhenTerminalEntersAndLeavesLPM_ValueOfContinuesPropertyInPositionServiceIsChangedTo0WhenEnteringLPMAndRevertedWhenLeaving

afarran commented 9 years ago

Remember that you need to save the property not just setting it. AVL reverts the property back to the saved value. To save a property see the to-mobile message: setProperties (SIN 16, MIN 9), which has a "save" field.

ArturMalyszewicz commented 9 years ago

Thank you for info. Didn't know about this; will check that asap

ArturMalyszewicz commented 9 years ago

This reported issue is not bug. The continues property was not saved (only set by lsf.setProperties). When property was set and saved the value of it was correctly reverted.