Forum Discussion

Techtravel's avatar
Techtravel
Occasional Contributor
14 years ago

Sharing test scripts issues

I am having issues sharing test scripts across projects. So far I have tried simply coping the .sbv files into a new project and running it. They always seem to fail and I would like to know if there are other files I need to copy along with it or if there is a proper way to export/import the test scripts into another project to have then function properly once placed into a new project.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    To share scripts between projects, you don't have to copy the files over.  What I do is, if there is script code or keyword tests that I would like to generalize for use in any project, I store it in a completely separate folder.  I then use Add | Existing Item to add the item to whatever project I'm working on.



    As for why your scripts are failing, are there consistent error messages you're getting?  It could be that the scripts are expecting certain things like Project Variables, NameMapping references, TestedApps, CheckPoints, etc., that were in the project where the script was created but are not in the new project.  This is something that is just a matter of diligence and documentation that, if you're going to use script X, you need to make sure the project has objects A, B, C present and configured a certain way.
  • solution



    Store need script on some text files, f.e. file.svb



    Then when it needed - just upload all string from file.svb in variable and then use code (in vbs)



    Execute(file_svb)



    Your code from file.svb start execute