Test for success/failure of archiveLogFile() servermanager method

When you try to check a log programmatically using the servermanager archiveLogFile() is there a way to test the success / failure of the action. I tried

adminObj = createObject("component","cfide.adminapi.administrator").login("topsecret");
serverObj = createObject("component","cfide.adminapi._servermanager.servermanager");
result = serverObj.archiveLogFile("logfilename");
writeDump(result);

However, the result is undefined.

Thank you!

This function has a returntype Sub, that's why.

http://www.CFEXECUTE.com/Admin-API-documentation/ServerManager-CFC/#method_archiveLogFile

Instead, you need to read something like a directory to see if the file has been renamed.

Tags: ColdFusion

Similar Questions

  • Pause for success/failure captions

    Hi people,

    I find that the break with legends of success or failure is too long. I can control it and if so, how?

    Thank you

    Roger

    Select the legend of success or failure, go to the Properties tab and look in the accordion of Timing.  You can set the number of seconds that the legend display by changing the value one.

  • How to change the "Failed" result State after the test of "success."

    We do a picture of a LCD screen and watch if his work of all. Sometimes, the LCD is good work but the step failed. Where automatic LCD test fails show us the image of the camera to the user and it can decide if the LCD for success or failure. So when the user decides that the screen is good job we have to crush the status of the automatic test demonstrating lcd screen test passed in the report and the database. I tried with

    RunState.SequenceFile.Data.Seq ["Check_LCD_V3-0"]. Hand [' 154 Execute - all horizontal Segments on "]. Result.Status = "Passed",
    RunState.SequenceFile.Data.Seq ["Check_LCD_V3-0"]. Hand [' 154 Execute - all horizontal Segments on "]. Result.PassFail = "True",

    But in the basis of the status of this step is always 'impossible '.

    What I've done wrong?

    Thank you

    Alteschwed wrote:

    We do a picture of a LCD screen and watch if his work of all. Sometimes, the LCD is good work but the step failed. Where automatic LCD test fails show us the image of the camera to the user and it can decide if the LCD for success or failure. So when the user decides that the screen is good job we have to crush the status of the automatic test demonstrating lcd screen test passed in the report and the database. I tried with

    RunState.SequenceFile.Data.Seq ["Check_LCD_V3-0"]. Hand [' 154 Execute - all horizontal Segments on "]. Result.Status = "Passed",
    RunState.SequenceFile.Data.Seq ["Check_LCD_V3-0"]. Hand [' 154 Execute - all horizontal Segments on "]. Result.PassFail = "True",

    But in the basis of the status of this step is always 'impossible '.

    What I've done wrong?

    Thank you

    I recommend the following:

    (1) that the display automatically to test an Action step rather than a step for success/failure and set to square one local variable to see if the LCD self-test failed (for example Locals.AutomatedLCDFailed).

    (2) create a new test pass/fail (using the no adapter) that takes both the variable local and entry of the user account to determine it is the condition for success/failure (for example to set the data source of the step to an expression like:!) () Locals.AutomatedLCDTestFailed & Locals.UserLCDTestFailed)

    As an alternative to do 1) a step of the Action you can leave a step for success/failure and clear step on it to "step failure causes failure of sequence. You can then use the status of this step instead of Locals.AutomatedLCDTestFailed. The only difference is that the automated test will always be displayed as failed in your report, although the sequence can still be passed. It is somewhat a matter of preference.

    Hope this helps,

    -Doug

  • How to detect the State of a LabVIEW test success/failure

    Which variable TestStand should I read to determine the State of a test of TestStand set success/failure?

    I use the parallel model and LabVIEW can see index of my process with the variable "RunState.TestSockets.MyIndex", but now the LabVIEW needs to know if this process was successful or failed the entire test.

    Possible, recommended to capture those (so do not use the "built-in controls visible TS') is to capture the UIMsg_EndExecution (which is generaated automatically if the engine ends an execution).

    This message to user interface, you can access its data, one being the property of Execution.ResultStatus and execution.

    See using TS for the possible values of ResultStatus. This allows to control indicators on your UI.

    hope this helps,

    Norbert

  • Strange question in custom legends of success/failure

    Hello

    I have a strange problem in my custom legend of success/failure. If I use the of ' letter in my custom caption .bmp file, it is not correctly displayed in the captivate. Attached file is for your reference. I tried to convert text into an image in photoshop, it still shows the same thing. Any thoughts?

    congratsScreen.png

    Thanks in advance,

    -Ajay

    Ok.  That's what I thought.

    So what I think, happens here is due to how Captivate together text captions that can extend to any size, based on the component images.  I think that your corner image that contains text is stretched right at the place where the character of S is located at the end of congratulations.  Captivate realizes the resizable text caption by repeating the last few pixels of each background image.

    If you want to test my theory, just do your congratulations slightly shorter text (use a condensed font or make the font size smaller) and I think that your problem will disappear.

  • How can I inform the operator of the reason for the failure?

    I inherited several TestStand sequences with about 35-40 pass/fail and tests digital limits. The sequence is made to fail if a step fails.

    There seems to be several ways to warn the operator on the nature or the reason for the failure. Everything that happens now is that the Red 'sequence Failed' popup appears, and the operator gets to install UUT following. This example uses the template of "Sequential" standard.

    I am looking or the other

    1. change each affected step and change in 'Action', then adding a step later that displays a message if the stage previous "failed", then fail the sequence. Or perhaps a variant of that, to change the step so he can skip the next step if 'Pass', the next step was to pop the message and fail.

    2. having learned about the UI and then implementation. (Exaggerated this feeling but I'm open to suggestions.)

    Or y at - it another simpler way? I'd just like to bring up a text with suggested corrective action, just before the red notice "Test failed".

    Thank you.

    Take a look at the use of the callback SequenceFilePostStepFailure engine.

    There is an example found in \Examples\Callbacks\PostStepFailureCallback\FailureHandlerExample.seq

  • H8-1414: boot diagnostic hard drive test fail with "FAILURE ID: 90EF6C-00811-9XPK0K-60RC03.

    I ran diagnostic quick test for my hard drive boot and he responds with the message

    "FAILURE ID: 90EF6C-00811-9XPK0K-60RC03.

    Could someone tell me what the error id code?

    Thank you!

    Thanks to anyone who might help. I bought a new hard drive today and I'm about to install. Best wishes to all!

  • Notification for success messages plugin?

    Hello

    I just found the http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html Notification Plugin
    in the oracle plugin repository and I wonder if it is possible to use this plugin, not only in a dynamic action, but also for success messages?

    Thanks for the help in advance,
    Dirk

    Guys,

    I know this thread is a bit old, but here's a blog on how to Growl notifications in APEX for success and failure messages

    http://douggault.blogspot.com/2011/06/style-notification-messages-for-Apex.html

    Doug

  • Captivate 5: Insert success, failure, and hint of legends

    Hi all

    I tried searching this forum as well as the help of Captivate and have no growth with an answer to what I'm sure is a very simple problem. I'm creating a quiz in Captivate and accidentally deleted my success, failure and legends of suspicion on every slide in the question. Is there a way to get back them on these slides without having to recreate each slide of the question? (I noticed that if I add a new question, new success, failure and hint captions appear in the default style, I designated.) However, for existing slides, I was unable to make the captions I insert act as success, failure, or hint of legends; Similarly I can copy/paste them to a new question slide where they appeared automatically.) Can anyone help?


    Thank you!
    Karyn

    If you select each slide of the issue and for the Quiz properties panel, you can check the boxes to get the Correct back and suggest captions (incomplete).  But there is no option to return to the legend of the failure.  You must go to the failure of the levels take place and make sure that it is set at least one.  You will probably find that it is currently set to zero because you deleted the legend of failure and supposed to Captivate that means that you do not want failure as an option.

  • Tracking success/failure on LMS

    I'm trying to follow the success/failure of a Captivate project and I'm having difficulties with the LMS. It is followed as finished after just the first slide, before taking the quiz again. I have my settings of the quiz the report 'Quiz results only' option, Pass/Fail, report LMS as a percentage, Reporting level is 'Report Score', pass/fail options are set at 75%.

    NOTE: I welcomed the user 2 attempts to pass. Could this be what gives me?

    I had this with our change LMS (Sumtotal) Pass/Fail to complete/incomplete in reporting of quiz

    This fixed it for me.

  • I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    Well, if you need older versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php

    Best regards, G-Cloud.

  • Good unit test for HP Smart Printing

    When trying to print http://models2014.webs.upv.es/schedule.htm without smart printing, a single table shows, and all other pages are empty.

    Smart printing but also has problems with this page, not being able to print a part of the text below the second table.

    With some difficulty, you can select all the text, but it prints up on 'Session 9' and leaves two pages empty.

    While I recognize that this Web page is built quite strangely (absolute positioning of points throughout the page), I think it may be a good test for the team Smart Printing scenario.

    In case it's relevant: Smart Print v2.6, IE 11, W7x64.

    Kind regards

    Johan

    Hi Johan,.

    I understand that you have this page as a test case, and I appreciated that!  I wonder if you have tried to use Google Chrome HP Smart printing on this page?  Technically, HP Smart printing is compatible only with IE 9 and 10 and Google Chrome - chrome is the browser for the support in the future (at least this is what I've heard).  I was wondering if you get better results using Chrome.  Just a thought.

  • Tool of functional tests for MAC OS clients.

    Hello

    I'm looking for functional tests Open source for MAC (not iOS) tools,

    Any suggestions for tools that can perform automation of end-to-end.

    something like test for windows.

    Also apple script can perform checks/statements.

    Thanks in advance.

    Hello MacJioNewbie,

    I suggest you stay away from AppleScript. While it has some uses for developers, but it is primarily a tool for the end user.

    Looks like you wanted to Xcode UI Test. The first point of departure would be video Apple's WWDC: Tests of UI in Xcode - WWDC 2015 - videos - Apple Developer

    Xcode also includes a framework that is fairly easy to use unit tests. I confess that I have never tried the user interface test architecture.

  • What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions?

    What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions? (Temperature, humidity, etc.)

    Hi jojosalud,

    According to the specifications for the cRIO-9012, the MTBF is 330 481 hours at 25 ° C; Question of Bellcore level II.

    Kind regards

  • My laptop has been tested for Windows 8?

    You can always consider the upgrade of Windows 8 and are unsure if it has been tested for Windows 8 or if it will receive all the drivers Windows 8.

    This site of HP is expected to know what to expect during the upgrade to Windows 8.

    Click on more information to get the opportunity to enter your product number to see if it has been tested for Windows 8, and if she can get drivers Windows 8 or not.

    I hope this information is useful.

Maybe you are looking for

  • Turn off filtering by MAC address

    Hi, I recently got WIFI for my house. I want to use wifi on my ipod touch but even when I add and connect to my network with the password. I can't use wifi and applications that require a connection. Most people say that I have to turn off my MAC add

  • I have Windows Vista Home Premium and whenever I save it fails. & System Restore does not work.

    Backup fails whenever I try to do, and system and Restore is not responding or the other.

  • Svchost.exe is causing cpu at 100% of capacity

    My computer is very slow. I ran the antivirus software and malware, and it finds nothing. Finally, I found that the CPU is at 100% and it looks like several SCVHOST. EXE are running taking up all my CPU. How can I stop this and speed up my computer?

  • Mobile dots

    Since the upgrade to 14 items, mobile dots are almost impossible to see when trying to make a selection. Is there a way to improve their visibility?

  • U44M1 | 210

    I get an error message like this U44M1 | 210 what can I do?