How create a Remote Test set using version5 API

Friday, March 3, 2017
Avatar

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
Avatar
re: pmadhuyadav Friday, March 3, 2017

Hi Madhu,

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

Regards

Jim

Monday, March 6, 2017
Avatar
re: inflectra.jimx Friday, March 3, 2017

Hi Jim,

 

Yeah you correct. need to pass TestRunTypeId.

 

Its worked, Thanks Much

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: Friday, March 3, 2017
  • Last Reply: Monday, March 6, 2017
  • Replies: 2
  • Views: 1378