GST Billing Software

What is Assert?

If an Assert command fails, the test execution will be aborted. So, when the Assertion fails, all the test steps after that line of code are skipped.

Following are the Assert Controls:

Sl. No.

Name

Description

1.

Assert Equal

Use this action for the Equal condition

2.

Assert is False

Use this action for the False condition

3.

Assert is True

Use this action for the True condition

4.

Assert OR

This action works like an OR command by creating a Group. Variables can be passed as an input to this command or directly value can be given as an input

5.

Assert AND

This action works like an AND command by creating a Group. Variables can be passed as an input to this command or directly value can be given as an input

6.

Assert Regex

Use this action to check a control with Regular expression

7.

Validate Attribute

Use this action to Validate Attribute

8.

Validate inner text

Use this action to Validate inner text in HTML document

9.

Validate style

Use this action to Validate style in HTML document

Common properties among all the Assert Controls:

Sl. No.

Name

Description

1.

Font style

Affects font style appearance in the code

2.

Enabled

If true, then this line of code will be executed, else, this line of code will not be executed,

3.

If Condition

If Condition can be used to perform some operations based on some conditions.

This property can be used with Variables control.

4.

Value

This property can be used to give input to the controls

5.

Description

Description can be used as comment

6.

XPath

The Xpath is used to locate a web element based on its XML path.

7.

Expected

Expected value is used to provide expected Value/Output

8.

Group Name

Group Name is used to execute Assert Conditions

When you double click on the controls in the configuration options, they are added to the TestMethod.


Assert Control

The Control properties can be set in the Properties Panel on the right side of the window as shown below.


Assert Control properties