Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to run example test locally #269

Open
parameswarank opened this issue Aug 4, 2022 · 3 comments
Open

Need a way to run example test locally #269

parameswarank opened this issue Aug 4, 2022 · 3 comments

Comments

@parameswarank
Copy link

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
Copy link
Member

emanlove commented Aug 4, 2022

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

@mkorpela
Copy link
Member

mkorpela commented Aug 6, 2022

A download button would be good for all the files.

@honglei
Copy link

honglei commented Sep 22, 2024

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
=========================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants