Re: Automatically filling an app with test data
Re: Automatically filling an app with test data
- Subject: Re: Automatically filling an app with test data
- From: "Matteo Manferdini" <email@hidden>
- Date: Fri, 2 Jan 2009 12:11:15 +0100
> You mean you have written an application and haven't been testing it
> throughout?
Of course I've done it, it would have been foolish to write an app
without any test! :) What I need now is a rapid way to fill it with
tons of data, the data a user could accumulate in a year or two of
use, to see if there are problems that cannot be spotted with few
entries by hand (i.e. if the application slows too much and needs some
optimization). Doing this by hand would be very long, so I'm looking
for the best/most rapid way of doing it.
> If you want to get data into your app, you might want to look at
> writing code to extract data from other sources, rather than starting
> with that data and trying to get it into your app. After all, you're
> already writing your app's source code, you needn't treat it as a
> black box.
The problem is that I do not have any external source of data. My app
is a diet app a user fills constantly with personal data. So I need
some sort of automatic procedure to generate random data. I can
obviously write an object to do it. I was only asking if this is the
usual way or if there is some other better way of doing it.
>
>> I'm using core data to store all application data, so maybe there is a
>> way I'm not considering.
>
> That would be an awfully generic problem to solve, wouldn't it?
> "Given a program P, which we know uses Core Data in some capacity but
> can do anything else beyond that, and an arbitrary set of test data T,
> import T into P in a useful manner." Smells like the Halting Problem.
Yes, I admit it was a very generic way of describing the problem. What
I meant was: is there some way to automate the filling of a core data
based application, given the core data model? What I'm looking for is
some tool that reads the model of my app, takes some range for the
values of attributes and generates a bulk of data my app can read. I
don't know if there is something like this, but it could be a very
handy way to solve my problem.
Thank you very much.
Cheers.
Matteo Manferdini
Pawn Software
www.pawn-soft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden