Scriptless Web Test Case Writer

You are here:
< All Topics
Overview:

A test case is a set of conditions used to verify whether an application or one of its modules is functioning correctly. Multiple test cases can be written within a single module, and they are executed in alphabetical order based on their names.

Actions

These are the actions we use to write our test cases. Below are the definitions of each action, along with examples of when they would be used.

 

1. Wait for:
  • This action is for Android, iOS, and Web.
  • This action will pause the test case for a specified amount of time (in seconds) or until a certain condition is met before proceeding to the next step.

 

 

2. Tap on:
  • This action is for Android, iOS, and Web.
  • This action is used to click on an element. You can also specify the number of taps and the number of touches to perform.

 

3. Check:-
  • This action is for Android, iOS, and Web.
  • The Check action is used to define assertions. It can verify if a specified condition is true, and it can also check the value of any element.

 

 

4. Start If, Start Else, End If:-
  • This action is for Android, iOS, and Web.
  • This action functions like a conditional IF and ELSE statement in programming languages. It allows us to check if an element is visible before performing the ‘tap on’ action.

 

 

5. Scroll to:
  • This action is for Android, iOS, and Web.
  • This action is used to scroll the screen until the element is at the top of the screen.

 

 

6. Swipe:
  • This action is for Android, iOS, and Web.
  • This action is used to perform a directional swipe gesture. We can specify any of the four directions, and the swipe will occur in the middle of the screen. Additionally, we can define the container in which we want to perform the swipe.

 

 

7. Type In:
  • This action is for Android, iOS, and Web.
  • This action is used to enter text into text fields. The auto-hide keyboard feature can be set to true or false.

 

 

8. Variable:

 

TestGrid Scriptless Web Test Case Writer Dashboard 9

 

    • This action is for Android, iOS, and Web.
    • This Action is used to declare a variable. We can also specify its datatype (String, integer, or JSON)

9. Save to Variable:

 

TestGrid Scriptless Web Test Case Writer Dashboard 10

 

    • This action is for Android, iOS, and Web.
    • This action is used to assign value to the already-declared variable.

 

10. Repeat If,  End Repeat:

 

TestGrid Scriptless Web Test Case Writer Dashboard 11

 

 

    • This action is for Android, iOS, and Web.
    • This action performs a repetitive action based on the condition set by the user.

 

11. Comment:

 

TestGrid Scriptless Web Test Case Writer Dashboard 12

 

    • This action is for Android, iOS, and Web.
    • This action does not affect the test case running. Commenting is used as a way to make notes for the user.

 

 

12. Call Test Functions:

 

TestGrid Scriptless Web Test Case Writer Dashboard 13

 

    • This action is for Android, iOS, and Web.
    • This action is called a declared test function.

 

13. Call Network Assert:

 

TestGrid Scriptless Web Test Case Writer Dashboard 14

 

    • This action is for Android, iOS, and Web.
    • This action calls the network assert test case inside the UI test case.

 

14. Clear Network Log:

 

TestGrid Scriptless Web Test Case Writer Dashboard 15

 

    • This action is for Android, iOS, and Web.
    • This action ignores the network calls that were made before this step in the network assert test case.

 

 

15. Print Log:

 

TestGrid Scriptless Web Test Case Writer Dashboard 16

 

    • This action is for Android, iOS, and Web.
    • This action will print the parameter you give it in the detailed log (ie: Typing “Hello World” will print “Hello World” in the detailed logs)

 

 

16. Increase:

 

TestGrid Scriptless Web Test Case Writer Dashboard 17

 

    • This action is for Android, iOS, and Web.
    • This action increases the value of an integer variable.

 

17. Select:

 

 

    • This action is only for the Web.
    • This action is used to select text from a single-element or multiple-element list with text and index.

 

 

18. Switch to iFrame:

 

 

    • This action is only for the Web.
    • This action is used to switch to iFrame on the web by using frame ID and index.

 

 

19. Switch to the parent frame:

 

 

    • This action is only for the Web.
    • This action is used to switch to the parent iFrame on the web.

 

20. Switch to Default Content:

 

 

    • This action is only for the Web.
    • This action is used to switch to the default content on the web.

 

21. Switch to Tab:

 

 

    • This action is only for the Web.
    • This action is used to switch the tabs in the browser.

 

22. Open New Tab:

 

 

    • This action is only for the Web.
    • This action is used to open a new blank tab in the browser.

 

 

23. Right Click:

 

    • This action is only for the Web.
    • This action is used to perform a mouse right-click on the element.

 

24. Double Click:

 

    • This action is only for the Web.
    • This action is used to perform a mouse double-click on the element.

25. Click and Hold:

 

    • This action is only for the Web.
    • This action is used to perform a click-and-hold action on an element.

26. Type Encrypted:

 

    • This action is only for the Web.
    • This action is used to type text in the text fields in encrypted format. The auto-hide keyboard feature can be set to true or false.

 

 

27. Hover:

 

TestGrid Scriptless Web Test Case Writer Dashboard 18

 

    • This action is only for the Web.
    • This action is used to hover an element.

 

28. Write to CSV file:

 

TestGrid Scriptless Web Test Case Writer Dashboard 19

 

    • This action is only for the Web.
    • This action is used to write text in CSV. You can select an action, an element, or the text.

 

29. Declare:

 

TestGrid Scriptless Web Test Case Writer Dashboard 20

 

    • This action is for Android, iOS, and Web.
    • This action is used to declare elements while writing test cases.

 

30. Take a full screenshot:

 

 

    • This action is only for the Web.
    • This action allows you to take a full screenshot.

 

31. Press Key:

 

 

    • This action is only for the Web.
    • This action allows you to use the keyboard keys to press.

 

32. Test Function:
    • A test function is a set of commands that perform a specific action. You can create a test function for any repetitive actions.
    • Click on the “Add Test Function” button

 

 

 

 

    • If you have the same scenario in many test cases, then you can create one function for that and use it in every test case.
    • Add a Test Function Name and Description.
    • Add steps.
    • Click on the Save button.

 

33. Use Test Function In TestCase:
    • Open your test case.
    • Select the Call Test Function.
    • Now, you can see your test functions in the right field and select the function from the drop-down list.

 

 

 

Autosave

Autosave is a functionality designed to automatically save your test cases at regular intervals or specific events during the testing process. This ensures that all progress is preserved in real time, significantly reducing the risk of data loss due to unexpected disruptions, such as system crashes or power failures.

 

 

How Autosave Works

During the codeless generator session, you can modify your test case by adding steps. If you lose power or close the generator tab without saving, you can restart your test cases. When you reopen, you’ll see an “Autosave Test Cases” box with two alternatives:

A) Yes, Retrieve Saved:

If you accidentally close the tab or forget to save the test case for any reason, selecting “Yes, Retrieve Saved” will restore all the test steps you added in the scriptless generator.

B) No, Discard It:

If you choose not to retrieve the saved test case, select “No, Discard It.” This option will discard all the unsaved test steps, allowing you to start fresh.

By leveraging the Autosave feature, you can ensure that your work is always protected and easily recoverable, allowing for a smoother and more efficient testing process.

 

Happy Testing !!

Table of Contents