2018 up to now | 2017 | 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 2011

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

[QF-Test] Reading a variable field value from a SUT generated web page

  • Subject: [QF-Test] Reading a variable field value from a SUT generated web page
  • From: Cathie Williams <cathie.williams@?.com>
  • Date: Wed, 20 Apr 2011 12:57:10 +0000


I'm running a QFTEST script from within another Amadeus-built internal test tool which runs a whole 'regression pack' of other scripts.  The overall sequence of these scripts is:
  • Set up data ready for my QFTEST script to pick up, by sending in a series of entries into a host (mainframe) application and retrieving responses from that system, which help constitute the data to be passed to QFtest
  • Pass in the data via a Windows text (.txt) file, which I read from within a QFTEST server script and use to set up QFTEST global variables: These are  used to create data to run a web application
  • I then want to be able to read responses returned... and pass them back into the subsequent scripts run by the internal test tool.

Below is what I've found and tried so far.  While I have some Python knowledge and can program in assembler for the mainframe application, I'm not familiar with Java and have only rudimentary knowledge of how to deal with classes and objects.

For one example, I need to read the text from the seat number field below and put the seat number into a global variable, so I can pass it back to the internal test tool.

The component id appears to be "hk__2.td" from selecting the components in the tree (see section of window below)... and the method shown when I right click and Show the component's methods are attached:

In the above file, there appear to be 3 references for the text I'm looking to capture:

innerHTML "5A (window)"
innerText "5A (window)"
and further down
outerText "5A (window)"  

From sections 6, 38 and 39 of the manual it seems I need to use a resolver hook as I'm trying to get this information from a web page - and I'm guessing this needs to be addClassNameResolver?

I would then set up a ClassNameResolver method (I'm not quite sure how, but I guess I base it on (from section 39.1.10)

def getName(menuItem, name):
   if not name:
       return menuItem.getLabel()
resolvers.addNameResolver2("menuItems", getName)

I then need to read the component I'm after (from section 13.3.7),  I think by using

comp = rc.getComponent("hk__2.td", timeout=-1, hidden=False)

and hope then to be able to reference field

I've tried using various combinations of the above but haven't been able to get it to work.  Would you have any examples or other information to help me?

Best regards

Cathie Williams

Global Core E
T: +44 20 8990 0681


Amadeus logo

IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for the use of the addressee/s above.  It may contain information which is privileged, confidential or otherwise protected from disclosure under applicable laws.  If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, printing, distribution, copying, disclosure or the taking of any action in reliance on the contents of this information is strictly prohibited.  If you have received this transmission in error, please immediately notify us by reply e-mail or using the address below and delete the message and any attachments from your system.

Amadeus Services Ltd, World Business Centre 3, 1208 Newall Road, Hounslow, Middlesex, TW6 2TA, Registered number 4040059

abbr "" 
accessKey "" 
align "" 
all [object] 
aria-activedescendant "" 
aria-busy "" 
aria-checked "" 
aria-controls "" 
aria-describedby "" 
aria-disabled "" 
aria-expanded "" 
aria-flowto "" 
aria-haspopup "" 
aria-hidden "" 
aria-invalid "" 
aria-labelledby "" 
aria-level 0 
aria-live "" 
aria-multiselectable "" 
aria-owns "" 
aria-posinset 0 
aria-pressed "" 
aria-readonly "" 
aria-relevant "" 
aria-required "" 
aria-secret "" 
aria-selected "" 
aria-setsize 0 
aria-valuemax "" 
aria-valuemin "" 
aria-valuenow "" 
attributes [object] 
axis "" 
background "" 
behaviorUrns [object] 
bgColor "" 
borderColor "" 
borderColorDark "" 
borderColorLight "" 
canHaveChildren true 
canHaveHTML true 
cellIndex 1 
ch "" 
chOff "" 
childNodes [object] 
children [object] 
className "seatOverview" 
clientHeight 28 
clientLeft 0 
clientTop 0 
clientWidth 56 
colSpan 1 
contentEditable "inherit" 
currentStyle [object] 
dir "" 
disabled false 
document [object] 
filters [object] 
firstChild [object] 
headers "" 
height "" 
hideFocus false 
id "" 
innerHTML "5A (window)" 
innerText "5A (window)" 
isContentEditable false 
isDisabled false 
isMultiLine true 
isTextEdit false 
lang "" 
language "" 
lastChild [object] 
nextSibling null 
noWrap false 
nodeName "TD" 
nodeType 1 
nodeValue null 
offsetHeight 28 
offsetLeft 14 
offsetParent [object] 
offsetTop 0 
offsetWidth 56 
onactivate null 
onafterupdate null 
onbeforeactivate null 
onbeforecopy null 
onbeforecut null 
onbeforedeactivate null 
onbeforeeditfocus null 
onbeforepaste null 
onbeforeupdate null 
onblur null 
oncellchange null 
onclick null 
oncontextmenu null 
oncontrolselect null 
oncopy null 
oncut null 
ondataavailable null 
ondatasetchanged null 
ondatasetcomplete null 
ondblclick null 
ondeactivate null 
ondrag null 
ondragend null 
ondragenter null 
ondragleave null 
ondragover null 
ondragstart null 
ondrop null 
onerrorupdate null 
onfilterchange null 
onfocus null 
onfocusin null 
onfocusout null 
onhelp null 
onkeydown null 
onkeypress null 
onkeyup null 
onlayoutcomplete null 
onlosecapture null 
onmousedown null 
onmouseenter null 
onmouseleave null 
onmousemove null 
onmouseout null 
onmouseover null 
onmouseup null 
onmousewheel null 
onmove null 
onmoveend null 
onmovestart null 
onpage null 
onpaste null 
onpropertychange null 
onreadystatechange null 
onresize null 
onresizeend null 
onresizestart null 
onrowenter null 
onrowexit null 
onrowsdelete null 
onrowsinserted null 
onscroll null 
onselectstart null 
outerHTML " " 
outerText "5A (window)" 
ownerDocument [object] 
parentElement [object] 
parentNode [object] 
parentTextEdit [object] 
previousSibling [object] 
readyState "complete" 
recordNumber null 
role "" 
rowSpan 1 
runtimeStyle [object] 
scope "" 
scopeName "HTML" 
scrollHeight 28 
scrollLeft 0 
scrollTop 0 
scrollWidth 56 
sourceIndex 169 
style [object] 
tabIndex 0 
tagName "TD" 
tagUrn "" 
title "" 
vAlign "" 
width ""