HomeOATS

Steps to create your first script in OpenScript – OATS

Steps to create your first script in OpenScript – OATS
Like Tweet Pin it Share Share Email

Now that you understood what is openscript? and its capabilities around automation testing, lets dive in to actual process of creating automation scripts.

In this article you will learn simple steps to get started with your first script in OFT – OATS ( Oracle Application Testing Suite ) using its OpenScript IDE.

Once you know to create a script using OpenScript, you can start looking at recording script for getting started with functional automation testing.

  1. Launch OpenScript IDE clicking on the OpenScript icon.
  2. Once the IDE is open, click on File Menu > New option or click on New_Icon_ToolBar icon in the tool bar.
  3. You will be presented with a “New Project” Window.
  4. In the above window, you can choose to create a script for Functional Testing / Load Testing, to the context of the current article, you need to chose any from the List of Functional Testing types of project.
    OATS_New_Project_Screen
  5. Select web for an example and click Next
  6. You will now be presented with “New Web Functional Test Script” window to provide the location, where you want to store the script.
  7. For now expand My Repositories and select “Default” repository.
    New_Web_Functional_Test_Script_Window
  8. Give a sample script name as “HelloWorld” and click “Finish” button.
  9. Once the work bench ready with the script creation, click on java code view and give following statement in the run method.
    info("Hello World! This is my First Program ");

    Code_View

  10. Now you are ready to execute the script, click on play back (Play_Icon) button to execute the script.

On completion of script execution, you can see the results in results view OpenScript IDE and is as follows:

Results_View

Comments (2)

  • Hello Srinivas,

    Thanks so much for the tutorials it really helps me.
    I have a doubt about how to save the Order or approval value that is generated in a txt box in Oracle Forms.
    I just want to save this Order value to use it in the next steps.

    Thanks for your time
    Elizabeth Quinones

    Reply

Leave a Reply

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