| || |
I am new to use this tool. Need feed back from one who knows silktest very well. Here is the information.
[-] testcase test1()
[ ] Integer x
[ ] x = 8
[ ] Print(x)
[-] //Print this is done
[ ] Print("done")
If x = 10. fine. It prints 8 and done.
If x = 8. It should print done in the log file.It should not. why? any suggestions?
if x == 10, why would it print 8?
It's hard to see what your code is trying to do, without the proper indentation. You can use UBB tags to make it clearer (see the "UBB code is enabled" link for a guide).
if you want it more Clearly just unselect Visual 4Test through "Edit --> Visual 4Test" and u will understand the way it works.
In this case...there is a issue with Comment. Just remove the Comment and move the Print("done" ) to Left indent.
It is my mistake.
If x = 10. fine. It prints 10 and done.
It appears that you are trying to loop until x = 10 but your code doesn't appear to be incrementing x. As a result, your script is printing 8 and done. If you want it to only print done when x = 10 add an x++ into a while loop:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">testcase test1()
INTEGER x = 8
while (x < 10)
Print("done"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The code above would result in: