Wireless-Innovation-Forum / Citizens-Broadband-Radio-Service-Device

Apache License 2.0
32 stars 19 forks source link

Error happened when tired to set test log in specific folder #6

Closed ericzh31ericsson closed 7 years ago

ericzh31ericsson commented 7 years ago

When start the test, and answer the questions below: would you like to add the test to specific folder ? (select yes or no) yes enter log of test to the specific folder (the name of specific folder)

Got following error: _File "C:\Users\eerizha\workspace\CBRS_MOCK_SAS_V_2_0\cbrsPython- master\cbrsPython\Loggers\XmlLogger.py", line 64, in finishStep self.currentStep.set("status",stepStatus.value) AttributeError: 'str' object has no attribute 'value'_

So the 'value" might need to be removed in module XmlLogger.finishStep code: "self.currentStep.set("status",stepStatus.value)" "if(stepStatus.value==StepStatus.FAILED.value):"

and in XmlLogger.finishStep the code: self.testCase.set("status",testStatus.value)

ericzh31ericsson commented 7 years ago

It seems that install new version enum library enum34 can fix the issue. i.e. run the pip command

pip install enum34

Can say the issue be closed.

ericzh31ericsson commented 7 years ago

see above comment