Ask a Question

validate wValue against Project Variable in UltraGrid

SOLVED
jaward916
Occasional Contributor

validate wValue against Project Variable in UltraGrid

Hi there,

 

I have an UltraGrid with one row, I want to make sure a column in that row is the JobNumber I created earlier on and is stored as a Project Variable.

 

I have the Property Checkpoint setup as wValue(0,2) equals Project.Variable.JobNum but it want's an explicit value (which I don't know before the test, hence variable)

how can I get this to work?

 

Checkpoint Setup:

jaward916_1-1599060083230.png

 

 

Error:

jaward916_0-1599059881273.png

 

I'm having one of those days, I'm sure this is an easy one for the gurus!

3 REPLIES 3
Marsha_R
Community Hero

I don't see a way to select a variable in that field.  Easy enough to build your own check:

https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/property/properties.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
jaward916
Occasional Contributor

I did say it was one of those days, so previously I've done everything in script form, for this project I'm doing Keyword tests/recordings and so my options were not as obvious (to me) 

the compare properties option works just great for this. And I think that article is what I was trying to find, but clearly my search criteria wasn't up to scratch!

 

Thank you!

I do a mixed batch of tests too.  In keywords, you can use Run Code Snippet or Run Script Routine to sneak some code in there if you need it.   


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: