Path: csiph.com!news.bbs.geek.nz!.POSTED.agency.bbs.geek.nz!not-for-mail From: Eric Douglas (Eric Douglas) Newsgroups: comp.lang.java.programmer Subject: Re: Calling deprecated methods Date: Wed, 13 Dec 2017 07:57:40 +1200 Organization: fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet Message-ID: <644722387@f38.n261.z1.binkp.net> References: <2563165031@f38.n261.z1.binkp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: news.bbs.geek.nz; posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; logging-data="1013"; mail-complaints-to="abuse@news.bbs.geek.nz" User-Agent: VSoup v1.2.9.47Beta [95/NT] X-Comment-To: Kiwi User X-MailConverter: SoupGate-Win32 v1.05 Xref: csiph.com comp.lang.java.programmer:37851 On Wednesday, December 13, 2017 at 10:19:23 AM UTC-5, Kiwi User wrote: > > Interaction is sometimes the hard part of testing. Method A works fine, > > unless you've called Method B with value C then Method D with value E > > first? > > My test system can handle any or all of that stuff, but doesn't even > attempt to do GUI testing because I don't have a good solution for that. > > My main test harness is set up to do low level tests on a class but could > be easily extended to do more. Its main loop reads a test script, which > is a text file whose general format is > > command param1 param2 param3... # comment > I know nothing of this sort of testing though I am curious to know how you'd find the data that would generate errors when a method accepts a number and handles 1, 1.5, and 2 just fine but 1.6 returns an incorrect result. Surely GUI is worse as the human variable is bigger, and the client machine is a new variable. It may be possible to crash an API only if a user clicks too fast, or clicks on something while pressing a key at the same time, or other such unexpected activity. I had one crash we could only reproduce with a specific video driver. Sometimes the ability to crash is relative to the speed of the mouse clicking and the speed of the CPU or GPU.