edgexfoundry / edgex-taf

Apache License 2.0
11 stars 24 forks source link

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

Open SwapnilSawant-eaton opened 2 months ago

SwapnilSawant-eaton commented 2 months ago

🐞 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 commented 2 months ago

image

cherrycl commented 2 months ago

@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 commented 2 months ago

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 commented 1 month ago

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