opengeospatial / ets-sta10

Repository for the Executable Test Suite for OGC Sensor Things API
Other
6 stars 8 forks source link

An Exception occurred during testing!: JSONObject<br>["@iot.id"] is not a number. #42

Closed Abouzeid closed 3 years ago

Abouzeid commented 6 years ago

I am running the STA test. I am getting the Error: java.lang.AssertionError: An Exception occurred during testing!: JSONObject<br>["@iot.id"] is not a number.

All my entities' ids are "Guid/uuid" data-type. I've found in the code below that the ids are expected to be List of Long or convertible to "long". Therefore, the conversion from "Guid" to "long" raised the exception.

private void readRelatedEntityOfEntityWithEntityType(EntityType entityType) {
        List<String> entityTypes = new ArrayList<>();
        List<Long> **ids** = new ArrayList<>();

My questions : 1-Am I right with my conclusion? 2-Does the id in STA have to be long data type ?

Any help will be appreciated. Thanks

hylkevds commented 6 years ago

Yes, currently the test suite assumes all IDs are Long. I had already reported this in #40. In the mean time, you can use heavily extended version of the test suite: https://github.com/FraunhoferIOSB/ets-sta10

Abouzeid commented 6 years ago

Currently, I'm using the Testing Website:[http://cite.opengeospatial.org/teamengine/] Now, if I want to use the Fraunhofer test suite, then I need to install and run the team-engine servlet. Is that it?

Lastly, could you please tell me, when are we expecting this issue to be fixed? Thanks

dstenger commented 6 years ago

@taniakhalafbeigi Can you estimate when this issue can be fixed?

@hylkevds You already provided a pull request to fix this, right?

hylkevds commented 6 years ago

You can just run the tests from your own machine with java -jar jarfile.jar test-run-props.xml

taniakhalafbeigi commented 6 years ago

I will prepare it for July release.

Abouzeid commented 6 years ago

Understood. Thanks @taniakhalafbeigi

dstenger commented 4 years ago

@taniakhalafbeigi What is the current status of this issue?

ghobona commented 3 years ago

Closing this issue because it duplicates Issue https://github.com/opengeospatial/ets-sta10/issues/40