Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fault Injecton

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
I need to write some software that allows me to inject faults into other pieces of software that I am testing.

There are a couple of things I am trying to understand.

1. How do I get my app (which will be written in Borland C++ Builder 5.0) to open another application?

2. I want to use checkboxes so that when a user checks a "Network Disconnect" box, the application simulates not having a network connection or having lost the connection. I know how to do the checkboxes and all but I don't how to simulate the loss of a network.

Can anyone help me on these two items?

Thanks

fergmj
 
The first is fairly easy, see the FAQ in this forum for CreateProcess. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that they think I am now
qualified to do anything with nothing.
 
2ffat -

Thanks. That helps a lot. Now I just need to figure out how to make my app inject faults.

Thanks

fergmj
 
I can think of one way, have your apps accept switches like many command line programs do. For example, "MyApp /NoNetwork" would start the app without a network connection. Other possiblilities include using DDE or COM to communicate to your apps. Just a thought.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that they think I am now
qualified to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top