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] border-color webaplication


  • Subject: Re: [QF-Test] border-color webaplication
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 06 Aug 2015 11:54:02 +0200

Hi Alex,

looks like you can try something along the following Jython SUT script
example:

node = rc.getComponent("QF-Test ID of INPUT mailCountryField")
div = node.getParent().getParent()
hasError = div.getAttribute("class").find("has-error") >= 0
rc.check(hasError, "<expected value True|False>", "Check has-error css class")

Best regards,
    Greg

"Straub, Alexander" <a.straub@?.de> writes:

> Hallo,
>
> i have an problem with check the color of „border-color“ on Webaplication.
>
> For the check is used fort he check: qfs.web.checks.style.checkStyleAttribute. The checkt faild.
>
> I looked in the CSS-File and found the borderstyle. In the next step was the check with the
> developer of the browser and look in witch paar it used.
>
> In the class „has-error“ stand the „border-color“
>
> This ist the HTML code with i wount to check:
>
> <div ng-class="{'form-group': true, 'has-error': showValidation &amp;&amp;
> registrationForm.mailCountryField.$invalid}" class="form-group has-error">
>
> <label for="mailCountryField" class="col-sm-2 control-label ng-binding">Land&nbsp;<span class=
> "text-danger">*</span></label>
>
>                 <div class="col-sm-10">
>
> <input type="text" class="form-control ng-pristine ng-invalid ng-invalid-required" id=
> "mailCountryField" name="mailCountryField" placeholder="Land" ng-model=
> "registration.mailAddress.country" required="">
>
> <span class="text-danger ng-binding" ng-show="showValidation &amp;&amp;
> registrationForm.mailCountryField.$invalid">Bitte geben Sie ein Land ein.</span>
>
> </div>
>
> </div>
>
> I check check the input field and around code, but I became be all “undefined”.
>
> What my mistake?
>
> Thanks for help.
>
> Best regards
> Alexander Straub
>
> _______________________________________________
> 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