Pass parameters with Step-Post Actions-'C​all Sequence' option
I have a sub-sequence which accepts a single parameter.
Ideally I would like to call this sub-sequence from several Steps, using their Post Actions property , using a Custom Condition Expression and the On Condition False: Call Sequence option.
The Call Sequence option, when selected, offers a list of sub-sequences including the one which I wish to execute, if the conditions are correct, but I see no way of passing an argument to the sub-sequence's parameter.
Is there a simple way of passing the parameter ?
Is there a syntax I could apply to the sub-sequence selected string ?
From the TestStand Help:
Call sequence—TestStand calls a sequence before continuing to the next step. You can select any sequence in the sequence file. TestStand does not pass any arguments to the sequence. If the sequence has parameters, TestStand uses their default values.
So I don't think this particular method is going to work for you. However, there are lots of ways to do this, here are a few I can think of off the top of my head (I'm sure there are more, and possibly better ones):
1. Just insert a sequence call after every applicable step with an apropriate pre-condition. This is the easiest method, but kind of messy and requires repeating the call everywhere.
2. Change the parameter to a sequence file global... ylch, I hate globals... Terrible programming practice, but it's easy .
3. Override the SequenceFilePostStep Engine Callback and put a sequence call with an appropriate pre-condition in there. This keeps you from having to repeat the code, but it will check the condition after every step executes, not just the ones you are interested in, so you may need some additional conditions.
4. Define a custom step type for these steps and use a substep to call the sequence.
Hope that helps,
Ryan K.
Similar Messages
-
Call Paje jsp passing parameters with method post
How can I call a jsp page with outputlink, passing parameters with method post ?
Ex: I need that the word "?pNumMensagem=#{currentRow["NumMensagem"]}" not was exposed when a call P0077_2.jsp.
<h:outputLink binding="#{P0077.hyperlink1}" id="hyperlink1" target="t1" value = "#{facesContext.externalContext.requestContextPath}/faces/P0077_2.jsp?pNumMensagem=#{currentRow["NumMensagem"]}">
<h:outputText binding="#{P0077.outputText14}" id="outputText14" value="#{currentRow['NumMensagem']}"/>
</h:outputLink>
Thanks.
Heitor.Any body have an idea ?
-
Step post action works only in 'Test UUts' mode
Hi,
My main sequence file has a list of steps, all sequence type. I specify a post action on each one to jump to end if the seq fails and if a flag is set:
FileGlobals.StopOnFail == True && RunState.SequenceFailed == True
I found out that it only works if I run my test in 'Test UUTs' mode. If I select 'Run Selected tests using Single Pass', then, it igonre this.
Is this how it supposed to be?
How can i fix it?
Thanks
Rafi
TS4.1
Solved!
Go to Solution.Rafi2003 wrote:
[...]Why do you need a previous step?[...]
Rafi,
you are correct that you do not need a previous step; it is sufficient if the step itself fails and sets the RunState.SequenceFailed flag.
On my machine, this test also works as expected so i asume that either your step itself does not set the RunState.SequenceFailed flag or you have another issue in your Run Selected Steps using Single Pass execution....
Norbert
[EDIT] Added small example sequence
Message Edited by Norbert B on 05-13-2009 06:26 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Attachments:
PostAction.seq 5 KB -
Passing parameters with spaces to SCCM Run PowerShell Script task
I am working on an OS deployment task sequence in SCCM 2012 R2 with several Run PowerShell Script tasks. Most of them run fine, but I am having trouble with the one I need to pass parameters to.
The parameters I need to pass are:
-ComputerOU "ou=All Workstations,dc=contoso,dc=com" -GroupDN "cn=Group1,ou=All Groups,dc=contoso,dc=com"
I have that line (with actual DNs) entered in Parameters of the task.
But when the script runs on the target machine, the values of the parameters in the script are truncated at the spaces. $ComputerOU is set to "ou=All" and $GroupDN is set to "cn=Group1,ou=all"
What syntax should I be using the Parameters field of the Task in order to properly pass PowerShell parameter string values that include spaces?
Tim Curwick
MadWithPowerShell.comThank you, TC, but I am not calling the parameters from within PowerShell.
The parameters are in the settings of a task sequence task to be used by the task to launch a script. The syntax I am using would be correct for use within PowerShell or from a command line or batch script, but SCCM appears to be doing some parsing
before or while it is passing them to the script, possibly dropping the quotes which causes mishandling of the spaces in the string values.
Historically, it is always challenging to give one application parameters to pass to another application, and the required syntax can get quite tricky when the two application handle quotes or spaces differently, or when the parent application wants to parse
something intended to be passed on as is to the child application.
I'm sure someone has already figured out what the syntax needs to be for doing this with an SCCM 'Run PowerShell Script" task, it's just one of those issues that is hard to Google effectively.
Any other ideas?
Tim Curwick
MadWithPowerShell.com -
Can i pass parameters in calling an action through JS/VBS?
Hi all,
How can i pass arguments in calling an action through VBS?
I have to find any set of fonts & replace with any another set of fonts.
Im trying to do this in action.How can i pass paramaters?
myRiazi too want the same..
how to do that ?
thanks
subha -
Step post actions runtime modify?
Hello,
My SequenceCalls has Goto step -> cleanup in Post Actions as a default setting. Is it possible to modify this condition what TestStand does when Fail happens? I would like to have user decide at the beginning of the test what to do. Either keep current settings (On fail Goto CleanUp) or On Fail goto next step. It could be some kind of popup message or something like that. Or do I have to do completely new sequence for On Fail goto next step case?
BR,
JickI have attached one of the approach.
But here the default is go to next step instead of go to cleanup.
On failure and based on a user set variable it skips all further tests ( i.e. goes to cleanup) if opted for.
Hope this helps.
Attachments:
Execution conditional jump to cleanup or next step on fail.seq 51 KB -
Passing Parameters to ActionForward from Action
Hi,
Can anyone please describe me how to pass parameters from an Action to corresponding ActionForward.
Basically, I am having only the jsp name in forward in struts-config.xml. But, when action is processed, I want to send some parameters to the corresponding actionforward.
Can some be help me in explaining how it can be achieved.
Thanks,
SivaNo Parameters will be dynamic.
-
Hi,
I'm creating an action based on Scott Kelby's Poster Presentation example in his CS2 book. In this example Kely takes you through the steps of creating a poster with photo and text below with photographers name.
I seem to do fine adding canvas and text to a photo but run into trouble when adding the finishing touch of a 1 pixel box around it all. Kelby says to add a new layer, do a command select all and then go to the Edit Menu and select "Stroke" 1 pixel wide. I then deselect and change the opacity to 40% to make the "box" line more subtle. The problem is I can see no box around the end product, if I look at it on a white background. It's strange because I had this working in CS4.
Another issue ... my action seems to not be able to use "Save For Web and Devices". I see it recorded in my action but it will not execute. Any ideas?and select "Stroke" 1 pixel wide.
Is Stroke > Structure > Position set to Outside? -
Passing parameters with spaces in Oracle reports
I hav a system that passes a query string to a servlet and generates an Oracle Report. All of the varibles worked Ok as long as they don't have spaces in them. Whenever a parameter with spaces is encountered,it generates an error. i tried to enclose it in single or double quotes but it didn't work. I also tried to insert the Url Encode for spaces which is %20 but it also generated an error. pls help me on this one...
I suppose you're working with GET instead of POST. Try to use the POST method; this gives you the possibility to work with a URL without parameters behind the question mark. This might be the solution to your problem.
-
Can you pass parameters with sub queries
I have created a Custom folder within a Business Area using a sql query that has multi sub queries. I need to be able to pass date parameters at the top level and at each sub query levels. Is this possible, or how can it be done in Discoverer?
I have attached an example of the query below.
select T.title_type_code, T.title_number
from title_trans T
where T.title_type_code in ( 'A', 'AC', 'AN','AS','EL', 'ERL','SEL', 'MC', 'MCN', 'MCC', 'MCS', 'ML', 'MLN', 'MLC', 'MLS')
and T.trans_type_code = 'APPL'
and trunc(T.effective_date) between to_date('&start_date','DD/MM/YYYY') and to_date('&end_date','DD/MM/YYYY')
and exists
(select *
from title_land_status L
where T.title_type_code = L.title_type_code
and T.title_number = L.title_number
and L.trans_type_code in ('APPL', 'FLS', 'AVAR')
--FREEHOLD LAND
and L.land_status_id in ('15')
and L.date_completed = (select MAX(L.date_completed)
from title_land_status L
where T.title_type_code = L.title_type_code
and T.title_number = L.title_number
and trunc(L.date_completed) <= to_date('&end_date','DD/MM/YYYY')
and L.trans_type_code in ('APPL', 'FLS', 'AVAR')))
and not exists
(select *
from title_land_status L
where T.title_type_code = L.title_type_code
and T.title_number = L.title_number
and L.trans_type_code in ('APPL', 'FLS', 'AVAR')
--AB fREEHOLD LAND - NLC, CLC, TLC, ALC
and L.land_status_id in ('3', '4', '5', '6')
and L.date_completed = (select MAX(L.date_completed)
from title_land_status L
where T.title_type_code = L.title_type_code
and T.title_number = L.title_number
and trunc(L.date_completed) <= to_date('&end_date','DD/MM/YYYY')
and L.trans_type_code in ('APPL', 'FLS', 'AVAR')))
and not exists
(select * from title TIT
where T.title_type_code = TIT.title_type_code
and T.title_number = TIT.title_number
and TIT.purpose = 'EMPC')
order by T.title_type_code;Ok,
I just tried that and it still doesn't pass anything to the prompt.
I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
This is the URL maybe I messed something up...
https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
thanks -
Passing parameters with commas
I'm having a hard time passing a servlet init param that has commas in
it. I've tried using \, to no avail as well. Is there any way to do
it?
-rrc
Russell Castagnaro
Chief Mentor
SyncTank Solutions
http://www.synctank.com
Earth is the cradle of mankind; one does not remain in the cradle
forever
-Tsiolkovsky
Whats a servlet init param?
Is it the init method on the Servlet you are talking about?
or is it the Parameters from a HttpRequest ?
assuming its the latter,
for instance input from a multi-Select list box then you may have to
encode it & decode it on your own. try something like replace all commas
with some special character that would not appear on the data, or use a
special combination like ## etc.
Hope that helps.
Russell Castagnaro wrote:
> I'm having a hard time passing a servlet init param that has commas in
> it. I've tried using \, to no avail as well. Is there any way to do
> it?
> -rrc
>
> --
>
> Russell Castagnaro
> Chief Mentor
> SyncTank Solutions
> http://www.synctank.com
>
> Earth is the cradle of mankind; one does not remain in the cradle
> forever
> -Tsiolkovsky
-
Passing Parameters with a URL to an Oracle Report, on an Oracle Reports App. Server
I have built an Oracle report which resides on a Windows 4.0 / IIS application server with Oracle Reports installed.
(8i Database / 6i Developer 2000 suite). This works flawlessly when called from an Oracle Form.
My question is, how do I call the same report from portals and pass it the required parameters. Thanks!Hi,
You will have to encode your parameter value. The problem is because of the spaces in the value. Whenever there any special
characters in the value it should be encoded.
example
select '<area shape="rect" coords="335,66,528,83" href="http://townland:7778/pls/portal30/PORTAL30.RPT_SUMKWH.show_parms?meter='||
<portal_schema>.wwutl_htf.url_encode('PMS 11BBA01')||'">pams</a>' url
from meters
The above is just an example. Please change the names to suit your requirements.
Thanks,
Sharmila -
RWCLIENT issue when passing parameters with spaces
AS 10.2.0.2 on Sun Solaris 10. We have reports that are scheduled and sum of the parameters have spaces in the value. For example parm1=I am with spaces. We would then generate a command line that shows the parameter like rwclient.sh server=rep_serv report=report1 parm1=I am with spaces. This errors with numerous messages. I tried surrounding the value in single quotes like this rwclient.sh server=rep_serv report=report1 parm1='I am with spaces'. When running the quoted command the report server shows the parameter as parm1='I' am with spaces. We have the parameter page of the report as the first page which allows us to see what was actually used as parameters. Of course the data in the database has no value that matches with the single quotes so no data. I need to be able to pass a value with spaces and it actually show as a parameter with spaces. We do not have this issue when we can run with forms built-ins as you actually build a parameter list to pass. Thanks in advance.
Edited by: gdaustin1 on Jan 26, 2012 8:03 AMIt's a bit of both I guess. On a command line a space is used to separate switches and variables. Like this demo.bat:
@echo off
echo %1Results in:
C:\Temp>demo.bat Hello World
Hello
C:\Temp>demo.bat "Hello World"
"Hello World"If you want to remove the double quotes, you have to change your source code to:
@echo off
echo %~1Now you get:
C:\Temp>demo.bat "Hello World"
Hello World -
Using shell pass parameters with space to Java
Hi friends,
I have a shell script accepting parameters as below
#!/bin/sh
#test.sh
./setEnv.sh
java -classpath $CP com.rky.Main *$@*
CP=
If I run the script like this ./test.sh -annotation "This is a problem".
If shell pass the parameters to Java, the parameter "This is a problem" will recognized as 4 parameters by java. That's not what I want . I still need java use it as a whole parameter.
Do you have any easy ideas to resolve this problem out of my java code?
Thank you.yes, from the bash manpage:
@ Expands to the positional parameters, starting from one. When
the expansion occurs within double quotes, each parameter
expands to a separate word. That is, "$@" is equivalent to "$1"
"$2" ... If the double-quoted expansion occurs within a word,
the expansion of the first parameter is joined with the begin-
ning part of the original word, and the expansion of the last
parameter is joined with the last part of the original word.
When there are no positional parameters, "$@" and $@ expand to
nothing (i.e., they are removed).(your manpage could be a little different because of versions, and I got this from the manpage of bash on a mac. but the main things should apply) -
I am trying to change my country from South Afrika to UK. I went into change ID, chose UK flag, changed everything to the new address. Logged into Apple Store, then got a message to verify account. Tells me invalid post code. Will not take anything else except my SA postcode. Then Apple store reverts back to Soth Africa and not UK
You need to ask Apple for assistance with getting back into your old ID. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to resolve this issue through the Account Security team, fill out and submit this form.
(118441)
Maybe you are looking for
-
How do I combine two pdf documents into one using preview?
If I remember correctly I have done this in the past but now I can't remember how to do it. Message was edited by: admiral_koa i finally found some other questions like mine which got answered. So I'm closing this out.
-
PC Card to Express34 card adapter
Hello, I am using a PC Card to Express34 card adapter with my MBP 2.4 GHz Early 2008 Model with a Verizon wireless PC 5750 card. It works fine after a reboot but every time the computer goes to sleep it no longer is recognized. The slot works fine as
-
Where the programmatic views will be stored in Database.
Hi, All what will be the scope of the views which are created programmatically in database. will they store in any temporary tabels in the database, could anybody provide any Idea. Thanks in Advance. Renuka
-
Pdf for missing files ?????
ok , I'll have to rephrase my question. after transferring my music using i pod as a hard disk i am trying to put my files back on my i-pod sinching from i tunes.I got an error message for 100 files with which there was a problem. is there a way to p
-
The captcha image is missing when I try to register for "My Nokia". In the app it's just a blank space. On the website I see a broken image icon. This makes registering impossible. It's been like this for 3 days now - I can only assume nobody ever