ArmandsBruns
11 years agoFrequent Contributor
Create WebService and Run Load Test
Hi,
TestComplete 10.30
1) I create the Web Service project
2) Select the WSDL for the web service
I'm a beginner with web service testing.
How can I call the authentification method:
I tried to run:
Function AuthentificateUser_Test
'Get the type factory for the web service
Test_authentificateUser = WebServices.GDisWebService.authentificateUser
Test_authentificateUser.username = "Admin"
Test_authentificateUser.password = "Password"
End Function
And got the following error message:
<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>No binding operation info while invoking unknown method with params unknown.</faultstring></soap:Fault>
================================================================
I have to call the method 'createClaimsDetalization' at the same time 5 times and to check performance.
'createClaimsDetalization' - content of the code:
Function createClaimsDetalization1
Dim TypeFactory
'Get the type factory for the web service
Set TypeFactory = WebServices.GDisWebService.TypeFactory
Set createClaimsDetalization1 = TypeFactory.createClaimsDetalization1
'createClaimsDetalization1.sessionKey =
'createClaimsDetalization1.insPersCode =
'createClaimsDetalization1.cardNumber =
'createClaimsDetalization1.serviceCode =
'createClaimsDetalization1.serviceCount =
'createClaimsDetalization1.sumToPay =
'createClaimsDetalization1.medInstCode =
'createClaimsDetalization1.eventDate =
End Function
'createClaimsDetalizationResponse' - content of the code:
Function createClaimsDetalizationResponse1
Dim TypeFactory
'Get the type factory for the web service
Set TypeFactory = WebServices.GDisWebService.TypeFactory
Set createClaimsDetalizationResponse1 = TypeFactory.createClaimsDetalizationResponse1
Set createClaimsDetalizationResponse1.return = TypeFactory.healthClaimsCreationRetParam
'createClaimsDetalizationResponse1.return.status =
'createClaimsDetalizationResponse1.return.statusText =
'createClaimsDetalizationResponse1.return.clientSum =
'createClaimsDetalizationResponse1.return.detID =
'createClaimsDetalizationResponse1.return.discount =
'createClaimsDetalizationResponse1.return.paymSum =
'Generating the array property. Choose the lower and upper array bounds that meet your needs
createClaimsDetalizationResponse1.return.errorsInfo = BuiltIn.CreateVariantArray(0, 10)
End Function
==========================================
Thanks in advance.
Armands
TestComplete 10.30
1) I create the Web Service project
2) Select the WSDL for the web service
I'm a beginner with web service testing.
How can I call the authentification method:
I tried to run:
Function AuthentificateUser_Test
'Get the type factory for the web service
Test_authentificateUser = WebServices.GDisWebService.authentificateUser
Test_authentificateUser.username = "Admin"
Test_authentificateUser.password = "Password"
End Function
And got the following error message:
<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>No binding operation info while invoking unknown method with params unknown.</faultstring></soap:Fault>
================================================================
I have to call the method 'createClaimsDetalization' at the same time 5 times and to check performance.
'createClaimsDetalization' - content of the code:
Function createClaimsDetalization1
Dim TypeFactory
'Get the type factory for the web service
Set TypeFactory = WebServices.GDisWebService.TypeFactory
Set createClaimsDetalization1 = TypeFactory.createClaimsDetalization1
'createClaimsDetalization1.sessionKey =
'createClaimsDetalization1.insPersCode =
'createClaimsDetalization1.cardNumber =
'createClaimsDetalization1.serviceCode =
'createClaimsDetalization1.serviceCount =
'createClaimsDetalization1.sumToPay =
'createClaimsDetalization1.medInstCode =
'createClaimsDetalization1.eventDate =
End Function
'createClaimsDetalizationResponse' - content of the code:
Function createClaimsDetalizationResponse1
Dim TypeFactory
'Get the type factory for the web service
Set TypeFactory = WebServices.GDisWebService.TypeFactory
Set createClaimsDetalizationResponse1 = TypeFactory.createClaimsDetalizationResponse1
Set createClaimsDetalizationResponse1.return = TypeFactory.healthClaimsCreationRetParam
'createClaimsDetalizationResponse1.return.status =
'createClaimsDetalizationResponse1.return.statusText =
'createClaimsDetalizationResponse1.return.clientSum =
'createClaimsDetalizationResponse1.return.detID =
'createClaimsDetalizationResponse1.return.discount =
'createClaimsDetalizationResponse1.return.paymSum =
'Generating the array property. Choose the lower and upper array bounds that meet your needs
createClaimsDetalizationResponse1.return.errorsInfo = BuiltIn.CreateVariantArray(0, 10)
End Function
==========================================
Thanks in advance.
Armands
- Hi Armands,
Unfortunately, attached screenshots do not provide enough information to answer your questions.
Can you archive the contents of the WebServices folder of your test project and either post it within this thread or contact me directly via AlexKaras at hotmail dot com ?