Forum Discussion

TestiMcTestface's avatar
TestiMcTestface
New Contributor
7 years ago

Path Coverage Test

Hi everyone,

Iam pretty new to testing and wanted to do a few test-tests before applying them to my project.

I setup SOAP UI and took

http://www.webservicex.net/BibleWebservice.asmx?WSDL

as my test WSDL.

Everything works fine. I choose this WSDL since I want to do some path coverage testing (i hope thats the right test name).

I can give a Bible Book, Chapter and Verse and get the corresponding text in retourn. That gives me 31000 outcomes.

I now want to automate a test that does every possible combination.

So I would  give all the book names (around 30) and want to test all Chapters/Verses from 1 to 99 (just to securely cover all, the fitting number could be given).

The result should be a test that gives me green lights if all possibilities worked.

How could i perform something like this? is their maybe a more suitable way to do this or something similar.
The example code is:

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
   <soapenv:Header/>
   <soapenv:Body>
      <web:GetBibleWordsByChapterAndVerse>
         <!--Optional:-->
         <web:BookTitle>?</web:BookTitle>
         <web:chapter>?</web:chapter>
         <web:Verse>?</web:Verse>
      </web:GetBibleWordsByChapterAndVerse>
   </soapenv:Body>
</soapenv:Envelope>