Forum Discussion

prabhud's avatar
prabhud
Occasional Contributor
14 years ago

Datasource Concept in SOAPUI

Hi All,

I am new to SOAPUI and recently i studied data source concept. Let me share my experience, correct if i am wrong.

First we need to create test case , double click the test case, testcase window will open. Click on datasource image icon and enter the name for the data source. Window would get open, from the drop down select values as excel, now browse and select excel sheet which has test data for your test case and click on save button(Don't forget mention the cell name). Click on add symbol and create property for each column.


Double click on test case -> test step window will open -> right click on the field -> navigate to set -> and select the corresponding property, now it will show the excel sheet path - > in response editor right click and get the Xpath of the property name (right click on name -> add for assertion -> for content->now select expected result as datasource property) and click ok button.

Now click on run test case button, if you run the testcase it will execute only once, for that we need to loop the data source.

After creating loop data source, now run the test case. all the cases would get execute and it shows the result.

I got error while adding the xpath: Missing exception failed

I am unable to find the solution. Kindly help me to resolve the issue.


Thanks,
Prabhu

1 Reply

  • prabhud's avatar
    prabhud
    Occasional Contributor
    I got below error

    XPathContains comparison failed, expecting []