2012-06-11 41 views

回答

2

您可以使用屬性。在這裏看到: Working with SoapUI Properties

注意頁面上的最後一點有關命令行:

Now when you run the request, the property will automatically be replaced with its current  
value. To use a different value just change the endpoint in the UI, or from the command- 
line you can use the -P option; 

-PServiceEndoint=dev.eviware.com:8884 

which would use the dev.eviware.com:8884 endpoint instead (entirely fictional). 
+0

這不是一個性質。如果你點擊JDBC連接選項卡,你可以看到Connectionstring。這就是我想要動態改變的地方 – user1164061

+1

我從Smartbear知道我可以定義一個項目級別的定製屬性,我可以在連接字符串中通過屬性擴展使用它,並使用-P參數從命令行重寫。所以你是正確的方式! – user1164061