I am assigning variables in robot framework as
*** Variables ***
${TestNAME} test
But can I pass variable value from python file?
#test.py
var = 'test'
Is it possible to assign var to ${TESTNAME}?
*** Variables ***
${TestNAME} ${var}
pybot -V /path/to/variables.py testcases.txt
*** Settings ***Variables /path/to/variables.py
*** Settings ***
Library Selenium2Library
Variables ../Resources/RandomNum.py
*** Variables ***
${FIRSTNAME} = {firstname}
${LASTNAME} = {lastname}
${EMAILID} = {email}
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
*** Settings ***
Library Selenium2Library
Variables ../Resources/RandomNum.py
*** Variables ***
${FIRSTNAME} = ${firstname}
${LASTNAME} = ${lastname}
${EMAILID} = ${email}
firstname='John'
lastname='Doe'
email='sam...@email.com'