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 9241315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:20:57+00:00 2026-06-18T08:20:57+00:00

I have a set of test steps represented by classes. Each have their own

  • 0

I have a set of test steps represented by classes. Each have their own data and methods, so standard stuff. All read in from an XML configuration.

However results from one test may be used as parameters in the next test and I am having some trouble trying to work ou the best way to implement this.

I thought about having a class that is, in essence a dictionary of objects and so each stored value would be able to be associated with a unique key and anywhere that key is used later then test would be able to take it from the dictionary and use it (obviously error/type checking etc would need to be quite good). I don’t really like this but am not sure if there are other patterns of c# functionality that can handle this issue?

So something a bit like this:

<TestRunner xsi:type="TestType1" OutputValue="ResultIndx1"/>
<TestRunner xsi:type="TestType2" InputValue="ResultIndx1"/>

I don’t believe in C# it is possible to have a object within the base class of a hierarchy that is then shared through all base classes is it?

So it’s making me think more towards a Singleton but I want to avoid it if possible.

Any thoughts on how to handle this?

Thanks

  • 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-06-18T08:20:58+00:00Added an answer on June 18, 2026 at 8:20 am

    A static member in the base class that is not private should suffice.

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

Sidebar

Related Questions

I have a set of test steps that I have to execute with different
I have a set of test accounts that are going to be created but
I'm stress testing a web app and have set up a windows test program
HI, I want to have set configuration settings for a unit test project that
Have a JUNIT test set up as such @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ /applicationContext.xml, /applicationContext-security.xml }) @TransactionConfiguration(defaultRollback
public void test(Object obj){ //Here i have to set the values of the obj
I have a LDIF file that consists of a set of test users and
I have a VS2010 unit test project set to using SpecFlow 1.8.1 and mstest.
I have scrip contain command line: set dir=%1 cd %dir% test.bat echo successful When
I have a PowerShell module called Test.psm1. I want to set a value on

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.