Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2015


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

Re: [QF-Test] Simple If statement


  • Subject: Re: [QF-Test] Simple If statement
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 24 Aug 2015 18:15:40 +0200

Hello Arul,

exellent answer, thank you for replying to Daniel. This is exactly how
a check is intended to be used for a conditional statement.

For the record, however, I'd like to add that in the common case these
steps are not necessary. QF-Test automatically waits for the target
component to become enabled before it performs a mouse click. If the
target component remains disabled for the period specified in the
timeout options

https://www.qfs.de/qftest/manual/en/opt_play.html#sec_opt_autodelay

an exception is thrown.

But if you really have two alterntive paths for excution depending on
the enabled state of a component, this is just the way to go.

Best regards,
    Greg

arulraj.savariraj@?.com writes:

> Hello,
>
> If you are doing this in QF Test GUI , You can use the below option.
>
> 1. Set the variable in the field 'Variable for Result'. Let's say 'CompPresence'
> 2. When you run the script , the variable 'CompPresence' will be filled with the value 'true' if
> the button "Apply" is enabled.
> 3. You can use the If loop like "If '$(CompPresence)'=='true'"
>
> Thanks
> Arul S
>
>          [QF-Test] Simple If statement
>
>          (Internet)            To:    qftest-list
>          listfilter                                                            08/24/2015 05:41 PM
> [cid]
>
>          Sent by : qftest-list-bounces@?.de
>
> --------------------------------------------------------------------------------------------------
>
> I am learning QF-test and want to do a simple if statement. If I make a change on this one page it
> enabled an "Apply" button that I want to click if it becomes enabled.
>
> When I check if the button is enabled this is what appears
>
>     Check boolean: enabled (true) [buttonApply=>($client)]
>
> So I want to say something like
>
>     if 'buttonApply.enabled'=="true"
>     Mouse Click [buttonApply=>($client)]
>
> but that doesn't seem to work_______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> https://www.qfs.de/mailman/listinfo/qftest-list
>
> This message and any attachments (the "message") is
> intended solely for the intended addressees and is confidential.
> If you receive this message in error,or are not the intended recipient(s),
> please delete it and any copies from your systems and immediately notify
> the sender. Any unauthorized view, use that does not comply with its purpose,
> dissemination or disclosure, either whole or partial, is prohibited. Since the internet
> cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS
> (and its subsidiaries) shall not be liable for the message if modified, changed or falsified.
> Do not print this message unless it is necessary,consider the environment.
>
> ------------------------------------------------------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
> Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
> merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
> immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de
> ce message qui n'est pas conforme a sa destination, toute diffusion ou toute
> publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
> l'integrite de ce message electronique susceptible d'alteration, BNP Paribas
> (et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
> ou il aurait ete modifie, deforme ou falsifie.
> N'imprimez ce message que si necessaire, pensez a l'environnement.
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> https://www.qfs.de/mailman/listinfo/qftest-list

--
Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833



Videos Downloads Documentation Buy Free Trial