Where is relative id of test objects defined

findTestObject() makes reference to relativeId to shorten strings for finding for test objects. Where is that defined for the current script?

The docs say

Eg: Using “Object Repository/Sample Test Object” (full id) OR “Sample Test Object” (relative id) as testObjectRelativeId is accepted for the test object with id “Object Repository/Sample Test Object”

Is relative Id always “Object Repository/” ?

Relative path of test object is either:

  • “Object Repository/MyFolder/MyTestObject”


  • “MyFolder/MyTestObject”

Relative (in this case) means that you don’t have to provide full path to your project folder where object repository sits.

You can find it in test object’s context menu -> Properties

1 Like