robotframework / robotframework.github.com

Robot Framework ecosystem from page
http://robotframework.org
77 stars 80 forks source link

Need a way to run example test locally #269

Open parameswarank opened 2 years ago

parameswarank commented 2 years ago

Hello,

I need to download the example code and run it locally. As of now i am unable to do it due to testobject issue.

Link to Sample code: https://robotframework.org/code/?codeProject=N4IgdghgtgpiBcIDKBLKAHANjABAUQA9os4AaEAExgGcBjAJxXQBcUB7MBEEcgMxWzUEAbQC65KowBuMCgAV6bAFYxazBM3oBXGOUUAjNswBqMetXadEAVgB0ABlsBGEAF8gA

Had discussed on Slack and i am asked to open up an issue on this.

Thanks Parames

emanlove commented 2 years ago

I agree that all our examples and example code should be available so that someone can repeat these examples on their on systems.

mkorpela commented 2 years ago

A download button would be good for all the files.

honglei commented 2 weeks ago

https://robotframework.org/?tab=0#getting-started is really confusing for I cannot find defination for TestObject in from TestObject import TestObject / CustomLibrary.py.

[ ERROR ] Error in file 'D:\PythonPrj\gms\ncc_check\robot\keywords.resource' on line 4: Importing library 'D:\PythonPrj\gms\ncc_check\robot\CustomLibrary.py' failed: ModuleNotFoundError: No module named 'TestObject'
Traceback (most recent call last):
  File "D:\PythonPrj\gms\ncc_check\robot\CustomLibrary.py", line 2, in <module>
    from TestObject import TestObject
PYTHONPATH:
  D:\PythonPrj\gms\ncc_check\robot
  C:\Python312\Scripts\robot.exe
  C:\Python312\python312.zip
  C:\Python312\DLLs
  C:\Python312\Lib
  C:\Python312
  C:\Python312\Lib\site-packages
  C:\Python312\Lib\site-packages\win32
  C:\Python312\Lib\site-packages\win32\lib
  C:\Python312\Lib\site-packages\Pythonwin
=========================================================================