please note that attempt is to write python script and not in robot files
I have two files
api.py
import requests
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
from robot.running.model import Keyword
bi = BuiltIn()
class APIRequests:
ROBOT_LIBRARY_SCOPE = 'TEST CASE'
def something():
return "some string/value"
In the same folder, i have another file which I script robot file
login.robot
*** Settings ***
Library BuiltIn
Library api.py
*** Test Cases ***
Valid Weathercheck:
${abc} = something
Log to console ${abc}
When I execute from the command console robot login.robot I get an error message saying the 'No keyword with name 'something' found.'
Query2When we want to use some existing web driver modules which are existing in python , i am unable to find the needed documentation around it on how I can link/import them as ready keywords