So i have a robot project with selenium library as settings and i am currently executing on eclipse-ide. I have created a resource file with separate variables and keywords for easy usage. It was working fine, was able to run the project fine earlier. But suddenly i dont know what happened, but the resource file is not being considered even though no errors are shown with path. Let me just share the snippet.
This is the Resource file:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
@{URL} https://www.google.com https://www.gmail.com
*** Keywords ***
URL_NavigationToGoogle
Open Browser ${URL}[0] chrome
Maximize Browser Window
Set Browser Implicit Wait 10
This is robot file with test case:
*** Settings ***
Library SeleniumLibrary
Suite Setup Log Suite Setup
Suite Teardown Log Suite Teardown
Test Setup Log Test Setup
Test Teardown Log Test Teardown
Resource ../../ResourceFile/Keywords_and_Variables.robot
Default Tags Google Page Test cases
*** Test Cases ***
Test_Case-1
[Tags] Entering google web page
URL_NavigationToGoogle
This is the output:
Test_Case-1 | FAIL |
No keyword with name 'URL_NavigationToGoogle' found.
------------------------------------------------------------------------------
Not able to determine the exact problem, but this was working perfectly fine before. I want to know why its not working now and how to resolve this. Any help would be appreciated. Let me know your thoughts and what i am doing wrong or if anything needs to be changed.
Thanks, Sandesh KS