Single file (fileA) has list of filenames.
iTest has to loop through fileA and read each line in a loop.
-->Inside the loop iTest has to open file and pattern match and show the output.
Is this possible in iTest with out using "eval".
Sorry tried to sort this out with no luck.
Any help is much appreciated.
Answer by Malcom Terry · Nov 02, 2021 at 07:45 PM
readfile-example.zip Here's a simple test case for reference.
Answer by Jeff Johnson · Nov 02, 2021 at 06:58 PM
If you open the file with the "readFile" command, you can set the pattern match (or not) and the contents of the file will be in the command response. If your purpose is to test each line for something, then you simply add the analysis and you should be good to go. Don't forget to make sure the analysis is set to analyze each line. One additional thought is you may want to look at using Response Filters for the readFile command. Using these, you can eliminate all unnecessary lines and only have the ones that need testing in your output to analyze.
For more information, search Help for "readFile" and "Response Filters".
Use of ZXTM Load Balancing servers with FlexLM License Servers 1 Answer
FlexLM Options File 1 Answer
Intelligent Response Parsing 1 Answer
Flex IO Error 1 Answer
Copyright 2008- Spirent Communications, all rights reserved. Terms and Conditions.