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

How to turn of some parts of keyword validation? #18

Closed
gjemp opened this issue May 13, 2016 · 2 comments
Closed

How to turn of some parts of keyword validation? #18

gjemp opened this issue May 13, 2016 · 2 comments
Labels

Comments

@gjemp
Copy link

gjemp commented May 13, 2016

In keyword "Test Set Up" line " ${conf}= Get Environment Data ${env}" will show hint that it is not defined but is used.Variable with value will be in run script :
robot -v env:ua2 test/ui/*.robot

*** Keywords ***
Get Environment Data
   [Arguments]   ${envType}
   ${file}=   Get file   ./conf/env.json   encoding=UTF-8
   ${data}=   Evaluate   json.loads('''${file}''')   json
   [Return]   ${data["${envType}"]}

Test Set Up
   Set Log Level    TRACE
   ${conf}=   Get Environment Data   ${env}
   Open Browser   ${conf["ui"]["url"]}  ff   ff_profile_dir=${EXECDIR}/conf/profiles/ff_profile
   Maximize Browser Window

Is there a way how to disable the notification or is there a better way how to provide ${env} variable and value?

@adam-wypych
Copy link
Contributor

Hi,

The one possibility is to create dummy Python file with all variables, which You want to inject by command line and add this file to red.xml section Variable files.

The dummy Python file can look like this:

ENV="ua2"

About disable notification see @michalanglart comment to issue number #17 : "1) we want to provide possibility to freely define which errors/warnings are reported and which aren't, however this task is not of highest priority as for today. You can raise an issue for this to happen and this could influence our tasks priorities :)"

For more information how to add variable files to RED please see: http://127.0.0.1:50947/help/topic/org.robotframework.ide.eclipse.main.plugin.doc.user/doc/user_guide/variable_files.html?cp=2_3_3
For information about Robot variable files possibility see:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#variable-files

I hope it will help You.

Best Regards,
-Adam.

@gjemp
Copy link
Author

gjemp commented May 18, 2016

Hey , thanks for the response. Will try to figure something out :)

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

No branches or pull requests

2 participants