Forum Discussion

serif's avatar
serif
New Contributor
12 years ago

Saving Stores items through script code

Hi Everyone



Is there anyway through code to save items within Stores (eg Files, Regions etc)



When we run our scripts, we use

Files ["Remove"] (....)

and

Files ["Add"] (....,....)

to update items in Stores > Files

This works really well for us

However, it leaves the overall 'Files' item unsaved

The subsequent save prompt confuses the testers running / closing the project  

Is there anyway through code to save an item within Stores

I've tried several things without success



Thanks

Pete

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Pete,



    How testers run the project?

    If they are using command line, then /SilentMode parameter should help.

    If they are running project interactively from the TC IDE, then automatic save of the Stores item is not possible (AFAIK).
  • serif's avatar
    serif
    New Contributor
    thanks Alexei, we run via the IDE.  It's no real problem but it would have been nice to leave a tidy project on completion.  I'll just add a note to our documentation so the guys running the tests know about the save prompt on project close

    thaks again

    Pete