Test Plan Reference: How to reference a test plan file from relative path

How to reference a file in the “Test Plan Reference” Test Step relatively not absolutely?

@teder.ted where are you seeing a full path? It should always default to a relative path to your working directory, but it is possible to convert from there to a full path.

1 Like

That’s right. I was wrong

1 Like

No worries. If it is full path you are looking for there are some suggestions here:

The question appears to be answered, but for future reference I’d like to add something:

It is true that the Test Plan Reference path is relative to the location of the editor.exe.

However, a lot of the times your top level test plan is not located in that folder, and you want to reference test plans relative to the top level test plan.

To do this, you can use the variable <TestPlanDir> in the path, which points to the directory of the current test plan. For example:

<TestPlanDir>\..\test_cases\test_my_device.TapPlan
4 Likes

If you want to use this functionality in your own steps do this:

As seen in source code:

1 Like