Forum Discussion
Hi Robert,
Please find the answers below for the questions you asked...
1. TC version 8.10
2. We are using IE 8 to access our web application
3. When a breakpoint is set and run the script, most of the times what happens is, the play image which should come at the line where breakpoint is inserted, it will not show, I wait for sometime thinking TC is taking sometime, but after nearly a minute when I click on Play button on notification object, TC will get blur having TC behind white screen and on the top of title bar (above menu bar) it will show "TC.... (not responding)".
4. I really did not notice if I had watcitem already set when I set breakpoint, but will that create any issue, having breakpoint and watchitems?
Below is the code for your info, but it is not that only for this script TC will hang... sometimes when I set the breakpoint, I save the script, close the TC completely and then reopen it, that time TC will not hang, play image will show at the line where I inserted breakpoint, I observed, while i'm continously and I insert the breakpoint and run the script, that time it hangs... in such situation, I insert the breakpoint, save the script, close the TC and open again and run the script, it will work fine...
Sub Main
Set opt = dbgservices.Options
Res = opt.EnableEvents
log.LockEvents
Call TestedApps.iexplore.Run
Set iexplore = Aliases.iexplore
Call iexplore.ToUrl("http://qaserver/login.asp")
Set iexplore = Sys.Process("iexplore").Page("http://qaserver/login.asp").document.all
iexplore.Item("txtLoginId").Value = "nayu"
iexplore.Item("txtPassword").Value = "abc"
'This is to get the property value of username
Set iexplore = Sys.Process("iexplore", 2).Page("http://qaserver/login.asp").document.all.Item("txtLoginId")
loginname = aqobject.GetPropertyValue(iexplore, "Text")
Set iexplore = Sys.Process("iexplore").Page("http://qaserver/login.asp").document.all
iexplore.Item("cmbLogin").Click ==>> breakpoint is set at this line
'This will give by what username you are logging into the In4suite in the test log
Log.Message "You are logging in as: " &loginname
Set iexplore = Sys.Process("iexplore").Page("http://qaserver/default.asp")
If iexplore.Exists Then
Log.Message "You are logged in..."
Else
Log.Error "You are not logged in..."
End If
End Sub
Please let me know possible cause for this issue and how to resolve?
Hi Robert,
There is one more issue with TC, I wanted to mention separately...
While closing TC, it will hang... I face this issue lots of times... for your reference I'm attaching screenshot.
Related Content
- 10 years ago
- 8 years ago
- 9 years ago
- 10 years ago
- 11 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago