Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Software Engineering Tutorial
  • Software Development Life Cycle
  • Waterfall Model
  • Software Requirements
  • Software Measurement and Metrics
  • Software Design Process
  • System configuration management
  • Software Maintenance
  • Software Development Tutorial
  • Software Testing Tutorial
  • Product Management Tutorial
  • Project Management Tutorial
  • Agile Methodology
  • Selenium Basics
Open In App
Next Article:
Load Testing - Software Testing
Next article icon

Random Testing in Software Testing

Last Updated : 16 Dec, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

Random testing is software testing in which the system is tested with the help of generating random and independent inputs and test cases. Random testing is also named monkey testing. It is a black box assessment outline technique in which the tests are being chosen randomly and the results are being compared by some software identification to check whether the output is correct or incorrect.

Some important points about Random Testing:

  1. Random testing was first examined by Melvin Breuer in the year 1971.
  2. This testing was initially assessed by Pratima and Vishwani Agrawal in the year 1975 to check the successful output of the software.
  3. For random testing, there is also a book that contains some formulas for the number of tests that can be taken and the number of successful results and failure results.

Working Random Testing:

Step-1: Identify Input domain

Step-2: Select test inputs independently/randomly from the input domain

Step-3: Test the system on these inputs and form a random test set

Step-4: Compare the result with system specification

Step-5: If the Report fails then take necessary action.

The below image represents the working of Random Testing more clearly.

Working of Random Testing
Working of Random Testing

Types of Random Testing

1. Random input sequence generation: It is also known as Random Number Generator (RNG) in which a random sequential number or symbols is being generated which cannot be assumed during the random selection.

2. Random sequence of data inputs:  In this, all the data are selected randomly for the inputs which can be used during the testing.

3. Random data selection from an existing database: The record where all the data are available from that record only the data can be selected for testing afterward no additional data cannot be added which are not available in the record.

Characteristics of Random Testing:

  1. Random testing is implemented when the bug in an application is not recognized.
  2. It is used to check the system's execution and dependability.
  3. It saves our time and does not need any extra effort.
  4. Random testing is less costly, it doesn’t need extra knowledge for testing the program.

Methods to Implement Random Testing:

To implement the random testing basically, four steps are applied:

  1. The user input domain is analyzed.
  2. After that, from that domain, the data of test inputs are chosen separately.
  3. With the help of these test inputs, the test is executed successfully. These input tests conduct random sets of tests.
  4. The outcomes are compared with the system identification. The outcome of the test becomes unsuccessful if any test input doesn’t match with the original one otherwise the outcomes are always successful.

Advantages of Random Testing

  1. It is very cheap so that anyone can use this software.
  2. It doesn’t need any special intelligence to access the program during the tests.
  3. Errors can be traced very easily; it can easily detect the bug throughout the testing.
  4. This software is lacking bias means it makes the groups evenly for the testing and it prefers not to repeatedly check the errors as there can be some changes in the codes throughout the testing process.

Disadvantages of Random Testing

  1. This software only finds changes errors.
  2. They are not practical. Some tests will be of no use for a longer time.
  3. Most of the time is consumed by analyzing all the tests.
  4. New tests cannot be formed if their data is not available during testing.

Tools used for Random Testing

  1. QuickCheck: It is a famous test tool, which was introduced for Haskell which is available in many different languages. This tool generates random orders for API calls that are related to the model and the properties of the system which can give successful results after every test.
  2. Randoop: This tool provides an order of methods and constructor acknowledgment for the classes during the test and generates JUnit tests.
  3. Simulant: It is a Clojure tool that runs according to the system’s different specifications, the behavior of the model.
  4. Gram Test: This random testing tool is based on grammar which is written in Java, It utilizes BNF notation for specifying the grammar which is used as input during testing.

Next Article
Load Testing - Software Testing

S

Satyabrata_Jena
Improve
Article Tags :
  • Computer Subject
  • Software Engineering

Similar Reads

  • PEN Testing in Software Testing
    Pen testing, a series of activities taken out in order to identify the various potential vulnerabilities present in the system which any attack can use to exploit the organization. It enables the organization to modify its security strategies and plans after knowing the currently present vulnerabili
    3 min read
  • Pilot Testing in Software Testing
    Pilot testing is the type of software testing where a group of users uses the software in totality before the final launch or deployment of the software. This testing verifies a component of the system or the entire system under a real-time operating condition. The purpose of the pilot testing is to
    6 min read
  • Response Testing in Software Testing
    Software applications are developed to provide some specific service to the customers. When an end-user uses a software product/application between the software and the user, a request-response interaction takes place. This request-response interaction is one method of communication between users an
    8 min read
  • Load Testing - Software Testing
    Load testing is a type of Performance Testing that determines the performance of a system, software product, or software application under real-life-based load conditions. This article focuses on discussing load testing in detail. Table of Content What is Load Testing?Load Testing TechniquesObjectiv
    10 min read
  • Dynamic Testing - Software Testing
    Dynamic testing is a type of software testing that involves executing the software and evaluating its behavior during runtime. It is also known as functional testing, as it focuses on testing the software's functionality and how it behaves under different inputs and conditions. In this article, we'l
    6 min read
  • Endurance Testing - Software Testing
    Endurance Testing is a type of Software Testing that is performed to observe whether an application can resist the processing load it is expected to have to endure for a long period. During endurance testing, memory consumption is considered to determine potential failures. Performance quality is al
    10 min read
  • Scenario Testing - Software Testing
    Scenario testing helps testers to know how the software will exactly work when end user will use it. As the scenario testing tests the business process flow of the software so it helps in figure out a lot of defects which cannot be found with the help of other testing. Scenario testing is carried ou
    4 min read
  • Gray Box Testing - Software Testing
    The Gray Box Testing is a combination of Black Box and White Box Testing. Gray box testing is also known as translucent testing or API (Application Programming Interface) testing. This article focuses on discussing the Gray Box Testing in detail. Table of Content What is Gray Box Testing? Gray Box T
    10 min read
  • Sandwich Testing - Software Testing
    Sandwich Integration Testing helps verify that software works reliably in complex systems with multiple layers. It combines both top-down and bottom-up testing methods, giving a thorough check of the system. This approach looks at individual layers and how they interact, catching defects early on, r
    5 min read
  • Manual Testing - Software Testing
    Manual testing is a crucial part of software development. Unlike automated testing, it involves a person actively using the software to find bugs and issues. This hands-on approach helps ensure the software works as intended and meets user needs. In this article, we'll explain what manual testing is
    12 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences