top of page
Search
Writer's pictureMinduli Wijayatunga

The Ins and Outs of Test Automation - Part III



Hi, I'm Minduli. I am a software engineer at Atalgo Computing. We are launching Flame, a new codeless test automation platform for mobile, web and API testing! During these exciting times, I'm here to tell you more about test automation and Flame through a series of posts just like this one. So, sit tight and enjoy the ride!


This week, we are going through the process of writing test scripts for Flame in more detail.

We will go through each component in a test script to understand what it is for, and what it

does.


Test Structure

The tests we conduct are defined as individual YAML files. YAML is a human-friendly data

format that makes it very easy to create, read and modify the tests in any text editor and with

minimal training.



Sample Test script with comments


Here we are writing a test script that will take us to youtube.com.

  • First, we give a human-readable description of the task to be conducted

description: Navigate to youtube 
  • Then we define the start of a new test actor section. Here ACTOR1 will be performing the task of going to the youtube homepage.

 - actor: ACTOR1 
  • Then we open the segments section, where all the tasks are conducted. The segments are executed sequentially, so segment: 1 would happen before segment 2.

    segments:
      - segment: 1
  • Now, we give a human-readable description of the test action in segment 1. This is optional.

 - description: Navigate to the landing page
  • Then we state the full name of the action (keyword) that we want to run.

action: org.flame.selenium.NavigateTo
  • Finally, we give the parameters for the args property, which is a list of arguments passed to the segment 1 test action.

 args:
              url: https://youtube.com 

The complete script is as follows.

description: Navigate to youtube
actors:
  - actor: ACTOR1
    segments:
      - segment: 1
        actions:
          - description: Navigate to the landing page
            action: org.flame.selenium.NavigateTo
            args:
              url: https://youtube.com

When this script is run, our actor opens youtube.com through Flame!





24 views0 comments

Comments


Post: Blog2_Post
bottom of page