afarran / swm2m_avl_tests

Feature tests of AVL agent
0 stars 0 forks source link

TestFramework: setting external power voltage does not work #14

Closed ArturMalyszewicz closed 9 years ago

ArturMalyszewicz commented 9 years ago

In TestFramework function device.setPower(id, value) -- setting external power voltage (id = 9 according to comments in code) does not work. There is an error returned when trying to apply setting: " Invalid I/O port: 9"

Steps to reproduce:

  1. Call function in code like: device.setPower(9, extVoltage)
  2. An error is return "Invalid I/O port: 9", setting is not applied

This also applies for ALL other settings but ID = 3 (battery voltage setting works fine)

afarran commented 9 years ago

It looks like there is a bug in the IDP Test Framework that breaks device.setPower(). Here is a quick work-around for now… In TestFramework.lua, change line 39 from: cfg.PORTMAP = {1, 2, 3, 4} To the following: cfg.PORTMAP = { }

ArturMalyszewicz commented 9 years ago

Provided workaround does not work fully, in eg. using set.Power(9, 24000) sets externalPowerVoltage property in SIN 17 but it does not affect powerValue in SIN25

ArturMalyszewicz commented 9 years ago

This problem applies also to the newest version of TestFramework (included in IDPToolkit_v2.0.6).

ArturMalyszewicz commented 9 years ago

Fixed in version of TestFramework.