Variable storing and usage not working for FF and Chrome

Good Evening

FF: Version 59.0.2
Chrome: Version 65.0.3325.181

Command: **Store
**Target: **craigslist
**Value: **varAH

**I get this after running the above command:

[info] Store ‘craigslist’ into ‘varAH’

The following commands - won’t work:
_
- assertTextPresent_

This is the best i get out of this:
- [error] false
Command: assertTextPresentValue: ${varAH}
_
- echo
_

Command: **echo
**Target: ${varAH}

This is the best i get out of this:
- [info] echo: ${varAH}
- [info] Executing: | echo | | ${varAH} |

I can demo.

Thank you and appreciate any insight or help!
Andrew

Hi. Did you write echo ${varAH} with ${varAH} as a “target” (not “value”). The log should be “[info] Executing: | echo | ${varAH} | |” instead of “[info] Executing: | echo | | ${varAH} |”.

Hi Alex

Out of curiosity i tried both ways and i still do not have the actual value to “echo” or “asserted”.

Command: **echo // **Target: ${varAH}
AND
Command: echo // Value: ${varAH}

You know what i found out. All the samples provided by Katalon - work perfect even for Variables.
Data driven samples work a bit weird - they run in a loop even though the .csv file will have only a single record.

So the samples are the imported html files from this site.
However if i record manually or build my test cases manually - the same syntax or logic for usage of variables doesn’t work at all…

Thank you for your assistance!
Andrew

Could you please send us a sample test case for investigation? You can send to us at info@katalon if the data is sensitive.

Alex said:

Could you please send us a sample test case for investigation? You can send to us at info@katalon if the data is sensitive.

Hi Alex - Thank you so much! I was able to figure out at the end.

Andrew

1 Like