Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Capturing web page load times from VBA

I have a couple of internal web applications that I would like to track their load times for certain web pages that they display. Most of the URLs are variations of the following.

1) https://mydomain.com/folder1/actions...1=119&ID2=AB01

2) https://mydomain.com/folder1/page1.jsp

When the page is requested there are a couple of servers that are contacted to get some information from and I would like to capture as much of the task durations as possible.

Is this something that could be done VBA. Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default Capturing web page load times from VBA

On Friday, December 27, 2013 8:29:32 AM UTC-7, Dirk wrote:
I have a couple of internal web applications that I would like to track their load times for certain web pages that they display. Most of the URLs are variations of the following.



1) https://mydomain.com/folder1/actions...1=119&ID2=AB01



2) https://mydomain.com/folder1/page1.jsp



When the page is requested there are a couple of servers that are contacted to get some information from and I would like to capture as much of the task durations as possible.



Is this something that could be done VBA. Any help would be greatly appreciated.


How about this...ron

Sub test_1()
' open IE, navigate to the website of interest and loop until fully loaded
Set IE = CreateObject("InternetExplorer.Application")
my_url = "https://mydomain.com/folder1/actions/searchList.do?key1=xyz&key2=1234&ID1=119&ID2=AB01"
start_time = Timer

With IE
.Visible = True
.navigate my_url
.Top = 50
.Left = 530
.Height = 400
.Width = 400
End With

Do Until Not IE.Busy And IE.ReadyState = 4
DoEvents
Loop

elapsed_time = (Timer - start_time)
MsgBox ("The time required to load the webpage was " & Format(elapsed_time, "0.0000") & " seconds.")
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default Capturing web page load times from VBA

On Friday, December 27, 2013 8:29:32 AM UTC-7, Dirk wrote:
I have a couple of internal web applications that I would like to track their load times for certain web pages that they display. Most of the URLs are variations of the following.



1) https://mydomain.com/folder1/actions...1=119&ID2=AB01



2) https://mydomain.com/folder1/page1.jsp



When the page is requested there are a couple of servers that are contacted to get some information from and I would like to capture as much of the task durations as possible.



Is this something that could be done VBA. Any help would be greatly appreciated.


Hi Dirk...Tried posting this earlier, guess it didn't get through, so here goes again. Hope this gives you what you want...ron

Sub test_1()
' open IE, navigate to the website of interest and loop until fully loaded
Set IE = CreateObject("InternetExplorer.Application")
my_url = "https://mydomain.com/folder1/actions/searchList.do?key1=xyz&key2=1234&ID1=119&ID2=AB01"
start_time = Timer

With IE
.Visible = True
.navigate my_url
.Top = 50
.Left = 530
.Height = 400
.Width = 400
End With

Do Until Not IE.Busy And IE.ReadyState = 4
DoEvents
Loop

elapsed_time = (Timer - start_time)
MsgBox ("The time required to load the webpage was " & Format(elapsed_time, "0.0000") & " seconds.")
End Sub
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Capturing web page load times from VBA

Ron,

I got one of the posts. Thanks for the help. This will get me started. The next step will be to try and get the breakdown of the time for each section of the web page.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load page with specific date? Eric Excel Programming 3 February 3rd 10 05:11 PM
How to load web page into Excel properly? Eric Excel Discussion (Misc queries) 2 August 16th 09 04:55 PM
how do you print single page multiply times with increasing page . aliasmith Excel Worksheet Functions 2 September 26th 08 12:30 AM
Load TextBox With Search Result Cell From a PAge [email protected] Excel Programming 2 November 6th 07 03:16 PM
Microsoft Excel tries to load front page on opening Excel and Front Page Excel Discussion (Misc queries) 1 March 21st 05 08:51 PM


All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"