Fix hard-coded path in restApi.py
Change-Id: I0b2d40836885907a8216a6c025b2515e3ae69c3d
diff --git a/src/test/cord-api/Framework/restApi.py b/src/test/cord-api/Framework/restApi.py
index c40c930..5c22097 100644
--- a/src/test/cord-api/Framework/restApi.py
+++ b/src/test/cord-api/Framework/restApi.py
@@ -9,7 +9,7 @@
Functions for testing CORD API with POST, GET, PUT, DELETE method
'''
def __init__(self):
- self.rp = readProperties("../Properties/RestApiProperties.py")
+ self.rp = readProperties(os.path.abspath(os.path.dirname(__file__))+"/../Properties/RestApiProperties.py")
self.controllerIP = self.getValueFromProperties("SERVER_IP")
self.controllerPort = self.getValueFromProperties("SERVER_PORT")
self.user = self.getValueFromProperties("USER")