I have a function that reads in time (format 00:00:00) from two sources. The function then performs a simple subtraction (time1 – time2) to obtain a difference. Then it runs a comparison on the difference and if the time difference falls within a certain threshold, it records pass, else it will record a fail.
Super simple
When I run this function in the test, the string “contcr” appends to the time. In the logs, you will see the time recorded as it should be with no “contcr” string appended to it. However, the script will fail and it will tell me that it cannot perform an arithmetic operation on 00:00:00contr and 00:00:00contr. After I pause the script, in the “Locals, Globals, Universals” column to the right in the Run window I see the proper time recorded, but with an arrow pointing to the time recorded and stored in the variable and after the arrow is “contcr”.
I ended up double clicking on the variable in the tree and a text field box appeared with the proper recorded time and underneath the recorded time is “contcr”. I erased the “contcr” sting and hit save. I thought that may have been the fix (i.e. garbage characters hanging around).
So, from what I can tell “contcr” is not really being appended to the time that was recorded (info in the logs), but Eggplant for some reason is doing this on its own. There is nothing in the Sensetalk source code that tells Eggplant to append anything to any variable.
If I write test code and step through the function standalone, everything is fine. When I run the full test, “contcr” appends to the value held in the time variable. I tried several different code changes, and I even tried a keepCharacters() function that another colleague had suggested, and when I run it standalone, I’m good. Even when I step through the function everything is fine.
When a colleague runs a test case that is very similar to mine, he runs the same function that I run (no differences in code) and his passes. So, I have a feeling that there is something odd going on with my IDE, but I have no clue what is going on.
Any thoughts?
IDE settings?
I CANNOT post the code to this forum as it is code that is on a classified system.