HomeOATS

Export and Import Scripts – Openscript – Oracle Application testing suite

Like Tweet Pin it Share Share Email

Once you create the test automation scripts for a project, one of the important task would be to ship these test scripts to customers, so that they can execute them or ask their in-house team(s) to conduct dry runs to check if everything works fine to give a sign off.

You also might need to ship these test scripts, to attach them to any test management tool where executions could be scheduled based on need.

Oracle Application Testing Suite has a great way of dealing this, it uses its Openscript IDE and Manage Repositories concepts with Export and Import features for easy shipping of test automated scripts.

Lets see step by step instructions as how we can export and import scripts using Openscript IDE of Oracle Application Testing Sutie

Step by Step instructions to export an existing script.

  • Open any script having assets attached, these assets can be present any where in your machine.
  • Go to Menu “File” > “Export Script”

01_Openscript_Export_menu

  • Browse the location and give name of the zip file you want to have this script exported.

02_Openscript_Export_Parametes

  • Leave default settings and click “OK” button to export the script.
  • Zip file gets created in the provided location.

04_Openscript_Exported_File_Of_Script_Highlighted

Step by Step instructions to import an exported script.

  • Open Openscript IDE
  • Go to Menu “File” > “Import Script”

05_Openscript_Import_Script_Menu

  • In the Import Script Dialog Window, select the folder where you want to import the exported script.

06_Openscript_Import_Script_Dialog_Window

  • Click on browse button to browse and select the zip file ( i.e. the exported script ) for importing.

07_Openscript_Browse_Exported_ZipFile

  • Click “OK” button and wait for the script to get imported in to desired folder location.

08_Openscript_Select_Zip_File_To_Import

  • Once import process is complete, Openscript opens the imported script by default in the IDE.

09_Openscript_After_Import_Tree_View_Script

10_Openscript_After_Import_Script_Assets

  • Click on databank “Countries” and click on Add -> CSV File, we can see where exactly this databank file resides now.

11_Openscript_After_Import_Assets_DataBank_Part_Of_Package

  • It is part of the “.All” folder that gets created on import of the script, All the dependent  assets will now be present as part of this folder and you should be able to use it for executions without any issues.

12_Imported_Script_Folder_Structure_01

12_Imported_Script_Folder_Structure_02

All dependencies would be packaged together under “.All” folder, which helps to transfer it to any location and be able to execute on need.

In case of any queries, please do ask in comments section,  I would be more than happy to help.

Comments (12)

  • Awesome !! Thank you for sharing info.

    Reply
    • Author

      Thank you so much for your appreciations. Keep reading 🙂 you can always reach out to us for any issues or clarifications on Oracle Applications Testing Suite

      Reply
  • Hi,
    Very useful posts.Thanks for sharing.

    I am facing one issue while exporting the scripts.
    1] I created one repository [R] and created two scripts [S1 and S2 ] and one function library script [F] in that repository[R].
    2] That F is referenced by both the scripts S1 and S2. Now I need to export each scripts to the client. And I exported S1 and exported S2 successfully.
    3] But the issue I got reported by them is, they found two function libraries [F] with each scripts S1 and S2 respectively.This is because they imported as separate scripts since I exported separately.
    4] For them the issue is F is redundant script.And they want it only one.

    Is their any way so that I can export the whole repository which contains S1, S2 and F.

    Please help in this.Appreciate any help.
    Thank you.

    Reply
    • Author

      Hi Radhika,

      Thank you for reaching out to us on this query, it is quite possible for anyone. And yes, as you mentioned, if we export individual scripts, this is expected to happen.

      The alternative is, we need to create a folder in customer location, name it with same repository name which you have in your machine. Now copy all the scripts and libraries relative to that repository, and everything should work fine. This way we do not get multiple sets of libraries etc.. that is when we do using exporting single script.

      Hope this helps.

      Thank You,
      Regards,
      Srinivas P.

      Reply
  • Hi Srinivas,

    Thanks for this. And your idea of creating a folder in customer location actually worked !!.

    Having one more issue. Actually, there were some situations where the application hangs. At that point I want to refresh the web page. So is there any way in open scripting to refresh the web page.

    Reply
    • Author

      there may not be a direct way to do it but you can inject javascript and execute F5 key may be.. that might one of the ways or navigate to the same page if you have the url. there may be more other possibilities

      Reply
  • Hi Srinivas , I would like to get the directory of the current project . I have used all methods in java but it only returns the OpenScript installation folder not the directory of the project. what I really need is the resource.Location

    Reply
    • Author

      If you are still looking for a solution on this, and if you are saying that you want to get the location of the current openscript then i think there is an API given by OpenScript for sure. Please do let me know if you are still looking for a solution on this, we can collaborate

      Reply
  • Hey Srinivas,

    Is there any way that we can associate Openscript scripts to GITHUB just the way how we do with Eclipse IDE.

    Thanks in advance,
    Likitha.

    Reply
    • Author

      Hi Likitha,

      Unfortunately it cannot be done from eclipse but still you could use source tree kind of a software which helps to easily push / pull / merge to bitbucket repositories. This way you can easily manage your automation scripts code with a better code versioning tool. Hope it helps, please do share more queries or thoughts around this.

      Reply
  • Hi Srini,

    Can we use SVN for Openscript scripts ?

    Thank you,
    Sharad

    Reply
    • Author

      I think the code of your scripts can be saved in any code versioning tool to my knowledge. Only thing they dont have direct plugins to do it.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *