Forum Discussion
Yes ! I have gone through this experience, where my project file would cost around 70 MB of size with my total testcases count to 250 test cases, with each having 200 test steps as an average. I had solved this problem by few of these solutions,
1) Since my ultimate goal is data driven testing, I separated the data and the testable method and had the dat in external excel sheet and then retained just the necessary method inside SoapUI project file. This gave me an output of just 3 MB project file and with some set of external excel sheets. The time taken to load the SoapUI project has been ideally reduced.
2) Another method is divide and conquer, without following the data driven approach. I would possibly split my project as 5*50 test cases to result 250 test cases, by grouping them based on common flows. This even reduced and some how stopped this problem.
Finally, I would prefer you to follow the solution 1 which really gave an awesome result.
Thanks,
Samy
- groovyguy10 years agoCommunity Hero
Okay, what you are saying makes sense to me and I may be able to leverage that for some of my testing. The other part of my testing is also dealing with "missing" data, or when a field is optional. This means that a good portion of my testwill each need their own individual request where the data is not there. Unless there's a way to do this as well?
Some of our NULL tests is to test what happens if the data is blank (empty string), or if the data isn't there. Examples are below. So I think I could potentially use data driven testing for the empty data tests, but have seperate requests to handle each possible element being missing. Thoughts?
Empty Data:
<Element></Element>
or
<Element/>
Missing Data
<!-- <Element/> -->
- kondasamy10 years agoRegular Contributor
Possibly yes! It all lies in the way we are framing the request XML through the data drive approach. I just share my experience in handle this scenario through the below ways,
1) If I leave my cell (Excel cell which holds data) is empty/ null, then probably my customized code should either comment/ pass nothing; which again sends as empty tags (<Element></Element>) or commented tag (<!-- <Element/> --> ), which in no way recognzed by the service.
2) Another method is to feed some specific keywords as ***EMPTY*** in the excel cells. So, that my customized code will consider it as a sign for passing empty tag and would do so.
3) We can even pass the request XML taking directly from an excel sheet/ flat files.
I know there are better ways than this. I hope others would share there points too!
Thanks,
Samy
- groovyguy10 years agoCommunity Hero
I am trying to implement a datasource method to test, and am using this with a request. I add the datasource, import my data, verify it is there, and then go to my request. In my request I right click and say "Get Data" but the Datasource does not show up. All that shows up for options for getting data from is my project and my test suite. Why would this be?
- nmrao10 years agoCommunity HeroThe approaches are good. 200 steps(over-exaggerated) in a case?
- kondasamy10 years agoRegular Contributor
@nmrao: The approaches are good. 200 steps(over-exaggerated) in a case?
Yes, it is is little large! But, it is very small when I compare to the test case which even test for 200000 test data. A data intensive test case though.:smileyhappy:
Thanks,
Samy
- nmrao10 years agoCommunity Hero
Oh! You are talking about 200 test data with 250 test cases, but not the number of test steps in a case.
That what I was wondering, is that even possible to follow for some one to do the test manually.
Confused with text in the explanation of the first reply.
Data can have any volume.
When you say 200k, does m/s excel allow that many rows?