• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
  • Home /
  • Public Forums /
  • Network Application Monitoring /
  • Enterprise Synthetic Monitoring /
avatar image
Question by Mathys M. · Apr 11, 2017 at 08:09 AM · agent esm scripting recorder communication

Sometimes a simple IE Page wont be loaded in scheduled test script

networkanalizer.pdfnetworkanalizer2.pdfnetworkanalizer3.pdfHello

I already created a Ticket for this issue on ES Agent Recorder Team (SUPDCRUM-17921). We came to the conclusion that our issue is not bases on how we scripted.
We have the problem that when the scheduled script for a really simple Test of the availability of a website runs, it fails because IE never loads anything neither goes to 'site not found' or another error page. It just trys to load endlessly. But the website is fully available and the robot is connected to the network. We checked DNS, IE settings and it seems alright.
We have some traces of the network analyzer attached (Nr. 1 and 2 from 2 differnt agents, Nr 3 from one of the same but with direct connect to the IP) and hope you have an idea what could cause this issue and maybe help us with it.
Kind Regards

networkanalizer.pdf (1.2 MB)
networkanalizer2.pdf (1.1 MB)
networkanalizer3.pdf (1.1 MB)
Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Yuriy L. · Apr 13, 2017 at 09:16 PM

Hi Mathys,

What you describe is likely an IE hang. IE hang happens in some cases when IE is being run under the ESM Recorder, and the exact reasons for the hang are not always known.With that said, I can offer you two solutions, one sometimes helps in just a pretty narrow case, the other in my experience always brings good results, but requires a significant rigorous effort.

I also like to clarify that IE hangs do not happen with most HTML applications, so these recommendations are only for monitoring applications that do expose IE hangs when run under the Recorder.

Approach 1.

This one might help if the problem happens only during loading the application’s first page, but after that IE works fine. This solution usually helps when the Web application requires loading a lot of additional modules (plug-ins, custom fonts, etc.), but, as I mentioned earlier, this solution might not help, since you cannot know if you experience exactly this problem. I still like to mention it since it’s easier to implement than another approach.

The idea here is to:

  • Start IE with loading the page but without checking IE’s ready state before starting the first transaction.
  • Wait for some time that would guarantee that page is loaded.
  • Start a transaction.
  • Force reloading page without cache by sending {Ctrl {F5}}.
  • Wait for a condition that would indicate that the page has been displayed.
  • Finish the transaction.

The code might look approximately like this:

LaunchToPage "http…", False
Sleep 15 ' assume that it is guaranteed that IE starts and loads the page within
15 seconds
StartTrace "Transaction1"
IEWindow("Internet Explorer MainWindow").Type "{Ctrl {F5}}"
WaitFor…StopTimerAndTrace "Transaction1"

Employing some elements of the second approach might help too.

Approach 2.

This approach is based on avoiding scripting elements that are known from experience to cause IE hangs. Such areas include:

  • Interrogating IE ready state. Check the signatures of the Framework functions you are using, many of them have a parameter to avoid waiting for IE to be redy, which eliminates such checks, like the second parameter in LaunchToPage finction in the approach above.
  • Using the Recorder text capture functionality. This includes Framework functions like WaitForText, and Recorder functionality, like .CaptuteText .TextExists properties, screen events, text checks.
  • Using HTML controls. This means all methods whose names start with HTML and all objects whose names start with THTML should not be used.

To avoid the areas listed above you should:

  • Always reference an IE frame window (please see https://msdn.microsoft.com/en-us/library/5c2fsa5a.aspx if you need explanation of what "frame window" means); if you have only one, then IEWindow("Internet Explorer MainWindow") is all you need.
  • When you need to wait for synchronization or time measurements, rely on OCR and image recognition-based functions. You may also use selecting text and putting it onto the clipboard and monitoring the title of the IE frame window. The Framework contains quite a few examples on using such wait functions.


Once again, this approach proved to deliver when IE hangs become a problem. It requires more effort for script development. One of the reasons for that that is, well.., you cannot use Recorder’s recording functionality. This is why I’d recommend it only when IE hangs are indeed is a problem.

Please post any questions regarding the approaches above. This, of course, includes doubts if specific Framework or Recorder functionality would be appropriate for the approach 2.

Thank you,

Yuriy

Comment

People who like this

0 Show 2 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image Mathys M. · Apr 18, 2017 at 08:39 AM 0
Share

Thanks for this detailed answer. Its very appreciated. The first solution sounds good, but iam not sure if the hangs can always be cleared with an Reload trough F5. We already made some trys with approach 2 but how we script doesnt seem to effect the hangs. BR

avatar image Yuriy L. · Apr 18, 2017 at 10:24 AM 0
Share

Hi Mathys,


Once again, the first approach has limited area where it can be successfully used. The second approach will always work as long as you apply it rigorously. It involves significant effort, though.

Thank you,

Yuriy

avatar image

Answer by Matthew K. · Apr 13, 2017 at 06:02 PM

Can you confirm the highlighted field is NOT selected for your Agent Manager? If it is, could you try deselecting it and see if that clears it up?


agent-manager.png (21.0 kB)
Comment

People who like this

0 Show 3 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image Mathys M. · Apr 18, 2017 at 08:29 AM 0
Share

This field was ideed checked in our agent manager. I unchecked it now.

avatar image Matthew K. Mathys M. · Apr 18, 2017 at 11:40 AM 0
Share

Mathys M, Can you let us know if that helped? Thanks.

avatar image Matthew K. Mathys M. · Apr 18, 2017 at 11:45 AM 0
Share

Make sure you publish after the change.

avatar image

Answer by Tomasz S. · Apr 12, 2017 at 10:57 AM

Hi Mathys,

DNS is apparently not the culprit in your case, but the last report gives several errors that could be of interest: no response error and proxy authentication error. I would assume that something about security policies or Internet Explorer configuration may be impeding your tests.

I’m wondering what happens when you try to run the test manually, i.e. try to open the page in Internet Explorer, does it improve on a second attempt? Does it work any better when you open the same page in a different browser such as Firefox or Chrome?

Try to disable Compatibility View also for intranet sites: Tools > Compatibility View Settings, and if it’s acceptable, disable Protected Mode/Enhanced Protected Mode, since it may block some of the scripts from downloading.

Regards

Tomasz

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

Join the conversation!

First steps in the forum
Community User Guide

LIVE WEBINAR

"Power Demo: Software Intelligence for Cloud Infrastructure"


DECEMBER 12, 10:00 AM GMT / 2:00 PM ET

Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Create Windows Event Log 2 Answers

WaitForImage timer 5 Answers

How can I kill a process tree at the end of a script 4 Answers

TestPartner lose "User" write permission after script publish 1 Answer

Internet Explorer 11 somtimes goes not into ready state, site wont be loaded 5 Answers

Forum Tags

agent manager esm security 12.5 license ocr cns migration communication documentation citrix dna configuration console alerting framework sizing vba css nam java database scheduler files RUM sap xendesktop scripting nam console recorder agent active autocheck nam server install string matching
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A