How to append a value to a variable in robot framework

3,351 views
Skip to first unread message

Mathews Jose

unread,
Dec 9, 2016, 4:15:02 AM12/9/16
to robotframework-users
I have a variable ${dirname} . I want to append some value to this variable while calling one function .

eg: func_name ${dir_name}_something_here


But I do not want the variable value to be altered .How can I achieve this ?

Hélio Guilherme

unread,
Dec 9, 2016, 1:12:19 PM12/9/16
to robotframework-users

You can use the Catenate keyword to append content to variable (a temporary one if you wish) and then pass it to function.

Mathews Jose

unread,
Dec 9, 2016, 1:14:20 PM12/9/16
to heliox...@gmail.com, robotframework-users
Thank you very much..exactly what I was looking for...😊 





--


You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.


To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/jIgJkCmEMSU/unsubscribe.


To unsubscribe from this group and all its topics, 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.


Ferenc Balogh

unread,
Dec 9, 2016, 4:18:24 PM12/9/16
to robotframework-users
What about 

${dir_name_arg}= Set Variable ${dir_name}_something_here
func_name ${dir_name_arg}

?
Reply all
Reply to author
Forward
0 new messages