Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » how to pass test or stored variables to an external script in Jubula
how to pass test or stored variables to an external script in Jubula [message #1700288] Wed, 01 July 2015 13:30 Go to next message
David Vlek is currently offline David VlekFriend
Messages: 20
Registered: September 2014
Junior Member
Hello Everyone,

Please how can i pass stored stored variable to an external command in Jubula

I have a batch script


@echo off

REM Verify Content from Database 
REM Jubula 

setlocal


@(
echo connect xxxx/xxxx@1.2.3.4:1224/XXXXX.HAHAHA.WEST
echo set head off
echo set echo off
echo whenever sqlerror exit 2;
echo select XXXX from CUST where XXXX = '%XXXX%'; 
 echo exit^;
) > verifycustomercreation.sql
:verify_sql_script
sqlplus -s /nolog @verifycustomercreation.sql > result
IF errorlevel 0 goto return_OK 
IF errorlevel 2 goto return_NOK
:return_OK
echo %errorlevel% 
goto end
:return_NOK
echo %errorlevel% 
goto end
:end
exit /b %errorlevel%


I would like to know how i can pass the value stored in Jubula to %XXXX% on the script. I noticed that by default it's not working. even though i have setlocal at the beginning of my script.

index.php/fa/22366/0/
index.php/fa/22367/0/


Thank you in advance for your response.


Kind regards,

Dave

[Updated on: Wed, 01 July 2015 13:32]

Report message to a moderator

Re: how to pass test or stored variables to an external script in Jubula [message #1700464 is a reply to message #1700288] Thu, 02 July 2015 17:59 Go to previous messageGo to next message
David Hickernell is currently offline David HickernellFriend
Messages: 85
Registered: October 2012
Member
Can't you just append a space followed by "$CUST_NAME" (without quotes) to the end of the COMMAND parameter?

[Updated on: Thu, 02 July 2015 18:00]

Report message to a moderator

Re: how to pass test or stored variables to an external script in Jubula [message #1700486 is a reply to message #1700464] Thu, 02 July 2015 21:37 Go to previous messageGo to next message
David Vlek is currently offline David VlekFriend
Messages: 20
Registered: September 2014
Junior Member
Thank you
Re: how to pass test or stored variables to an external script in Jubula [message #1700522 is a reply to message #1700486] Fri, 03 July 2015 08:39 Go to previous message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
Hi,

please Keep [1] and [2] in mind.
Regards
Oliver

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=470982
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=470983
Previous Topic:Check for difference between two values
Next Topic:Entering a component name in column New Name causes ecxeption
Goto Forum:
  


Current Time: Thu Feb 29 13:30:22 GMT 2024

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

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

Back to the top