When create the resource activate "delete after use"
How to keep track of Successfully executed threads
-
I started using BAS few days ago and i wrote a simple script that need me to keep track of successfully executed threads. I try using the action under scripts statistic > success number but i don't really no how to implement Success number on my script i will really appreciate if some one put me through on how to track the number of successfully executed thread. Thanks
-
Thanks for the fast response if i use Success number action within the main function it works perfectly but once i use it within a function that is called within several threads it always output 0 success irrespective of the number thread that is executed within the call function in several threads action. I will appreciate a a work around that prevent success number from displaying zero success when used within a function that is called using several threads. Thanks
@allister said in How to keep track of Successfully executed threads:
To get the Failed/Success number of the thread count;

To set your Success/Fail Number-
Setting the number below the Thread Number. Once the Success/Fail number is reached, the bot will stop.
Note: '-1' means no limit.

-
You are correct! Weird I swore it worked with several threads a couple of versions ago.... maybe not? Lets go ahead and get @Fox in on this one and see!
For now, we're going to use a simple Global and increase it before it's Success, Reset it on a new Several Threads Action.
-
@allister said in How to keep track of Successfully executed threads:
You are correct! Weird I swore it worked with several threads a couple of versions ago.... maybe not? Lets go ahead and get @Fox in on this one and see!
For now, we're going to use a simple Global and increase it before it's Success, Reset it on a new Several Threads Action.
How would you like it to work? The action "Call function in several threads" can be called in each thread and it is not entirely correct to consider the "Success number"
-
thanks at @Allister for the work around which helps me out to continue developing my script?
@Fox the success number action should be able to track number of successful threads irrespective of were the action is being used in the main function or when call function in several threads action is used.