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

Failing Testcase "CommandGET006 - Get specified device read command when ds-returnevent is false" #909

Open
SwapnilSawant-eaton opened this issue Aug 30, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@SwapnilSawant-eaton
Copy link

SwapnilSawant-eaton commented Aug 30, 2024

🐞 Bug Report

Affected Services [REQUIRED]

Command The issue is located in: CommandGET006 - Get specified device read command when ds-returnevent is false

Is this a regression?

Testcase is modified in main branch Yes, the previous version in which this bug was not present was: ....

Description and Minimal Reproduction [REQUIRED]

It is failing in the step "When Get Device ${device_name} Read Command Virtual_GenerateDeviceValue_Boolean_R With ds-returnevent=false" as in this step they are expecting something in the response body to set a response variable but this should not send any response body as we are making ds-returnevent=false.
Resolving variable '${resp.json()}' failed: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

🔥 Exception or Error


 
Resolving variable '${resp.json()}' failed: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

image
image

🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:
3.2.. main branch

Anything else relevant?

@SwapnilSawant-eaton SwapnilSawant-eaton added the bug Something isn't working label Aug 30, 2024
@SwapnilSawant-eaton
Copy link
Author

image

@cherrycl
Copy link
Contributor

cherrycl commented Sep 3, 2024

@SwapnilSawant-eaton Did you modify the test script? The step Set Suite Variable ${body} ${resp.json()} is not in Keyword Set Response to Test Variables.

@SwapnilSawant-eaton
Copy link
Author

SwapnilSawant-eaton commented Sep 3, 2024

Yes I have handled it using TRY and CATCH now.. Thanks for pointing the issue

Can you please tell me why we have deleted virtual-profile-sample? because in core command we are creating the devices with virtual-sample-profile.yaml only @cherrycl ?

@cherrycl
Copy link
Contributor

cherrycl commented Sep 4, 2024

@SwapnilSawant-eaton Do you mean deleting device profile Virtual-Sample-Profile? As I know no tests to execute this on TAF script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants