Fix for adding BDD config changes

Change-Id: I62f79a56a73ff8a546ecef407c3966b93de23a2e
Issue-ID: SDC-990
Signed-off-by: ilanap <ilanap@amdocs.com>
diff --git a/openecomp-bdd/stepDefinitions/world.js b/openecomp-bdd/stepDefinitions/world.js
index fd72505..75f93af 100644
--- a/openecomp-bdd/stepDefinitions/world.js
+++ b/openecomp-bdd/stepDefinitions/world.js
@@ -60,23 +60,19 @@
 
 		this.context.defaultServerType = 'onboarding';
 
-		this.context.prefix = config.prefix;
-		this.context.port = config.port;
-		this.context.protocol = config.protocol;
-
-		this.setServer = function(server) {
-			this.context.server = server;
-		};
+		this.config = config;
 
 		let context = this.context;
 		this.context.getUrlForType = (function(type) {
-			var that = context;
+			var _server = context.server;
+			var _config = config;
 			return function(type) {
-				let typeData = that[type];
-				return (config.protocol + '://' +
-					that.server + ':' +
+				let typeData = _config[type];
+				let _url = _config.protocol + '://' +
+					_server + ':' +
 					typeData.port + '/' +
-					typeData.prefix);
+					typeData.prefix;
+				return _url;
 			}
 		})();