Skip to main content



      Home
Home » Archived » Jubula » Input text from external file(How to use "ub_app_inputText" to input text from a text document)
Input text from external file [message #1066400] Tue, 02 July 2013 08:51 Go to next message
Eclipse UserFriend
Hi,
under test I want to create a new file and then use "ub_app_inputText" to input text into the new file from a text document.

The text document can change so I need ANT to download the text document before every test run.

What is the preferred way to do this in Jubula?

Regards,
Asgeir
Re: Input text from external file [message #1066565 is a reply to message #1066400] Wed, 03 July 2013 04:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

is there any way you could get the text into an Excel sheet? There is support for older versions of Excel to be used as data for a test. Otherwise, I'm sure there must be a way of doing it, but I'm not sure how. If no one else here has any ideas, you could try the developer list. They might be able to point you to the correct place to adapt Jubula / a way of achieving this with the current implementation.

HTH,
Alex
Re: Input text from external file [message #1066593 is a reply to message #1066565] Wed, 03 July 2013 06:59 Go to previous message
Eclipse UserFriend
Thanks for the answer Smile
But I have now found a way to do it I use environment variables in the tests.

So to answer my own question: Razz
I run the tests with a script like this (bash):
rm file.txt
wget http://www.eclipse.org/file.txt
export TEST_UDV_FILE=$(cat "file.txt")
ant test


in the test I use "ub_app_inputText" with this:
${FILE} 

in the VARIABLE field.

The problem now is that I actual want to do it all (setting the environment variables) within the ANT-script.

[Updated on: Wed, 03 July 2013 07:07] by Moderator

Previous Topic:AUT persist in memory after testsuite ?
Next Topic:Transfer object mappings
Goto Forum:
  


Current Time: Thu Jul 10 02:20:53 EDT 2025

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

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

Back to the top