2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Question on the clicking on the popup menu


  • Subject: Re: [QF-Test] Question on the clicking on the popup menu
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Sat, 23 Jun 2012 17:31:35 +0200


Hello Shivakumar,

an 'SUT script' is certainly not the right place to embedd a statement "rc.callProcedure()" when the called 'Procedure' contains event nodes like 'Mouseclick'. As 'SUT scripts' run on the event dispatch thread by default, opening the modal File Dialog the way you do it will even block the test execution in QF-Test. As a rule, you need an 'SUT script' node only when you want to access objects in your client application (by means of rc.getComponent()). Otherwise, use a 'Server script' node.


Best regards,
   Robert



--On Montag, Juni 18, 2012 17:40:17 +0530 Shivakumar Grande <shivakumar6g@?.com> wrote:

Hi

There is an example File ChooserDemo in QFS tool downloaded,My Scenario is
1.I clicked on the "ShowFileChooser" button
I had done above statement using the SUTScripts with the below line of
code rc.callProcedure("general.doClick",{"id":"buttonShow_FileChooser"})
For this created a procedure general -> doclick
2.Opened up a popup
3.I want to click on the cancel button

Option1: tried with the general ->doclick
rc.callProcedure("general.doClick",{"id":"buttonCancel"})

Option2:Tried with the popupmenu -> selectItem
rc.callProcedure("popupmenu.selectItem",{"item":"dialogOpen/dialogOpen.fi
leChooser/buttonCancel"})

4.I want to click on the oK button

*My question is how to click on the pop up buttons, for step 3 and step
4.* Please guide me its urgent



--
Thanks &Regards
Shivakumar.G