i cant record data with SOAP API

Thursday, November 12, 2015 1:11:58 PM


we set the data but we couldn't record that. Can you help , please ?




public static void sentTestSetTestSteps(int testSetId) {

TestStepConsumer testStepConsumer = new TestStepConsumer();

ArrayOfRemoteAutomatedTestRun remoteTestRuns = null;

try {

IImportExport soap = testStepConsumer.returnSoapObject();

boolean connected = testStepConsumer.connectSoap(soap, "****", "****");

connected = soap.connectionConnectToProject(8);

if (connected) {

remoteTestRuns = soap.testRunCreateForAutomatedTestSet(testSetId, "TestClient01");

List<RemoteAutomatedTestRun> asd = remoteTestRuns.getRemoteAutomatedTestRun();

System.out.println("#1#" + asd.get(0).getTestSetId().getValue() + " " + asd.get(0).getTestCaseId()

+ " -: " + asd.get(0).getExecutionStatusId());

System.out.println("#2#" + asd.get(1).getTestSetId().getValue() + " " + asd.get(1).getTestCaseId()

+ " -: " + asd.get(1).getExecutionStatusId());

asd.get(0).setExecutionStatusId(1);

asd.get(1).setExecutionStatusId(2);

try {

soap.testRunRecordAutomated1(asd.get(0));

soap.testRunRecordAutomated1(asd.get(1));

} catch (IImportExportTestRunRecordAutomated1ServiceFaultMessageFaultFaultMessage e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

System.out.println("#1#" + asd.get(0).getTestSetId().getValue() + " " + asd.get(0).getTestCaseId()

+ " -: " + asd.get(0).getExecutionStatusId());

System.out.println("#2#" + asd.get(1).getTestSetId().getValue() + " " + asd.get(1).getTestCaseId()

+ " -: " + asd.get(1).getExecutionStatusId());

}




İ get this :


#1#154 1314 -: 3

#2#154 1649 -: 3

#1#154 1314 -: 1

#2#154 1649 -: 2


1 Replies
Tuesday, November 17, 2015 9:01:58 PM
Avatar
re: canberk on Thursday, November 12, 2015 1:11:58 PM
Hello

Could you please send us a help desk ticket so that we can better assist?

Thanks

Adam
Statistics
  • Started: Thursday, November 12, 2015 1:11:58 PM
  • Last Reply: Tuesday, November 17, 2015 9:01:58 PM
  • Replies: 1
  • Views: 10034