List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog


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

Re: [QF-Test] The target component X could not be determined. - web test


  • Subject: Re: [QF-Test] The target component X could not be determined. - web test
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 22 Sep 2016 18:10:36 +0200

Hello Thomas,

frankly, you cannot expect list members to debug your
ComponentNotFoundExceptions for you, especially not without a run-log.
The steps you included that lead to the exception bear no relevance
here, what is required is in-depth knowledge of your SUT. Besides, we
already explained to you that your web-application is almost
untestable without at least some basic custom resolver.

Still, let me answer part of your questions: Of course there is a
manual _chapter_ 5:

https://archive.qfs.de/qftest/manual/en/user_components.html#usec_components

(You were referring to _part_ IV)

Please also take a look at the videos about component recognition
problems:

https://www.youtube.com/watch?v=HcQvIZaJ7eU&index=9&list=PLsQ3ggMe67qgEd4HTruyIgzvdq0RYOzBXhttps://www.youtube.com/watch?v=4mqAysDkDgk&index=10&list=PLsQ3ggMe67qgEd4HTruyIgzvdq0RYOzBX

German versions here:

https://www.youtube.com/watch?v=uRukAygXuuA&index=9&list=PLsQ3ggMe67qgu21MF1-FH4wjN3KK9Zpha&index=8https://www.youtube.com/watch?v=f5JZ-xzqltU&index=10&list=PLsQ3ggMe67qgu21MF1-FH4wjN3KK9Zpha&index=9

Best regards,
    Greg

Hofmann Thomas IE12 <Hofmann.Thomas@?.de> writes:

> 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="&#34;$(_separator)&#34; == &#34;%&#34;">
>
>         <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="&#34;$(testOK)&#34;">
>
>         <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

--
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