Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6567799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:22:47+00:00 2026-05-25T14:22:47+00:00

I am creating an automated test framework. At present in order to best find

  • 0

I am creating an automated test framework. At present in order to best find any issues I have introduced randomness into the tests, such that a test will generate random data and try multiple paths. However this has lead to a problem, I am no longer able to easily re-execute failed tests.

In order to proceed I need to implement a way to store the actions of the test, including their parameters. With the way I have implemented the framework all of the “work” is handled by one class, thus if I was able to record the methods invoked with parameters in this class then I would have a full record of actions executed in the script.

From this list of methods though I need an easy way to re-execute these method calls, preferably with as little manual work as possible.

Sorry if this has been asked before but I wasn’t able to find anything to help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:22:47+00:00Added an answer on May 25, 2026 at 2:22 pm

    While it may be possible to record and reproduce the actions by some complex reflection or aspect-oriented programming, it’s probably easier to just make the process repeatable by dealing with the randomness a bit differently.

    Precisely how the current version of java.util.Random determines the seed if it’s not specified, I’m not sure. In 1.4.2, it was documented as being

     public Random() { this(System.currentTimeMillis()); }
    

    But if instead of letting it default to something based on current time and out of your control, you explicitly set the seed to something known (possibly System.currentTimeMillis()), and record the seed that was used, then you can easily replay with the same seed and get the same sequence of “random” numbers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an automated testing framework in Perl for regression tests. I would
Just curious: What do you find to be your best tools for creating automated
I have successfully automated the process of creating a new IIS website, however the
I am creating an automated test running application. In this part of the application,
Often do I find myself creating the same unit tests methods to getters\setters, c'tors
Hi I have a generator which made some automated code (creating all the get,
I'm using WatiN for some automated tests and what I found was that creating
I have a C# project and a test project with unit tests for the
What are the recommendations of software products for creating automated backups of SQL Server
I'm creating an automated installation of Office 2007. To customise your Office 2007 installation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.