Hello everybody,
I try to set up a web test suite.
This is hanging early on a check text.
The error is:
de.qfs.apps.qftest.shared.exceptions.ComponentNotFoundException
Message:
The target component
'srvvib318:8180_TaskFormFillRequest_WAR_Scrapping_:theForm:generalInformationPartTypeOut_generisch'
could not be determined.
Can anybody imagine, what could be the reason or where to look first?
The further Stacktrace tells me:
“This can be caused by a number of quite
different reasons. Please see chapter 5
of the manual for background information
and how to proceed.”
On the qfs.de website I’ve found the Manual. But there is only a chapter 4:
IV Technical reference
Followed by A FAQ – Frequently Asked Questions.
Could it be, I’ve overseen something?
I wil try to describe the circumstances:
At first there is the HTML:
<span id="_TaskFormFillRequest_WAR_Scrapping_:theForm:generalInformationPartTypeOut">FP</span>
Then I set up a generic component:
<ComponentStep class="SELECT" classcount="1" classindex="0" height="-"
id="srvvib318:8180_ScrappingStartform_WAR_Scrapping_:theForm:inputPartType_input_generisch"
name="_ScrappingStartform_WAR_Scrapping_:theForm:inputPartType_input"
uid="_1oIB" width="-" x="-" y="-">
<extrafeature name="class" negate="false" regexp="false" state="0">ui-icon ui-icon-triangle-1-s ui-c</extrafeature>
<extrafeature name="qfs:class" negate="false" regexp="false"
state="0">SPAN</extrafeature>
<extrafeature name="qfs:systemclass" negate="false" regexp="false"
state="0">SPAN</extrafeature>
<comment>@generic</comment>
</ComponentStep>
Later I give the QF-Test ID to another variable:
<SetGlobalStep id="_1oJv" varname="idMaterialAusgabe">
<default>srvvib318:8180_TaskFormFillRequest_WAR_Scrapping_:theForm:generalInformationPartTypeOut_generisch</default>
</SetGlobalStep>
Then I do a ProcedureCall:
<ProcedureCall id="_1oJZ" procedure="check_text"
retvarname="setMaterialOK">
<variable name="_id">$(idMaterialAusgabe)</variable>
<variable name="_separator">$(idMaterialSeparator)</variable>
<variable name="_value">$(idMaterialValue)</variable>
</ProcedureCall>
The 2 other Variables are:
<SetGlobalStep id="_1oJ3" varname="idMaterialSeparator">
<default>@</default>
</SetGlobalStep>
<SetGlobalStep id="_1oJE" varname="idMaterialValue">
<default>FP</default>
</SetGlobalStep>
I do a ProcedureCall because I want to do some extra things which are not complete yet.
The Procedure does a Check Text:
<Procedure id="_1oJN" name="check_text">
<variable name="_id"/>
<variable name="_separator">@</variable>
<variable name="_value"/>
<SetGlobalStep id="_1oJS" local="true" varname="isOK">
<default>true</default>
</SetGlobalStep>
<IfSequence id="_1oJP" name="is_separator_regexp"
test=""$(_separator)" == "%"">
<CheckStringStep client="$(client)" component="$(_id)" id="_1oJO"
local="true" regexp="true" resvarname="testOK">
<text>(?i).*$(_value).*</text>
<comment>Achtung! Bei Text muß der gleiche regexp rein wie bei Prozedur set_select. Im Else Zweig normal ohne regexp, denn dann separator == '@'.</comment>
</CheckStringStep>
<ElseSequence id="_1oJQ" name="no_separator_regexp">
<CheckStringStep client="$(client)" component="$(_id)" id="_1oJR"
local="true" resvarname="testOK">
<text>$(_value)</text>
</CheckStringStep>
</ElseSequence>
</IfSequence>
<IfSequence id="_1oJT" name="check_text_ok" test=""$(testOK)"">
<SetGlobalStep id="_1oJU" local="true" varname="isOK">
<default>true</default>
</SetGlobalStep>
<ElseSequence id="_1oJV" name="check_text_not_ok">
<SetGlobalStep id="_1oJW" local="true" varname="isOK">
<default>false</default>
</SetGlobalStep>
</ElseSequence>
</IfSequence>
<ReturnStep id="_1oJX" retval="$(isOK)"/>
</Procedure>
There the error is emerging.
Would be great if someone has an idea or a hint.
Thanks in advance and regards
--
Mit freundlichen Grüßen
Best regards,
Thomas Hofmann
Build & Test Management VIB
DRÄXLMAIER Group
Lisa Dräxlmaier GmbH
Landshuter Straße 100
D-84137 Vilsbiburg
phone: +49 8741 471573
fax: +49 8741 471985
mailto:hofmann.thomas@?.de
<http://www.draexlmaier.com>
WE CREATE CHARACTER
Registergericht Landshut HRB 2038; Geschäftsführer: Franz Haslinger, Roland Polte, Barbara Bergmeier, Karl Wallner
Diese E-Mail und alle übermittelten Daten sind grundsätzlich vertraulich zu behandeln und einzig und allein für den beabsichtigten Adressaten bestimmt. Falls Sie diese E-Mail irrtümlich erhalten haben, bitten wir um Mitteilung und darum, sie vollständig von Ihrem Computer zu löschen. Vielen Dank für Ihre Bemühungen.
This email and any transmitted data are generally confidential and solely for the intended addressee determined. If you have received this email in error, please notify and delete completely from your computer. Thank you for your efforts.
You can make a difference: By not printing this e-mail, you save 250 milliliters of water, 5 grams of CO2, 15 grams of wood and 50 watt hours of energy. Your own personal contribution to saving our resources.