Skip to content

${CURDIR} should be normal variable #596

Open

Description

@spooning

Originally submitted to Google Code by kai.hackemesser on 20 Jul 2010

This is a call of a user keyword here in one test case:

${simulatorProcessID} = Start Simulator "${CURDIR}${/}simconfigs${/}site.properties" "${CURDIR}${/}sims"

This results in following log-001.html output:

KEYWORD: ${simulatorProcessID} = eireader.Start Simulator "c:\workspace\ie2\automated testing\EIReader_Tests${/}simconfigs${/}site.properties", "c:\workspace\ie2\automated testing\EIReader_Tests${/}sims"

As you can see, the ${CURDIR} has been resolved on keyword call, but not the ${/}

Environment: Win XP 64bit, Jython 2.5.1
robot framework 2.5 SVN Revision 3814

Activity

  1. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by @pekkaklarck on 20 Jul 2010

    This happens because ${CURDIR} is replaced already at the test data processing time. This is actually mentioned in the User Guide too:
    http://robotframework.googlecode.com/svn/tags/robotframework-2.5/doc/userguide/RobotFrameworkUserGuide.html#variable-priorities-and-scopes

    At the moment the curdir information isn't available all the time after parsing to the current hacky approach is the only possibility. We are planning to refactor variable and running related code in RF 2.6 anyway and this potentially could be fixed at that time. Not that high priority, though.

  2. added this to the 2.9 milestone on Jun 29, 2014
  3. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by @spooning on 2 Dec 2011

    Initially descoped from 2.7 due to lack of time

  4. removed this from the 2.9 milestone on Jun 9, 2015
  5. yo-ga commented on Jul 15, 2020

    @yo-ga

    @pekkaklarck I'm interested in this issue, but there is one thing that confused me.
    Which scope is ${CURDIR} in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions