Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > i cant record data with S...

i cant record data with SOAP API RSS Feed

Thursday, November 12, 2015


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
Adam SAdam S
re: canberk erkmen on Thursday, November 12, 2015
Tuesday, November 17, 2015
Hello

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

Thanks

Adam
Tagged
Statistics
  • Started: 11/12/2015
  • Last Reply: 11/17/2015
  • Replies: 1
  • Views: 7241
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.