Hi guys, I’m trying to compare redirects in data file and to have output file with simple true or false result.
- Column A = URL which needs to be open in browser
- Column B = URL which needs to be compared when redirect happens
- File created can be just 0 or 1.
It seems simple, but I’m struggling. I can see that to use
Verify Match is not for URL’s, but there’s Get Url. How should I proceed in next steps, please?
This is my code:
WebUI.verifyMatch(findTestData(‘Redirects’).getValue(1, 1), findTestData(‘Redirects’).getValue(
2, 1), false)
File log = new File((‘Redirects’ + true) + ‘.csv’)
I can have output as separated csv. files per each line of validation. I can put them all together in one reported file with
for /F %i in (‘dir /b *.csv’) do @more %i >> report.csv
Can anyone help me with this, please?