lucieneven
14 years agoContributor
redundant scripts character by character when entering text in the web page
Hello,
This is a question about strange behavior of entering text in the web page.
As can be seen from 2011-12-02 1-23-21 PM.png, TestComplete will generate multiple scripts character by character. It happens to me all the time. My environment is Win7 64bits, IE32 or 64bits.
Call textbox.SetText("")
Call textbox.SetText("ad")
Call textbox.SetText("ad")
Call textbox.SetText("adm")
Call textbox.SetText("admi")
Call textbox.SetText("admin")
Call textbox.SetText("admini")
Call textbox.SetText("adminis")
Call textbox.SetText("administr")
Call textbox.SetText("administra")
Call textbox.SetText("administrat")
Call textbox.SetText("administrator")
Notice the last line of script, it's
Call textbox.SetText("administrator")
instead of
Call textbox.SetText("administrato").
And seems it's not the same. So someitmes you'll see different behavior. Maybe because of user enter the character not exactly the same speed? btw, the visualized picture will be generated accordingly.
I'm not sure whether it happens to someone others. But it didn't happen when i evaluated TestComplete on an XP virtual machine.
It's not a big deal, cause simply remove the redundant script is OK. Just a little bit annoying, cause our testing case has a lot of place to enter character like this example.
Could you please advise some here?
Lucien
Sometimes the
This is a question about strange behavior of entering text in the web page.
As can be seen from 2011-12-02 1-23-21 PM.png, TestComplete will generate multiple scripts character by character. It happens to me all the time. My environment is Win7 64bits, IE32 or 64bits.
Call textbox.SetText("")
Call textbox.SetText("ad")
Call textbox.SetText("ad")
Call textbox.SetText("adm")
Call textbox.SetText("admi")
Call textbox.SetText("admin")
Call textbox.SetText("admini")
Call textbox.SetText("adminis")
Call textbox.SetText("administr")
Call textbox.SetText("administra")
Call textbox.SetText("administrat")
Call textbox.SetText("administrator")
Notice the last line of script, it's
Call textbox.SetText("administrator")
instead of
Call textbox.SetText("administrato").
And seems it's not the same. So someitmes you'll see different behavior. Maybe because of user enter the character not exactly the same speed? btw, the visualized picture will be generated accordingly.
I'm not sure whether it happens to someone others. But it didn't happen when i evaluated TestComplete on an XP virtual machine.
It's not a big deal, cause simply remove the redundant script is OK. Just a little bit annoying, cause our testing case has a lot of place to enter character like this example.
Could you please advise some here?
Lucien
Sometimes the