Highlighted
Absent Member.. Absent Member..
Absent Member..
254 views

TruCient verify data equals

Jump to solution

Hello Gurus

First of all I am new to Vugen and it might be very simple what I am looking for, But I did not manage to get it work.

I have an intranet website where I query a database

As return I get for example
records return (100)

Now I want to verify that the number between brackets is not 0 (zero)

I tried the folllowing, but as I said, I did not manage to get it work:
* Evaluate javaScript
* Parameter

A step-by-step guide of a detail explanation is appreachated,

Thanks in advance.

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: TruCient verify data equals

Jump to solution

Hello,

Do you see the data in the application UI (in a wen page)?

If so, you should extract the data from the application using Get Property step and saving it in a variable. An example for that can be found in here

Then you can use Evalauate JavaScript step and inside it check if the does not equal to zero. 

if (someVar !== 0){

 // Some logic

}

else{

 // Other logic

}

Here is a reference for JavaScript comparison and logical operators

Good Luck

Shlomi

View solution in original post

2 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: TruCient verify data equals

Jump to solution

Hello,

Do you see the data in the application UI (in a wen page)?

If so, you should extract the data from the application using Get Property step and saving it in a variable. An example for that can be found in here

Then you can use Evalauate JavaScript step and inside it check if the does not equal to zero. 

if (someVar !== 0){

 // Some logic

}

else{

 // Other logic

}

Here is a reference for JavaScript comparison and logical operators

Good Luck

Shlomi

View solution in original post

Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: TruCient verify data equals

Jump to solution

Thank you for your reply. 

I'll take a look at it.

Best regards.

Rode

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.