How create a Remote Test set using version5 API

Friday, March 3, 2017 9:03:14 AM

Hi 

Am trying to create remote test set using soap service version 5 

am getting nullable exception while calling

var testSet = new RemoteTestSet() { Name = name, TestSetStatusId = 1, TestSetFolderId = parentFolderId,IsAutoScheduled = false,IsDynamic = false};

 testSet = soapServiceClientTestSet_Create(testSet); and passing custom properties using integer value of custom fileds

 

exception details : 

   at System.Nullable`1.get_Value()
   at Inflectra.SpiraTest.Web.Services.v5_0.SoapService.TestSet_Create(RemoteTestSet remoteTestSet)
   at SyncInvokeTestSet_Create(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

please suggest me to how create remote test set

 

programming language :C# 

 

2 Replies
Friday, March 3, 2017 5:40:02 PM
Avatar
re: pmadhuyadav on Friday, March 3, 2017 9:03:14 AM

Hi Madhu,

I think you also need to pass TestRunTypeId = 1 (for plain text) or 2 (for HTML).

Regards

Jim

Monday, March 6, 2017 3:34:09 AM
Avatar
re: inflectra.jimx on Friday, March 3, 2017

Hi Jim,

 

Yeah you correct. need to pass TestRunTypeId.

 

Its worked, Thanks Much

Statistics
  • Started: Friday, March 3, 2017 9:03:14 AM
  • Last Reply: Monday, March 6, 2017 3:34:10 AM
  • Replies: 2
  • Views: 222