Feature Requests & Ideas

For bug reports and questions, please use the in-app chat or support@mabl.com.

Counter based Variable

I would like to have a variable that counts. I need the number to go by various increments including 1's, 2's, 5's and 10's.

  • Brent Engelman
  • Jun 27 2019
  • For Consideration
  • Attach files
  • Brent Engelman commented
    31 Jan, 2020 04:15pm

    I don't know at this time nor do I have a time frame when I will be able to test.  As long as the number is ab;ed to b tracked in mabl and I can set a limit. It should work. 

  • Anton Hristov commented
    31 Jan, 2020 02:45pm

    Brent, does the newly added support for loops meet your requirements for incrementing a variable by 1 up to a given number and taking some action?

  • Brent Engelman commented
    8 Jul, 2019 02:08pm

    The use is when we add charges they start off with charge 1 I would like to be able to confirm that it is adding the correct number and renumber the charges into the correct position. 

    Another use case is our Setting Control when relist I would like to make sure each entry is in there. As it goes though the screen it should be able to make sure there is the number request. 

  • Anton Hristov commented
    8 Jul, 2019 02:00pm

    Brent, thank you for illustrating your thoughts on this request. Can you also please describe the use case that this feature would help you address?

  • Brent Engelman commented
    8 Jul, 2019 01:25pm

    You would select your Counter Template like String or javascript.

    You would choose your pattern based similarly to Sting by typing {{digit:X,Y}} X= Base and Y = Counter.

    The pattern would show based on you choices. If I choosed 0 as my Base and 5 as my Count, I would start at 0 then add 5 to it. My first count would be 0. My second would be 0+5=5. Third would be 5+5=10. This would repeat as long as I calling the same variable.

    If possible {{alpha:A}} or {{alpha:a}} notice no counter. It would just go though alphabet with upper or lower case. It would start on what ever Base is shown.

  • Bertold Kolics commented
    3 Jul, 2019 04:03pm

    How would you like this to work? Would the variable increment every time a test step references it? Have you tried implementing this using a JavaScript snippet?

Copyright © 2021 mabl Inc. All rights reserved.