La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] Different JDialogs with the same title, different components?
Thank you very much Chuck, this worked! :) -----Original Message----- From: Hunt,Chuck [mailto:CHUNT1@?.COM] Sent: Wednesday, June 05, 2013 3:05 PM To: Joaquin Rodriguez Guerra; 'qftest-list@?.de' Subject: RE: [QF-Test] Different JDialogs with the same title, different components? Hello, There are probably several ways to handle it, but I would probably check for the Warning! Dialog. If it appears, then capture the text and compare that to the known list of warning messages. From there you can react as desired. It might look something like this. You could probably put all this into a procedure and just call that when needed. - Try - Wait for Component(Warning) - Fetch TEXT - if TEXT = 'a' -do 'xyz' - else if TEXT = 'b' -do 'uvw' - Catch - do nothing (with NO Error) -----Original Message----- From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On Behalf Of Joaquin Rodriguez Guerra Sent: Wednesday, June 05, 2013 3:58 AM To: 'qftest-list@?.de' Subject: [QF-Test] Different JDialogs with the same title, different components? Hey everyone, We are using QFTest to test a Java Swing application and we have some questions regarding the identification of components, particularly the swing JDialogs. In the SUT we are testing, a JDialog pops up every time the user fills a form incorrectly, displaying a warning message about what is missing in the form. When recording the filling form action, QFTest detects the pop up of the warning JDialog as if it was always the same component no matter what warning message is displayed. Is there any way to make QFTest see the different dialogs displaying the different warning messages as if they were different components? Note that the title of the warning JDialogs is always the same (Warning!), is this what is making QFTest see the different JDialogs as if they were all the same component? In our testing we would like to react differently depending on the type of warning JDialog received, what would be the best approach if what suggested above is not possible? Using if sentences to check the content of the JDialog? Thanks in advanced, Best regards, Joaquín _______________________________________________ qftest-list mailing list qftest-list@?.de http://www.qfs.de/mailman/listinfo/qftest-list CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.