Testing Siebel Business Applications > Keywords Reference > Keywords Description >

CompareValue


You use the CompareValue keyword to compare a variable value with the expected value. The expected value can be a variable or value.

Signature

The CompareValue keyword supports the following signature:

CompareValue(@Variable|Operator|value (or) @Variable)

Operator can be one of the following characters or values: = (equalsl), > (greater than), < (less than), <= (less than or equal to), >= (greater than or equal to), contains, startswith, endswith.

Desktop Examples

The following table describes how to use the CompareValue keyword to compare a variable value with the expected value for desktop applications.

Target Object
Inputs
Closing Action
Comments

 

@var1|>=|3.56

 

Verifies a variable value by comparing it with the expected value 3.56.

 

@Var1|=|@Var2

 

Verifies a variable value by comparing it with the expected value.

 

@Var|startswith|nc

 

Verifies a variable value by comparing it with the expected value that starts with nc.

 

@Var|endswith|nc

 

Verifies a variable value by comparing it with the expected value that ends with nc.

 

@Var|=|{[123]}

 

Verifies a variable value by comparing it with the expected value.

 

@Var|=|"text123;

 

"Verifies a variable value by comparing it with the expected value text123.

Mobile Examples

The following table describes how to use the CompareValue keyword to compare a variable value with the expected value for mobile applications (on mobile devices).

Target Object
Inputs
Closing Action
Comments

 

@var1|>=|3.56

 

Verifies a variable value by comparing it with the expected value 3.56.

 

@Var1|=|@Var2

 

Verifies a variable value by comparing it with the expected value.

 

@Var|startswith|nc

 

Verifies a variable value by comparing it with the expected value that starts with nc.

 

@Var|endswith|nc

 

Verify a variable value by comparing it with the expected value that ends with nc.

 

@Var|=|{[123]}

 

Verifies a variable value by comparing it with the expected value.

 

@Var|=|"text123;

 

"Verifies a variable value by comparing it with the expected value text123.

Testing Siebel Business Applications Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.