Questions tagged [random-testing]
13 questions
21
votes
2 answers
Random generation of C programs with floating-point
Does anyone know a random generator of C programs that include floating-point computations?
I am looking for something that would be a little bit like Csmith, except that Csmith does not generate floating-point expressions, and that it generates…

Pascal Cuoq
- 79,187
- 7
- 161
- 281
15
votes
4 answers
Fuzz test (framework) web application?
Are there frameworks that can perform fuzztesting on WebApplications? I know that Selenium and WebDriver are used to build tests for web-applications, but I am particulary interested in libraries, frameworks or projects that have fuzz-testing…

Rob Audenaerde
- 19,195
- 10
- 76
- 121
9
votes
1 answer
Calling several times a single test - Google Tests
I am trying to perform a little of random testing in a piece of software I am developing.
I have a fixture that is initialized with random values, therefore, each test will have different input.
Moreover, what I want is to run one of those test…

Mario Corchero
- 5,257
- 5
- 33
- 59
5
votes
1 answer
relation between random testing and fuzz testing
I am wondering what the relation between random and fuzz testing is. I understand that random testing has been there for a longer time, but I cannot see any differences between them. They both seem to make use of random input to see if the program…

Martin Jü
- 153
- 4
3
votes
1 answer
How to generate random xml file that is semantically valid?
I want to use a random xml generator tool in order to perform random testing by generating random xml files from xsd. ( I am using Oxygen tool)
The random generator will not apply semantic restrictions on the generated values. for example I have an…

user1860496
- 31
- 4
1
vote
0 answers
Include desired input for a test in defects4j
I want to write a script on top of defects4j and try to include my own input for a specific (faulty) test. At the moment I checkout to the specific buggy branch and I just run:
defects4j compile and
defects4j test
and it runs the test and shows me…

erfoon
- 142
- 1
- 10
1
vote
0 answers
Writing PyTest Unit Tests for Script that randomly samples dataframes?
I am working on writing unit tests for a project of mine that processes data. However, I have some scripts that take CSVs, concatenate them with Pandas, and then randomly sample them to make train/dev/test sets for machine learning tasks.
I am…

Coldchain9
- 1,373
- 11
- 31
1
vote
1 answer
Dieharder random test suite - suspiciously good results
I generated a txt file based on the following generator (2500000 numbers)
import numpy as np
class LCG(object):
UZERO: np.uint32 = np.uint32(0)
UONE : np.uint32 = np.uint32(1)
def __init__(self, seed: np.uint32, a: np.uint32, c:…

tbone
- 1,148
- 5
- 19
- 35
1
vote
0 answers
Predicting next bit in a non random sequence
I have a nonrandom sequence of bits - I'm able to tell that the sequence is nonrandom because I have performed on it the runs test, moreover the sequence presents autocorrelation at lag 1 equal to 0.4 (right before the cutoff) whereas the partial…

james42
- 307
- 5
- 16
1
vote
0 answers
Testing UWP app using random events
For test Android application we can use the command line tool Monkey. A long time ago, we used Hopper to check the app stability on Windows Mobile.
And now for Universal Windows Platform (UWP) apps? Is there any tool to generate ramdom events to…

P. Ted
- 71
- 7
1
vote
1 answer
How to generate a random binary tree of given height h?
I am learning to implement tree algorithms and often I need to test my algorithms by generating different binary tree, which i do manually. I tried writing functions for it but it will not generate all possible trees. Any help is highly appreciated.

Vikrant Singh
- 669
- 1
- 6
- 18
0
votes
1 answer
Using Randoop To Generate Test Cases (Based on Pre- and Post- Conditions)
I am trying to use Randoop (by following Randoop Manual) to generate test cases based on pre- and post- conditions specification stored in a JSON file.
Target program is the following (buggy) Java method.
package com.example.math;
public class Math…

RealNamesOrHandles
- 17
- 1
- 6
0
votes
1 answer
paycheck not running test
@with_checker([int])
def check_sort(list_of_ints):
self.assertTrue(isinstance(list_of_ints, list))
self.assertTrue(len(list) == len(qsort(list)))
self.assertTrue(False)
I'm trying to run this, but it won't run, what is…

Viktor Mellgren
- 4,318
- 3
- 42
- 75