When i excute the test case ERROR below
command: robot -A C:\Users\NIUKAI~1\AppData\Local\Temp\RIDEq3o59_8v.d\argfile.txt --listener C:\Users\niukaixuan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:56230:False “C:\robot case”
TestRunnerAgent: Running under CPython 3.11.8
=======================================================================================================================================================
Robot Case
Robot Case.Vaillantfamily
login | FAIL |
InvalidArgumentException: Message: ‘newCommandTimeout’ must be of type number
Stacktrace:
InvalidArgumentError: ‘newCommandTimeout’ must be of type number
at validateCaps (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\capabilities.js:52:11)
at parseCaps (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\capabilities.js:165:20)
at processCapabilities (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\capabilities.js:211:43)
at parseCapsForInnerDriver (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\lib\utils.js:116:21)
at AppiumDriver.createSession (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\lib\appium.js:325:26)
at commandExecutor (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:335:9)
at AppiumDriver.executeCommand (C:\Users\niukaixuan\AppData\Local\Progr…
[ Message content over the limit has been removed. ]
at trim_prefix (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13)
at C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10)
at C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\body-parser\lib\read.js:130:5
at invokeCallback (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:224:16)
at done (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:213:7)
at IncomingMessage.onEnd (C:\Users\niukaixuan\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:273:7)
at IncomingMessage.emit (events.js:322:22)
Robot Case.Vaillantfamily | FAIL |
1 test, 0 passed, 1 failed
Robot Case | FAIL |
1 test, 0 passed, 1 failed
Output: C:\Users\NIUKAI~1\AppData\Local\Temp\RIDEq3o59_8v.d\output.xml
[ ERROR ] Calling method ‘log_message’ of listener ‘C:\Users\niukaixuan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py’ failed: AttributeError: ‘Output’ object has no attribute ‘_xmllogger’
[ ERROR ] Calling method ‘log_message’ of listener ‘C:\Users\niukaixuan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py’ failed: AttributeError: ‘Output’ object has no attribute ‘_xmllogger’
[ WARN ] Keyword ‘Capture Page Screenshot’ could not be run on failure: No application is open
[ ERROR ] Calling method ‘log_message’ of listener ‘C:\Users\niukaixuan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py’ failed: AttributeError: ‘Output’ object has no attribute ‘_xmllogger’
Log: C:\Users\NIUKAI~1\AppData\Local\Temp\RIDEq3o59_8v.d\log.html
Report: C:\Users\NIUKAI~1\AppData\Local\Temp\RIDEq3o59_8v.d\report.html
Test finished 20240410 08:39:09
*** Settings ***
Library AppiumLibrary
*** Variables ***
${remote_Url} http://localhost:4723/wd/hub
&{android_Caps} platformName=Android platformVersion=12 deviceName=NAB0220804041104 appPackage=com.vaillant.plus appActivity=com.vaillant.plus.MainActivity skipServerInstallation=${True} autoGrantPermission=${True} automationName=UiAutomator2 newCommandTimeout=2000 noReset=${True}
*** Test Cases ***
login
Open Application ${remote_Url} &{android_Caps}