Variable set during step fails
Hello!
Is it possible to set a variable (or two) in one step, if the step fails?
I looked at this thread: http://forums.ni.com/t5/NI-TestStand/Set-a-variable-in-a-post-expression/td-p/1186981 .
that is quite similar to what I'm trying to do.
I don't want to create a new step to achieve this. I know that I can't use the term Post to check if the step failed, because the condition Expression is evaluated after the phrase Post. The solution to the thread linked above has been to use the Condition Expression custom instead of the Expression Post, and I have the following to work:
(Step.Result.Status == 'Pass')? (Locals.Passed = False): (Locals.Passed = True)
But the problem I have here is that I want to write in a string and a variable number (error error code and text) instead of a Boolean value (Locals.Passed). How can I write about something else than a Boolean? Is this possible? Or do I have to create a new stage for each test step?
It does not work:
(Step.Result.Status == 'Pass')? (Locals.Error = 'No error'): (Locals.Error = 'Error')
Kind regards
Sindre
Hello
I have created an example of movie file that uses SequenceFilePostStepFailure to set local variables with an error message and the code depends on which steps failed.
I've also included the steps to set the (currently skipped) Step.Result.Error because I think it's a nice alternative.
Kind regards
Tags: NI Software
Similar Questions
-
Replace step Fail State causes the sequence fail LW/CVI custom Code generator
Hello
I have a Code CVI generator as part of the Toolbox ATML importer. OR kindly gave me an example of how to change the Type of step as part of the custom Code Generator DLL and that works very well.
However, if I try to change the step Fail value causes the sequence fail to VTRUE it seems do not set the value when the sequence is examined on a test bench.
The code I use is:
TS_StepChangeStepType (stepHandle, & errorInfo, typeDefinition);
-where typeDefinition can be modified to change the type of step, it works and I can change the type of step if necessary.
TS_StepSetStepFailCausesSequenceFail (stepHandle, & errorInfo, VTRUE);
-who does not, the box is always set to VFALSE.
Is there something that I am missing?
Thank you very much
Steve
Steve-
You must use the PropertyObject step to change the failure step Option. There should be a line of code the generator of custom Code that calls:
Get the step as a PropertyObject in case it is necessary to change the properties of the General step
tsErrChk (TS_StepAsPropertyObject (stepHandle, & errorInfo & stepObject));The stepObject is what you need to pass to the TS_StepSetStepFailCausesSequenceFail function as follows:
Set the Option of failure of step-by-step
tsErrChk (TS_StepSetStepFailCausesSequenceFail (stepObject & errorInfo, VTRUE));
Please let us know if this happens to you to correct results.
-Jeff
-
I created a procedure running during the mapping fails but I am facing this error
ODI-1226: Error_log_procedure step fails after 1 attempt.
ODI-1232: the execution of the procedure error_log_procedure failed.
ODI-1246: the logical schema has not been defined for error_log_procedure.
at oracle.odi.runtime.agent.execution.AbstractSessionTask.getCollectDwgConnectConnection(AbstractSessionTask.java:754)
at oracle.odi.runtime.agent.execution.AbstractSessionTask.getCollectDwgConnectConnection(AbstractSessionTask.java:730)
at oracle.odi.runtime.agent.execution.SessionTask.getExecutor(SessionTask.java:239)
at oracle.odi.runtime.agent.execution.SessionTask.processTask(SessionTask.java:152)
at oracle.odi.runtime.agent.execution.SessionTask.doExecuteTask(SessionTask.java:111)
at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:864)
to oracle.odi.runtime.agent.execution.SessionExecutor$ SerialTrain.runTasks (SessionExecutor.java:2024)
at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:562)
to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:718)
to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:611)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)
at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 1400 (StartSessRequestProcessor.java:74)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:702)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:108)
to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:471)
at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)
at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Navigate to the ODI object with the name error_log_procedure , which I assume is an ODI procedure. On the target tab (and if this source) make sure that you have specified a logical schema in the appropriate drop-down box
-
How to pause execution in a sequence file if a step fails
Hello
How teststand may suspend performance if any step fails in the movie file. I used parameters of breakpoint with RunState.Step.Result.Status is 'Impossible', but this breakpoint is not worked... Is there a way to do this?
Thanks in advance.
Concerning
Ran
Add a SequenceFilePostStepFailure and put a statement in there with RunState.Execution.Break ().
-
Step failed in New Thread does not display in the report
Hello
I call a sequence of sub in a 'new topic '. A step inside this sequence of subroutine fails.
The end result is the Test failed because it is supposed to be, but the step failed does not show. (I show not only failed in the report).
Can it be fixed?
Thank you
Rafi
It is correct. If you look at the entry Point of the execution of the process template, you'll notice that once completed execution of the main sequence, the generation of reports and other things start.
If spawn you a sequence in the new thread from the main sequence, MainSequence could finish before the subsequence ends its execution and the results of the sous-suite propagate to MainSequence. So as Ray mentioned, you can force the MainSequence expect the subsequence full run using a queue time.
See attached screenshot and/or example:
-
How to set the step property when I create the movie file using labview
I have download a sample program which is a LabVIEW VI, which creates a new sequence file, add a Global file that is a container with two properties and adds a step that calls a module of LabVIEW code (with the new Global file as output from the code module) on the page of NOR.
Attachment has four screws:
CreateSequenceFile.vi
AddFileGlobal.vi
AddStep.vi
Module.VII modified AddStep.vi to set a step as the characters "hello" property in Step.Result.ReportText.
But it does not work. If anyone can know and fix, please download the revised AddStep.vi.
Thanks for the help.
Change the appearance the string to Result.ReportText.
Given that you found the step as an object of property you not need to specify a look up string like Step.Result.ReportText.
Thank you
-
I have a job with 20 steps. This error occurs for any stage of perticular. It produces randomally at any stage.
"The return value is unknown. The process exit code was 128. The step failed. »
This is not the right forum for SQL database issues.
Please repost your question in the MSDN SQL forum
http://social.msdn.Microsoft.com/forums/en-us/sqldatabaseengine/threadsSincerely,
Marilyn
-
CHKDSK Vista stops display during step 5
I have a Dell XPS 420. 3.0 ghz, 3 GB RAM PC. When you start an error-check disk (chkdsk), steps 1-4 will work perfectly, but I lose video during step 5. System continues to function, but I don't see what it does. After an hour of this. I force a shutdown down holding power button / stop. PC works fine otherwise. Help get the error to finish checking? Thank you.
If you turn the monitor off and then on again, which helps? Or if you unplug the cable from the monitor to the system and reconnect it, does make a difference? If you wait more than an hour (say, 4 or 5 hours, or let go from one day to the next), it ends up complete with a restart of Windows?
-
Package ODI status is success even if one step failed
Hello
I have a package with 10 steps and one of them called interface. When I run the package, Interfacestep failed with errors of constraint and he scored as red, but my package status is success. But I expect my package status as having failed if any of the step failed in the package.
does anyone have idea about it?
Thank you
Add the command OdiWaitForChildSession at the end of the flow and the Max Number of failed Sessions value value child 1. While it will fail and mark the package to red.
-
Hello...
In my main sequence there are a number of Pass / Fail steps, before it a statement indicating an operator to connect cables, etc.
What I want to do;
If after the execution of a step, the result is a failure, we would like the opportunity to test again, or, fail step and continue or interrupt the sequence (in case of operator forgetting to plug one USE properly etc.)
I'm a little out of my depth here in terms of how we could set this up in the "step > properties > Post Action" to give us these sort options, or if there is a different way / better make it quite.
TIA.
Jim.
Do not use the Action. There is a recall for this thing.
This example shows what you are looking for:
I would like to know if you have any questions on this subject.
Hope this helps,
-
SW trigger send 33120 IVI - C step fails
I use the driver FOR the HP33120 in send step TS 4.0 IVI - C SW trigger.
I set up the device without problem for burst trigger 2 software leaders and validate it. When I try to use the SW trigger send IVI - V step I get the error
Component works IVI control error: IVI SendSoftwareTrigger operation failed for logical name '33120A '.
Details: Source of relaxation is not software trigger. Attribute: HP33120A_ATTR_OUTPUT_ENABLED, Channel: channel 1 [IVI. Error Code: BFFA1001].Please let me know what I am doing wrong.
Thank you.
Elik
Steven,
This function was supposed to enable and disable the output signal of the 33120 with NEITHER IVI driver. I found a way to do it with the combination of TS IVI steps. I guess it's a bug with the IVI driver.
Thanks again. Case closed.
Elik
-
Change of variable schema during execution
Hello
Is it possible to change the schema of an ODI variable during execution (for example in an ODI procedure)?
Thanks in advance!
See you soon,.
H.What you call "the scheme of the ODI variable name" is the scheme used when refreshing, it, correct?
Thus, the logical schema will be set up during the creation of your variable.But you can choose another context to go to another physical schema.
There is no way to change the schema during execution, unless you can 'play' with the context.
Thank you
Fati -
Hello
I want to appear a message immediately box on any test failure. I thought I could use the reminder of the SequenceFilePostStepFailure model to achieve this, but when I change the reminder of process model to achieve this, I found that the recall code is executed only for the failures of step of the top level of the page sequence file.
My test code has sequence called before mutiple files to the granularity of the basic numerical limit test that range from success or failure, so I would like to run the callback SequenceFilePostStepFailure immediately at this level. I can accomplish this by adding a substitution of recall of SequenceFilePostStepFailure in the file of the sequence in question, but I prefer to use the implementation of reminder default template, so I can't find all the places where numerical limits tests are executed and cause the ASE of pass/fail.
I have attached a few sequences of the example I want to illustrate the problem.
Thanks for the help,
Daniel
My fault, I see now that the recall of model should I have changed is the ProcessModelPostStepFailure. Problem solved.
-
Variable setting wrong with dynamic action for the region of report
Hello
I can't setting a variable. Here are the details of connection:
Connection information:
TCARMY workspace
User Apex_dev
Password dev_apex
Application 88542
Page 11
If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.
The modal window should popup and run the sql at that time with the variable data and view the two columns. And if the user clicks on the second row, it would display the data in the row.
Thank youTim
TC-army wrote:
If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.
What has not been set up right, it's that the element of P11_NAICNUMD parameter was not specified in the source attribute of Page to go to the region, modal Discount. The current value in the browser page, therefore, was not defined in session state when the report has been updated by the dynamic action. When
-
I started this discussion in the general forum... my bad.
I'm trying to understand how the hands-off scripts Developer SQL SQL more.
I thought that the script SQL Plus commands supported in SQL Developer.
When I tried to call a SQL Plus command line session, I got:
Card of TNS:Protocol ora 12560 error
To add to the comments of Jeff...
1. use SHOW ALL in the worksheet before you run a new script to see the list of the emulated / SQL support * more SET options
2. to display a query in HTML format (but not quite as nice as the format of your script parts)...
(a) use reports view to create a user defined report script for your SELECT statement.
(b) reports of the browser tree, right-click on the script and select the HTML... context menu option.
Kind regards
Gary
SQL development team
Maybe you are looking for
-
When I right click on a page and select 'Copy' where the copy goes on my computer?
I'm just trying to copy the page but I don't know where he's going. I guess that's what the copy function?
-
Exec system displays an error popup
Hello community, in some cases, I need to stop, and then restart outlook. So if I have a batch file that I want to get rid of and all do LabVIEW. When I run the following excerpt I get a popup error complaining that the path is not valid. Which is tr
-
my whole screen and all printing is much larger now, how can I go back to the original size?
-
enabling kernel on core duo processor
When I bought my pc with a processor duo, both hearts were activated and working. Now for some reason any after I ran a hardware diagnostic test, she came back to say even though I have carrots of duo, that a single core is enabled. I tried Googling
-
Why my computer won't play any sort of media?
iTunes and Windows Media player do not work, nor does Youtube. My computer freezes just upward when I try to play videos on the internet, videos and music from my hard drive.