Webservice script creation from Taurus

127 views
Skip to first unread message

kshtriya...@gmail.com

unread,
Jul 5, 2016, 2:38:59 AM7/5/16
to codename-taurus
Hi Team,

Please suggest how to create a web service script in Taurus yml file.

Regards,
Prateek

Dmitri Pribysh

unread,
Jul 5, 2016, 3:13:43 AM7/5/16
to kshtriya...@gmail.com, codename-taurus

Hi,

Can you elaborate on what you mean by "web service script"?

  Dmitri


--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/a42bd124-e187-42f0-a401-dc8ead5a7477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kshtriya...@gmail.com

unread,
Jul 5, 2016, 3:17:45 AM7/5/16
to codename-taurus, kshtriya...@gmail.com
I have been trying to create a script for web service performance testing.
I have got a WSDl and request correspondingly.
For example below web service -

<?xml version="1.0" encoding="utf-8"?>
  <soap:Body>
    <GetWeather xmlns="http://www.webserviceX.NET">
      <CityName>tokyo</CityName>
      <CountryName>japan</CountryName>
    </GetWeather>
  </soap:Body>
</soap:Envelope>

kshtriya...@gmail.com

unread,
Jul 5, 2016, 5:17:06 AM7/5/16
to codename-taurus, kshtriya...@gmail.com
Like in jmeter "SOAP/XML-RPC Request sampler " could be used to create the passing the URL & request data.

kshtriya...@gmail.com

unread,
Jul 5, 2016, 7:25:47 AM7/5/16
to codename-taurus, kshtriya...@gmail.com
I tried converting the .jmx file using- jmx2yaml "XML-RPC Request.jmx" but it resulted only below-

Python27\Scripts>more "XML-RPC Request.jmx.yaml"
---
execution:
- scenario: Thread Group
scenarios:
  Thread Group:
    requests: []
    store-cache: false
    store-cookie: false
    use-dns-cache-mgr: false

where as the jmx is having SOAP/XML-RPC Request sampler with "url" and "SOAP/XML-RPC data".
The jmeter script is working fine on replay.
Please suggest.

Regards,
Prateek 

pri...@blazemeter.com

unread,
Jul 7, 2016, 9:29:10 AM7/7/16
to codename-taurus, kshtriya...@gmail.com
I'm afraid there's no way to do that with Taurus YAML confgs, you have to create a JMX.

pri...@blazemeter.com

unread,
Jul 7, 2016, 11:04:07 AM7/7/16
to codename-taurus, kshtriya...@gmail.com
Hold on. Actually, you can do XML-RPC requests, you just have to put request body as XML in your config. Here's an example:

```
---
execution:
- scenario: xmlrpc

scenarios:
  xmlrpc:
    default-address: http://localhost:8000
    headers:
      Content-Type: text/xml
    requests:
    - url: /
      method: POST
      body: <?xml version='1.0'?><methodCall><methodName>is_even</methodName><params><param><value><int>42</int></value></param></params></methodCall>
```

andrew...@gmail.com

unread,
Oct 31, 2016, 5:50:22 PM10/31/16
to codename-taurus, kshtriya...@gmail.com
Hi,
I tried this as an alternative to SOAP/XML-RPC Request sampler. The resulting YAML gives strange errors:

<failureMessage>The element type &quot;hr&quot; must be terminated by the matching end-tag &quot;&lt;/hr&gt;&quot;.
See log file for further details.</failureMessage>

Only problem is - I don't see any such tags.

Dmitri Pribysh

unread,
Nov 1, 2016, 9:03:38 AM11/1/16
to andrew...@gmail.com, kshtriya...@gmail.com, codename-taurus
Can you post a YAML source and a JMX file that was generated? You can find it in the artifacts dir.
Reply all
Reply to author
Forward
0 new messages