question

NMOLINERO avatar image
NMOLINERO asked cecilia.voinea answered

iTest TCL session prompts configuration

I run a tcl file from a TCL session on iTest and this gives a response which consist of a list of statistics. I want to be able to stop the test when the value of one of these statistics is greater than a certain number.

I've tried it by using analysis rules but it doesn't store the value properly, so I was thinking to do it by using prompts. However, I don't see in the properties of the TCL session any way to configure these prompts. How can I do this?

Maybe if there is a way where I can use the readFile function and read each line so I can check the responses of each line as an individual command?

Thanks!

iTest Enterprisetcl scriptsession profileanalysis ruleprompt
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cecilia.voinea avatar image
cecilia.voinea answered

Cool! I am glad I could help you.

Cecilia

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

NMOLINERO avatar image
NMOLINERO answered NMOLINERO edited

Hi @cecilia.voinea,

Thank you! That was useful!

Natalia.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cecilia.voinea avatar image
cecilia.voinea answered

Hello @NMOLINERO,

If I understood correctly you are trying to read from a file until a certain statistic is greater than a number.

Let's say we have file statistics.txt that has entries for statistics1 & statistics2. Let's assume you want to read the file until the value for statistic1 is greater than 15.

Phase1

"statistic1: 10

statistic2:100"

Phase2

"statistic1: 13

statistic2:190"

Phase3

"statistic1: 16

statistic2:100"

If so I would suggest using readFile itest command plus repeatStep.

Please find attached :

-the document with the detailed steps.read-file-steps.pdf

- the iTest testcase read-file-test.zip

Please let me know if this is helpful for you. If not please attach the file you are trying to use and your testcase.

Thank you,

Cecilia


10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.