How can I restore FileGlobals in a Client Sequence File that is reloaded?

Hi,
I'm using TS2.0.1f1 and dynamic client files (search "DynamicClientModel" to see an example) in order to load different test sequences depending on what product should be tested.
We do something like this,
newseq = IEngine.GetSequenceFile(...)
Execution.ClientFile = newseq
Do testing
IEngine.ReleaseSequenceFileEx(newseq)
Goto
The first time a client sequence file is loaded it will copy the default FileGlobals from RunState.ProcessModelClient.Data.FileGlobalDefaults (TS does this automatically).
The problem though is that after calling ReleaseSequenceFileEx() the actual sequence isn�t really disposed. Since when we later start over with another prod
uct that uses the same client sequence file the GetSequenceFile() call returns the same copy that was used before and doesn�t copy the FileGlobals from RunState.ProcessModelClient.Data.FileGlobalDefaults, there by the second time the same sequence file is used, the FileGlobals don�t have there default values.
So, to get back to the subject, how can I make sure that the second time around the FileGlobals have there default values?
(Keep in mind that all this is done within the same execution of the processmodel.)
I�ve included a short demonstration of this in the attached zip file.
Any help appreciated.
Cheers,
Hans
Attachments:
TestModelFileGlobals.zip ‏12 KB

Hi Scott,
Thanks for the answer, I had been thinking about option nr 1 in particular but that would require more changes than I'm prepared to do right now.
I tried option nr 2, but instead of adding that line to the client sequence file I made the copy operation in the process model like this.
Execution.ClientFile = Locals.ClientSeq
Locals.ClientFileGlobalsRef = Execution.GetFileGlobals(Locals.ClientSeq)
Locals.SerializedCopy = ""
[RunState.ProcessModelClient.Data.FileGlobalDefaults] PropertyObject.Serialize(Locals.SerializedCopy, "Test", 0)
[Locals.ClientFileGlobalsRef] PropertyObject.Unserialize(Locals.SerializedCopy, "Test", 0)
This seems to do the trick, although option nr 2 does seem a bit like doing things the way they weren't
supposed to be done.
Regarding option nr 1, are there any �Best Practice� documents, guides or examples on how one should best manage Engine and Execution lifetimes? Or to put it differently when to spawn new Executions and or Engines during the span of working with several units of the same product type and/or different product types?
Cheers,
Hans

Similar Messages

  • How can I remove a signature on a PDF file that I created using Preview on iMac computer??

    How can I remove a signature on a PDF file that I created using Preview on iMac computer??  I inadvertently hit the icon on the Preview tool bar with an xS and a line through it.  There is my signature in the middle of the PDF file I was editing.  How do I get rid of it?  Cannot select it.  Cannot find any tools that allow me to delete it.  The Preview documentation tells how to create and apply a signature, but not how to remove it.  I think when a signature is added the doucment becomes locked from any editing.

    Hey needadobehelp10,
    Using Adobe Acrobat/Reader, you can simply change your PDF view settings under "View > Page Display > Single Page View"
    Is this really you wish for?
    Please let me know.
    Regards,
    Anubha

  • How can I restore two folders in my address book that were accidently deleted?

    I attempted to delete a contact from my personal address book in Thunderbird. Some how two other groups (sub folders?) of addresses were listed below it and they disappeared too. How can I restore them. W7 system.

    abook.,mab is the personal address book... but don't be to sure your Norton product even backs up Thunderbird.... Microsoft promised their transfer wizard transferred your mail and it only does Microsoft Mail programs unless you edit it's advanced settings.

  • How can I restore you tube on my iPad 2 that I mistakenly deleted

    please I need someone to help tell me how I can restore you tube on my iPad 2 that my son mistakenly deleted.
    Secondly I have never been able to access the iTunes Store on my device. Perhaps if I can, I may have been able to restore the Yountube.
    Thanks

    YouTube is removed in IOS 6
    Use the iPhone version of YouTube or Jasmine
    http://itunes.apple.com/sg/app/youtube/id544007664?mt=8
    https://itunes.apple.com/sg/app/jasmine-youtube-client/id554937050?mt=8

  • How can i restore my iphone from a back up that is not listed on itunes

    I need to restore my iPhone from a backup that is not listed in the itunes backup section. I only did it at 6 pm yesterday. Is there a way to find this backup on my computer and return it to the itunes backup list?

    Normally backups are incremental, and you can only restore the latest. EXCEPT that a backup of an earlier version is archived, and the first backup of the new version is thus complete. You should be able to restore a 6.1.4 backup to iOS 7. Click the Restore Backup button. The dialog that comes up should have a dropdown where you can select a backup to restore. If the old one does not show up it cannot be restored.
    However, since you appear to have a Mac, if you use Time Machine you can restore an earlier backup over the current one from your Time Machine history.
    You can also back up to iCloud, even if you don't sync to it. See: http://support.apple.com/kb/HT5262
    One well hidden feature (for future use) is archiving backups. If you go to iTunes Preferences/Devices, right click on the current backup and choose "Archive". The next backup you make will be a competely new one, and the old one will be preserved and can be restored at any time.

  • How do you restore the system from a backup file that you created previously

    I have a notebook, Pavilion g6 - 1031TX running windows 7 64bit OS, and ran the backup utility a few weeks ago before running a full system recovery to attemp to fix an issue - this issue was fixed by warranty, and now I need to recover everything from the backup files, I have run the restore executable in the folder and it created another folder on my C: drive (System recovery files), how do I use this to restore the system to its previous state?

    Unfortunately, the backup utilty portion of Recovery is not optimal solution for restoring many files.Unless you know exactly where they go you are stuck. Most of the important stuff such as photos,music,etc will be in the 'Users' folder under your user name. You will have to manually move them to correct location.
    A better option in the future is Windows 7's backup app in Control Panel.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How can I edit separate layers in a psd file that was saved as only one layer?

    A designer provided me with a finished design and provided the psd, eps and ai files.  I'd like to make some minor changes in PS and would like to access individual layers - e.g. the text, background, etc.  When I open the psd file, however, it only has one layer.  how do I break out the original layers so that I can edit them?

    You can't. Once it's been flattened, you can't unflatten it. Talk to your designer: he/she will most likely have the unflattened version available.

  • How can I include multiple limits in the sequence file documentat​ion for custom step type?

    Hi,
    I have a custom Step Type that contains Measurements property under Results. Its type is Array of NI_LimitMeasurement.
    I would like to see the values in the sequence file documentation like NI_MultipleNumericLimitTest type.
    Is there any trick to do that?
    Thanks,
    Andras

    Hi Andras,
    I have made  a slight change to the sequencefile 'docgen_txt.seq'.
    In the Sequence 'Step Doc' is a section which handles MultipleNumericLimit step type. There is a precondition check on the step 'Add Multiple Numeric Limits' if the step is of type 'NI_MultipleNumericLimit'. As your step type is based on the MultipleNumeric Limit type, I have just removed this precondition and just relied on the existence of Parameters.Step.Result.Measurement. Equally you could add a new section in this sequence to handle your Custom Step Type which is only called when the precodition match your type name.
    Now when you run the DocGen tool it handles your custom step type.
    Find attached my modified sequencefile 'docgen_txt.seq'.
    Just copy the contents of '..\National Instruments\TestStand 3.5\Components\NI\Tools\DocGen' to the User folder. Then place the attached file in the User\Tools\DocGen overwritting the version that is in that folder.
    Then launch TestStand and try it out on your sequence file.
    If you are using the html version, then you will have to make the same change into Step Doc sequence of the docgen_html sequence file.
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 05-19-2007 05:28 PM
    Regards
    Ray Farmer
    Attachments:
    docgen_txt.seq ‏184 KB

  • How can I add the date to a PDF file that always displays today's date?

    I am trying to convert a word document into a PDF file. The word document has a field code for the date, but when I convert it to PDF format, the field code is not preserved.

    Convert using what?  Acrobat?  PDF Pack?  Microsoft Office?

  • HT4946 if my phone is disabled, how can I restore to get rid of a passcode

    If my phone is disabled, how can I restore to get rid of a passcode that was entered by mistake.

    Options for when an iOS device gets locked because of forgotten password:
    Restore (and reset password) on your device by connecting it to the last computer to which it was connected:
    iTunes: Backing up, updating, and restoring iOS software - http://support.apple.com/kb/HT1414
    If you cannot connect it to the computer to which the device was last connected you will have to use recovery mode to completely reset the device, losing all data:
    iOS: Unable to update or restore - http://support.apple.com/kb/HT1808 - recovery mode (e.g., cannot connect to computer last used to sync device, iTunes still asks for a password)

  • How can I delete a page in a pdf file I received?

    How can I delete a page in a pdf file that I received? I only have Adobe Reader X.

    Thanks very much for your help.  I’ll look into Acrobat.  Have a great week.
    Stephen E. Hincks, Sr.
    (cell) 301.346.6110

  • How can I restore to the Browser View of Book, several missing photo's?

    Ten photos are missing from the Browser View of the Book. The photos show up in the Photo View and are checked as being used. They also show up in the working screen view of the book. All other photos in the book show up. Why are the 10 missing? How can I restore just those photos and not all photos for that book? What difference would it make in sending that book to the printer?

    Ten photos are missing from the Browser View of the Book. The photos show up in the Photo View and are checked as being used. They also show up in the working screen view of the book.
    I'm not sure of your question
    Are you saying that when you view the thumbnails of the book at the top or the screen that some pages do not show the photos even though they are in the book below?
    If so that is a minor bug in iPhoto '09 - you can ignore it - it is just a display issue -- I forget exactly how but you can force a refresh of the book thumbnails - maybe double clicking on the book page - or maybe on the thumbnail
    But in any case your book is fine (you should preview it before sending - http://support.apple.com/kb/HT1040 )
    LN

  • How can i restore my iphone which was erased by iCloud?? I got my phone back but it wont work when i connect to iTunes.

    How can i restore my iphone which was erased by iCloud?? I got my phone back but it wont work when i connect to iTunes.

    The following assumes you've been backing up to icloud all along.
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.
    Let us know if this method does not work.

  • How can I restore my Macbook Air?

    Hi! I forot the ID that I purchased for Mac OX. How can I restore my Macbook Air?

    iForgot iCloud Password
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

Maybe you are looking for