Skip to content

Compare 2 values #126

Answered by ASaiAnudeep
vladparl asked this question in Q&A
Mar 23, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

You can use parse function to get the value of stored variables.

const { parse } = require('pactum');

const first = parse('$S{grossFloorAreaM2_first}');
const second = parse('$S{grossFloorAreaM2_second}');

// write your custom assertions to compare the values

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ASaiAnudeep
Comment options

You must be logged in to vote
2 replies
@ASaiAnudeep
Comment options

@vladparl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants