openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

extended/test_bmc_stress_buster.robot TypeError #2218

Closed ckstyle001 closed 10 months ago

ckstyle001 commented 10 months ago

we use v3.0-stable branch and run the extended/test_bmc_stress_buster.robot test case will present TypeError: Expected argument 1 to be a dictionary or dictionary-like, got dictproxy instead.

Execute Process return dictproxy unmatch Dictionary Should Not Contain Value input type

    Log To Console  REST call request burst ${REST_BUSTER_MAX}
    ${dict}=  Execute Process
    ...  ${REST_BUSTER_MAX}  REST Enumerate Request On BMC
    Dictionary Should Not Contain Value  ${dict}  False
    ...  msg=One or more REST operations has failed.

I add follow to convert variable type

    ${dict}  Evaluate  dict(${dict_proxy})
gkeishin commented 10 months ago

not sure.. I can run clean

==============================================================================
Test Bmc Stress Buster :: Generic REST/SSH/IPMI stress buster program.
==============================================================================
Stress BMC REST Server :: Execute maximum allowed REST operation.     REST call request burst 16
.GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
GET Request /redfish/v1/Managers/bmc
Stress BMC REST Server :: Execute maximum allowed REST operation.     | PASS |
ckstyle001 commented 10 months ago

@gkeishin thanks for your reply. Maybe my python packages version are different. Would you please provide the version of python. If possible, please also provide the versions of Python packages.

gkeishin commented 10 months ago
python3 --version
Python 3.10.12

Robot Framework -- A generic automation framework
Version:  5.0.1 (Python 3.10.12 on linux)

and you can run

cd openbmc-test-automation/
pip install -r requirements.txt
ckstyle001 commented 10 months ago

@gkeishin I used python3 3.10.13. Now, i downgrade to 3.10.12, this problem is solved. Thanks for your help

gkeishin commented 10 months ago

Thank you for the feedback. . .Closing the ticket.