i cant record data with SOAP API

Thursday, November 12, 2015
Avatar


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
Avatar
re: canberk Thursday, November 12, 2015
Hello

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

Thanks

Adam

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, November 12, 2015
  • Last Reply: Friday, March 25, 2022
  • Replies: 1
  • Views: 15611