Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #5529
| From | Richard Heathfield <rjh@cpax.org.uk> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: How to write a test with random usage patterns? |
| Date | 2015-07-28 12:26 +0100 |
| Organization | go, ion artisan! |
| Message-ID | <mp7oqm$ka3$1@dont-email.me> (permalink) |
| References | <hbf.20150727d459@bombur2.uio.no> |
On 27/07/15 13:48, Hallvard Breien Furuseth wrote:> I want to test a database by throwing random usage patterns > at it. Find a way to express a test case as a sequence of bits, such that *any* sequence of bits represents a valid test case. Then generate a few hundred random bit sequences. Test them. If possible, identify the bitstrings that detect bugs, and flag them. Keep any that have the flag, and throw the rest out. Then generate new test cases as follows: 1) take two test cases at random; 2) take a random number of bits from the first test case; 3) take a random number of bits from the second test case, and catenate; 4) repeat from 2) until you have a valid test case; 5) randomly flip a small but random number of bits. Then go round again, and again, and again. Evolution in action. -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to write a test with random usage patterns? Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> - 2015-07-27 14:48 +0200
Re: How to write a test with random usage patterns? Julio Di Egidio <julio@diegidio.name> - 2015-07-27 07:19 -0700
Re: How to write a test with random usage patterns? Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> - 2015-07-27 17:00 +0200
Re: How to write a test with random usage patterns? Julio Di Egidio <julio@diegidio.name> - 2015-07-27 08:42 -0700
Re: How to write a test with random usage patterns? Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> - 2015-07-28 12:53 +0200
Re: How to write a test with random usage patterns? Julio Di Egidio <julio@diegidio.name> - 2015-07-27 07:42 -0700
Re: How to write a test with random usage patterns? Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> - 2015-07-28 12:55 +0200
Re: How to write a test with random usage patterns? Richard Heathfield <rjh@cpax.org.uk> - 2015-07-28 12:26 +0100
Re: How to write a test with random usage patterns? Julio Di Egidio <julio@diegidio.name> - 2015-07-28 05:20 -0700
Re: How to write a test with random usage patterns? Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no> - 2015-07-28 15:03 +0200
Re: How to write a test with random usage patterns? Richard Heathfield <rjh@cpax.org.uk> - 2015-07-28 17:17 +0100
csiph-web