Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > i cant record data with S...
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);
soap.testRunRecordAutomated1(asd.get(0));
soap.testRunRecordAutomated1(asd.get(1));
} catch (IImportExportTestRunRecordAutomated1ServiceFaultMessageFaultFaultMessage e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
#1#154 1314 -: 3
#2#154 1649 -: 3
#1#154 1314 -: 1
#2#154 1649 -: 2
And if you have any questions, please email or call us at +1 (202) 558-6885