Absolute paths vs. relative paths
	Question ID:
	104891
    | ♥ 0 | 
				                 I’m using the following code to add Object Repositories to my test via code. The problem is, when I do, it uses the absolute path (C:\\MyTestORs\\MyOR.tsr) rather than a relative path. This is a problem because not all of our users put their tests and ORs on the C:\\ drive. How do I get QTP to use the relative path instead of the absolute path? Set MyQTPAction = qtApp.Test.Actions("Action1") Set qtpRepositories = MyQTPAction.ObjectRepositories qtpRepositories.RemoveAll qtpRepositories.Add ".\\MyOR.tsr", 1 ‘ Add the repository to the collection 
                    Marked as spam 
												
				             | 
        
Answers (2)