Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Passing arguments to AutoGUI runtime
Passing arguments to AutoGUI runtime [message #83293] Tue, 12 September 2006 20:52 Go to next message
Eclipse UserFriend
Originally posted by: stephanl.us.ibm.com

Greetings,
I need AutoGUI scripts to enter values that are known only at invocation
time, i.e. in one execution I need a textfield populated with the value
'foo', in another with the value 'bar'. Can't use a datapool since -
although the number of possible values is finite - I need only one value
entered for a given execution of a script. The particular value, however,
is not known until invocation time. Akin to passing arguments to an ant
script from the command line. Now, in the doc I see there is the notion
of using variables in a macro:
%VARIABLE_NAME%
Where are the values for variables referenced in the macro defined? Can
they be passed when invoking TPTP to execute a AutoGUI script?

If no, is there a preferred mechanism to pass variables used by the
runtime? FWIW, I am invoking a given test suite through ant from the
command line using the following task:

<tptp:test
workspace="${scs.root.dir}\dev-ws"
project="com.webify.wsf.studio.test"
suite="test-suites/${scs.test.suite}"
synchronicity="synchronous"
vmargs="-Dagr.exe.ws=${scs.root.dir}\exe-ws"
/>

and ideally would like to pass any arguments to the script through this
task.

Any insight would be greatly appreciated.

Thanks!

- Stephan
Re: Passing arguments to AutoGUI runtime [message #83346 is a reply to message #83293] Tue, 12 September 2006 21:45 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Currently there is no mechanism for the user to link user input with a
variable that is set during runtime. I have opened the following defect to
see if I can provide this functionality in the 4.3-time frame, which ends by
next week:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=157109

Thanks,
Ali Mehregani

"Stephan Lips" <stephanl@us.ibm.com> wrote in message
news:c3e08fbd2a1caf3601e02159ceeb122e$1@www.eclipse.org...
> Greetings,
> I need AutoGUI scripts to enter values that are known only at invocation
> time, i.e. in one execution I need a textfield populated with the value
> 'foo', in another with the value 'bar'. Can't use a datapool since -
> although the number of possible values is finite - I need only one value
> entered for a given execution of a script. The particular value, however,
> is not known until invocation time. Akin to passing arguments to an ant
> script from the command line. Now, in the doc I see there is the notion
> of using variables in a macro:
> %VARIABLE_NAME%
> Where are the values for variables referenced in the macro defined? Can
> they be passed when invoking TPTP to execute a AutoGUI script?
>
> If no, is there a preferred mechanism to pass variables used by the
> runtime? FWIW, I am invoking a given test suite through ant from the
> command line using the following task:
>
> <tptp:test
> workspace="${scs.root.dir}\dev-ws"
> project="com.webify.wsf.studio.test"
> suite="test-suites/${scs.test.suite}"
> synchronicity="synchronous"
> vmargs="-Dagr.exe.ws=${scs.root.dir}\exe-ws"
> />
>
> and ideally would like to pass any arguments to the script through this
> task.
>
> Any insight would be greatly appreciated.
>
> Thanks!
>
> - Stephan
>
>
>
Re: Passing arguments to AutoGUI runtime [message #83406 is a reply to message #83346] Tue, 12 September 2006 22:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stephanl.us.ibm.com

Thanks for the reply. What I am wondering, though, is where are variables
such as %testsuiteProjectLocation% (as referenced in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html#2.2.5)
defined. Are they from a (currently hard-coded) pool of variables, if so
can I extend said pool?

Thanks again!

- Stephan
Re: Passing arguments to AutoGUI runtime [message #83654 is a reply to message #83406] Fri, 15 September 2006 20:56 Go to previous message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
There are only two variables defined and their values are:

%testsuiteProjectLocation% = The location of the project containing the test
suite
%workspaceLocation% = The location of the workspace being used to launch the
test suite in

The value of the variables are initialized here:
AutoGUIRunner.initializeVariable(...)

and variables are linked to their value here:
AutoGUIRunner.linkUserInput(...)

There are no extension points available to extend the variable pool.
Thanks.

"Stephan Lips" <stephanl@us.ibm.com> wrote in message
news:00e4876e0b261a55a72cd091ed8c2485$1@www.eclipse.org...
> Thanks for the reply. What I am wondering, though, is where are variables
> such as %testsuiteProjectLocation% (as referenced in
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html#2.2.5)
> defined. Are they from a (currently hard-coded) pool of variables, if so
> can I extend said pool?
>
> Thanks again!
>
> - Stephan
>
Previous Topic:TPTP on Linux x86_64/AMD64
Next Topic:jvmti agent
Goto Forum:
  


Current Time: Fri Apr 19 21:50:44 GMT 2024

Powered by FUDForum. Page generated in 0.03535 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top