Hey guys,
I had to start with my VSCode environment for RF preparation from scratch and it led me to many issues which I hope you could help me with.
I have the robotframework_sikulilibrary==1.0.8 installed (I don’t have the Java installed - intentionally) and I run any of these two test cases from this example robot file which is located in my Testautomation project (Testautomation/Test Sources/Example/Test Definitions/example_robot_file.robot):
*** Settings ***
Documentation Example robot file
Suite Setup Global Suite Setup
Suite Teardown Global Suite Teardown
Test Setup Global Test Setup
Test Teardown Global Test Teardown
*** Comment ***
Additional comments or data. Ignored by Robot Framework.
*** Variables ***
@{EXAMPLE_OF_GLOBAL_LIST_VARIABLE} value 1 value 2 value 3
${EXAMPLE_OF_GLOBAL_SCALAR_VARIABLE} some value
*** Test Cases ***
Dummy TestCase Pass
[Documentation] This is a dummy test case that passes.
[Tags] dummy_pass
[Setup] Log This setup overrides the global setup.
Log ${EXAMPLE_OF_GLOBAL_SCALAR_VARIABLE}
Log ${EXAMPLE_OF_GLOBAL_LIST_VARIABLE}
Log ${EXAMPLE_OF_GLOBAL_LIST_VARIABLE}[2]
[Teardown] Log This teardown overrides the global teardown.
Dummy TestCase Fail
[Documentation] This is a test case that fails.
Fail Dummy TC
[Tags] dummy_fail
No Operation
Fail Dummy TC
*** Keywords ***
Global Test Setup
[Documentation] This is the global test setup keyword.
No Operation
Global Test Teardown
[Documentation] This is the global test teardown keyword.
No Operation
Global Suite Setup
[Documentation] This is the global suite setup keyword.
No Operation
Global Suite Teardown
[Documentation] This is the global test teardown keyword.
No Operation
When using Python 3.8, RF 5.0.1, RobotCode - Robot Framework Support v0.83.0
The RobotCode thinks that the whole project is a large test suite, making the results unnecessarily complicated.
Plus, it somehow activates the installed sikuli which then starts to spam my root project folder with stderr files talking about not being able to get to Java. The sikuli is used in a different robot file in a different location in the same project.
Do you, guys, have any idea what did go wrong and how can I make the RobotCode extension / VSC stop acting weird?
I’ll be grateful for any response!
David