Click here to Skip to main content
15,886,362 members
Home / Discussions / Application Lifecycle
   

Application Lifecycle

 
AnswerRe: Application Environments Pin
Peter_in_278017-Aug-11 13:25
professionalPeter_in_278017-Aug-11 13:25 
QuestionDesigning a system test for error handling functions Pin
PaulowniaK2-Jun-11 17:09
PaulowniaK2-Jun-11 17:09 
I'm not even sure if I can ask this question properly (shows how unclear I am about it myself).

So I developed a small part of a rather complex software. I am to run a system test on this software (the whole thing) to test its error handling procedures.

But it's not going so smoothly.

It's alright for those errors that I can actually cause (e.g. run the software without some essential hardware).

But of course I can't generate errors such as "Hardware broken" or "Hardware is connected but not responding" as there is a chance of actually doing harm to the hardware.

So I need a cheat.

Putting break points in the software and overwriting values is not an option because this is a system test.

So I duplicated a small part of my software and put some error testing mechanism in the second copy (let's call it the tester version). The software launches with one or the other of these versions depending on the registry value I set.

The problem is that I've limited the duplicated portion of the code, which I thought and still think is a good idea, but this means that the dummy errors can only be emitted from one place.

In reality there are many paths errors can take. Depending on the path, the final output to the user can be different.

I want to map the various error paths to help decide how best to generate the dummy errors.

It appears I need to do something like: "Generate error A as if function B caused it" and "Generate error A as if function C caused it" etc

So I need a mapping from error A to functions B and C, and so on.

Is there a clever way of doing this?

Or maybe a better question would be, what is the best way to run a system test on error handling functions?

Thanks for any input.
Almost, but not quite, entirely unlike... me...

AnswerRe: Designing a system test for error handling functions Pin
jschell22-Jul-11 10:18
jschell22-Jul-11 10:18 
QuestionBest method for Testing the UI part of an application that use Windows Forms Pin
NetDefender12-Apr-11 7:19
NetDefender12-Apr-11 7:19 
AnswerRe: Best method for Testing the UI part of an application that use Windows Forms PinPopular
Eddy Vluggen12-Apr-11 8:11
professionalEddy Vluggen12-Apr-11 8:11 
AnswerRe: Best method for Testing the UI part of an application that use Windows Forms Pin
Prasanta_Prince11-May-11 1:08
Prasanta_Prince11-May-11 1:08 
GeneralRe: Best method for Testing the UI part of an application that use Windows Forms Pin
NetDefender11-May-11 7:00
NetDefender11-May-11 7:00 
GeneralRe: Best method for Testing the UI part of an application that use Windows Forms Pin
Pete O'Hanlon11-May-11 7:09
mvePete O'Hanlon11-May-11 7:09 
AnswerRe: Best method for Testing the UI part of an application that use Windows Forms [modified] Pin
RobCroll12-May-11 3:49
RobCroll12-May-11 3:49 
AnswerRe: Best method for Testing the UI part of an application that use Windows Forms Pin
dianago28-Jun-11 23:15
dianago28-Jun-11 23:15 
QuestionC++ Design Patterns Pin
msr_codeproject28-Oct-10 19:36
msr_codeproject28-Oct-10 19:36 
AnswerRe: C++ Design Patterns Pin
Pete O'Hanlon28-Oct-10 19:43
mvePete O'Hanlon28-Oct-10 19:43 
AnswerRe: C++ Design Patterns Pin
ShilpiP7-Nov-10 21:59
ShilpiP7-Nov-10 21:59 
AnswerRe: C++ Design Patterns Pin
Alain Rist8-Nov-10 0:00
Alain Rist8-Nov-10 0:00 
AnswerRe: C++ Design Patterns Pin
yu-jian8-Nov-10 19:01
yu-jian8-Nov-10 19:01 
AnswerRe: C++ Design Patterns Pin
TweakBird15-Nov-10 19:12
TweakBird15-Nov-10 19:12 
QuestionWhat to do in case UI control has been removed from the form? Pin
Tesic Goran4-Oct-10 0:13
professionalTesic Goran4-Oct-10 0:13 
AnswerRe: What to do in case UI control has been removed from the form? Pin
Eddy Vluggen17-Nov-10 8:02
professionalEddy Vluggen17-Nov-10 8:02 
GeneralRe: What to do in case UI control has been removed from the form? Pin
Tesic Goran17-Nov-10 19:57
professionalTesic Goran17-Nov-10 19:57 
QuestionI Can't Believe That No One Is Interested In This Forum! PinPopular
Roger Wright2-Aug-10 18:48
professionalRoger Wright2-Aug-10 18:48 
AnswerRe: I Can't Believe That No One Is Interested In This Forum! Pin
Richard MacCutchan2-Aug-10 22:15
mveRichard MacCutchan2-Aug-10 22:15 
AnswerRe: I Can't Believe That No One Is Interested In This Forum! Pin
Kunal Chowdhury «IN»8-Sep-10 2:27
professionalKunal Chowdhury «IN»8-Sep-10 2:27 
AnswerRe: I Can't Believe That No One Is Interested In This Forum! Pin
yu-jian10-Nov-10 20:45
yu-jian10-Nov-10 20:45 
AnswerRe: I Can't Believe That No One Is Interested In This Forum! Pin
TweakBird15-Nov-10 19:14
TweakBird15-Nov-10 19:14 
AnswerRe: I Can't Believe That No One Is Interested In This Forum! Pin
Prasanta_Prince11-May-11 1:09
Prasanta_Prince11-May-11 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.