Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Abouzeid opened this issue May 25, 2018 · 8 comments
Assignees
Labels
Projects

Comments

@Abouzeid
Copy link

Abouzeid commented May 25, 2018

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
Copy link
Contributor

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
Copy link
Author

Abouzeid commented May 25, 2018

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
Copy link
Contributor

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

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

@hylkevds
Copy link
Contributor

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

@taniakhalafbeigi
Copy link
Contributor

I will prepare it for July release.

@Abouzeid
Copy link
Author

Understood.
Thanks @taniakhalafbeigi

@dstenger dstenger added this to In progress in CITE Apr 11, 2019
@dstenger
Copy link
Contributor

dstenger commented Jan 7, 2020

@taniakhalafbeigi What is the current status of this issue?

@dstenger dstenger moved this from In progress to Waiting in CITE Apr 21, 2021
@ghobona
Copy link
Contributor

ghobona commented Jun 29, 2021

Closing this issue because it duplicates Issue #40

@ghobona ghobona closed this as completed Jun 29, 2021
CITE automation moved this from Waiting to Done Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
CITE
  
Done
Development

No branches or pull requests

5 participants