我們使用Mercury Quality Center 9進行存儲測試和測試結果。
我需要從測試數據讀取測試計劃並將測試結果寫入測試實驗室通過java。
我試圖找到關於谷歌,但我還沒有找到任何東西。從Mercury Quality center 9通過java讀取測試數據
UPDATE:
我試圖用qctools4j與MQC 9個工作用下面的代碼:
public void connect() {
try{
IQcConnection conn = QcConnectionFactory.createConnection("http://qc/qcbin");
conn.connect("login", "password", "DEFAULT","project");
TestClient tc = conn.getTestClient();
System.out.println("Connection success!!!");
}
catch (QcException e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
我得到了以下異常消息:
*org.qctools4j.exception.QcException: Can't co-create object
at org.qctools4j.clients.QcConnectionImpl.initConnection(Unknown Source)
at org.qctools4j.clients.QcConnectionImpl.<init>(Unknown Source)
at org.qctools4j.QcConnectionFactory.createConnection(Unknown Source)
at automation_framework1.automation_framework1.QCWorker.connect1(QCWorker.java:38)
at automation_framework1.automation_framework1.Main.main(Main.java:12)
Caused by: com.jacob.com.ComFailException: Can't co-create object
at com.jacob.com.Dispatch.createInstanceNative(Native Method)
at com.jacob.com.Dispatch.<init>(Dispatch.java:99)
at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58)
at org.qctools4j.clients.QcConnectionImpl.initConnection(Unknown Source)*
什麼時我做錯了?
關於你得到的異常,就這個一看:http://netheadaches.wordpress.com/2012/04/22/jacob-cant-co-create-object/ – aviad
根據qctools4j,你有什麼版本的QC,它與9.2兼容,而不是9.0。 –
9.0。現在我試圖使用groovy scriptiom –