Click here to Skip to main content

Application Lifecycle

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Designing a system test for error handling functionsmemberjschell22 Jul '11 - 10:18 
There is no general purpose easy way to do everything.
 
It is possible, but difficult, to use code insertion techniques to simulate any error. At best, and at the most complicated, you actually modify the code at run time to force an error.
 
Some people suggest using interfaces. These are outside those required by the design but are put in place solely to support testing. The problem with that is that not everything is solved with that and it might require a lot of interfaces.
 
One can also be creative about testing. For example if I need to test connectivity problems I can use a system call, in the test code, to drop my IP (of course I better restore it as well.) Or I can stop SQL Server pro grammatically when doing database error tests (again make sure to restart it.)
QuestionBest method for Testing the UI part of an application that use Windows FormsmemberNetDefender12 Apr '11 - 7:19 
What is the best method for Testing an application that use Windows Form accesing a database, especially UI part?
AnswerRe: Best method for Testing the UI part of an application that use Windows FormsmemberEddy Vluggen12 Apr '11 - 8:11 
A human that knows how to operate your application and who knows what behavior would be expected.
 
I'd recommend AutoHotKey if you want to create automation-scripts to test your application; it's small, free, and uses almost no resources at all. A script can merely click where you tell it to, and it will not verify anything else.
I are Troll Suspicious | :suss:

AnswerRe: Best method for Testing the UI part of an application that use Windows FormsmemberPrasanta_Prince11 May '11 - 1:08 
I recomend a human who dont know your application. So that he can test as he want, with different conditions.
GeneralRe: Best method for Testing the UI part of an application that use Windows FormsmemberNetDefender11 May '11 - 7:00 
Thanks.
GeneralRe: Best method for Testing the UI part of an application that use Windows FormsmvpPete O'Hanlon11 May '11 - 7:09 
Hmmm. That's not always the best way. How, for instance, do you tell if a button is meant to be enabled only under certain conditions? In depth knowledge of what the application is supposed to do is invaluable, and should not be ignored.

Forgive your enemies - it messes with their heads

My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


AnswerRe: Best method for Testing the UI part of an application that use Windows Forms [modified]memberRobCroll12 May '11 - 3:49 
Check out the MVP pattern. Of course you need to implement the pattern in your code before you can create the unit tests. So it may not be a cost effective option for legacy code.
 
[edit]Only just discovered that VS2010 Ultimate has a way of testing UI called "Coded UI Test". Ultimate license are expensive but it may also be a viable option especially for upgraded legacy code.
"You get that on the big jobs."
modified on Thursday, May 12, 2011 9:56 AM

AnswerRe: Best method for Testing the UI part of an application that use Windows Formsgroupdianago28 Jun '11 - 23:15 
Hey guy,

United ahead electronics.,ltd here, selling IC PARTS with good quality and low price.

contact me by eamil:diana@united-ahead-electronics.com
QuestionC++ Design Patternsmembermsr_codeproject28 Oct '10 - 19:36 
Hi, can anybody share some write-up on design patterns
 
with C++ code.
 

Regards
msr
AnswerRe: C++ Design PatternsmvpPete O'Hanlon28 Oct '10 - 19:43 
You can find some (limited I grant you) details on design patterns with C++ code here[^].

I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

Forgive your enemies - it messes with their heads

My blog | My articles | MoXAML PowerToys | Onyx


AnswerRe: C++ Design PatternsmemberShilpi Boosar7 Nov '10 - 21:59 
click here ->[^] and here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

AnswerRe: C++ Design PatternsmemberAlain Rist8 Nov '10 - 0:00 
Hi,
Begin here: Bjarne Stroustrup's C++ Style and Technique FAQ[^]
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)

AnswerRe: C++ Design Patternsgroupyu-jian8 Nov '10 - 19:01 
view the Book <Head first design pattern> and change its code to c++.
AnswerRe: C++ Design PatternsmemberEswa15 Nov '10 - 19:12 
Have a look here http://www.codeguru.com/forum/showthread.php?t=327982
QuestionWhat to do in case UI control has been removed from the form?memberTesic Goran4 Oct '10 - 0:13 
Hello,
 
This question refers to testing using MS Visual Studio 2010 Ultimate Edition.
 
I think this is simple scenario that can happen during coded UI testing and it could be useful if someone could point to right direction.
 
Let's say we have ASP.NET application that has several controls on one web form. We wrote coded UI test and everything is ok. After some time development team decided to change the content of the form according to the new requirements and one button was removed. But, the test remained the same as was when button was on the form. What to do in this case? Of course, we can change the test as well. But, what to do in efficient manner if we have, for example, 1000+ coded UI tests and if changes affected a lot of forms? How can we find the changes on many forms programmatically in order to get the information of significant changes earlier and not to execute the tests where these significant changes occurred?
 
I'm interesting if we can use .uitest file or anything else as central repository of elements on all forms that we're testing. Is this possible to achieve?
 
Thank you in advance.

 
Regards,
 
Goran
AnswerRe: What to do in case UI control has been removed from the form?mvpEddy Vluggen17 Nov '10 - 8:02 
Tesic Goran wrote:
But, what to do in efficient manner if we have, for example, 1000+ coded UI tests and if changes affected a lot of forms? How can we find the changes on many forms programmatically in order to get the information of significant changes earlier and not to execute the tests where these significant changes occurred?

Using reflection. Load the assembly, enumerate all forms, enumerate all components on those forms. You can then write all the names of the controls into a database-table, along with a date. You could add other properties too, might be easier to decorate them with a custom attribute.
 
When validating changes, loop the controls again and compare them to the values in the database. Count how many things have changed, and drop all tests scoring more than a previously defined threshold.
 
Or, ask the developers to mark the forms' that they've been modifying extensively.
I are Troll Suspicious | :suss:

GeneralRe: What to do in case UI control has been removed from the form?memberTesic Goran17 Nov '10 - 19:57 
Thank you for suggestion.
 
Goran
QuestionI Can't Believe That No One Is Interested In This Forum!memberRoger Wright2 Aug '10 - 18:48 
It's one of the most important facets of product development!
 
In my experience, there are definite phases of product life:
 
1. Conceptual Design - in which marketing types toss around ideas that will make life miserable for the engineers and programmers who will eventually be called upon to actualize their insane, drunken imaginings.
 
2. Detail Design - in which phase the marketers release a "requirements" document to engineering, leading to much anguish and scribblings on cocktail napkins.
 
3. Implementation - wherein the engineers attempt to read the alleged minds of Marketing, and provide specifications to the programmers who have to code the vague descriptions from Marketing into a product that someone will want to buy.
 
4. Internal Testing (alpha) - in which phase the experts are asked to test their own code against the ever-changing requirements promulgated by Marketing; they patch the most obvious problems themselves, bypassing version control.
 
5. External Testing (beta) - during which selected computer-savvy customers are given free software to try out in real-world situations in return for feedback and bug reports to help the programmers make Marketing's drug-induced wet dream into a product someone will actually find useful.
 
6. Release - finally a product that does something useful, however badly! Of course, it only works for those computer-savvy beta testers; real people haven't a clue how to make it work, and there's no manual.
 
7. Maintenance - pesky customers will persist in finding flaws that must be fixed, else those stock options will expire worthless. Support programmers are busy in this phase just making the product function for users who want to do more than just log on and watch the pretty videos.
 
8. Retirement - the phase that begins about 30 minutes after entering the Maintenance phase - maintenance is expensive! Tech Support changes their phone number, and patches are phased out over a period of time. After all, the new version has just been released; who could possibly be using the old one?
 
Of course, for those on a tight budget, the Microsoft Endrun is available:
 
1. Marketing - drink heavily and promise the sky.
2. Conceptual Design - build flashy visuals (without using Flash, of course) to promote the product.
3. Implementation - just code something.
4. Internal Testing (alpha) - get the coders to test their own stuff.
5. Release - sell the damned thing before someone notices that it doesn't work.
6. Maintenance - Aww, why bother? Unless someone wants to pay through the nose for advice.
7. Retirement - What, that old thing? We stopped supporting that years ago!
"A Journey of a Thousand Rest Stops Begins with a Single Movement"

AnswerRe: I Can't Believe That No One Is Interested In This Forum!mvpRichard MacCutchan2 Aug '10 - 22:15 
What's to discuss? You have explained everything in a nutshell; have a 5. Wink | ;)
It's time for a new signature.

AnswerRe: I Can't Believe That No One Is Interested In This Forum!mentorKunalChowdhury8 Sep '10 - 2:27 
What's your question? I believe you described about the whole Life Cycle... Laugh | :laugh:
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.


Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial

AnswerRe: I Can't Believe That No One Is Interested In This Forum!groupyu-jian10 Nov '10 - 20:45 
Perhaps, I am this one that ... Poke tongue | ;-P
AnswerRe: I Can't Believe That No One Is Interested In This Forum!memberEswa15 Nov '10 - 19:14 
Good Message to all. have a 5 Smile | :)
AnswerRe: I Can't Believe That No One Is Interested In This Forum!memberPrasanta_Prince11 May '11 - 1:09 
Good message.. 5 for that.
Questionprojectmemberabhay_korat1 Aug '10 - 3:29 
hey you have any project of vb ... Blush | :O
AnswerRe: projectmemberRay Cassick2 Aug '10 - 13:03 
Errr yes, in fact I do.
 
But why ask that here?

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


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid