Quantcast
Channel: WebPagetest Forums - All Forums
Viewing all 3879 articles
Browse latest View live

Not able to eneter login credential in login pop up page

$
0
0
We are trying SignIn scenario for our application. Below is the webPageTest script for the same. When we click on SignIn, one pop up window appears and we have to enter credential there. But when we run the test it does not enter any details on pop up page. Please suggest how to handle this issue.

logData 1
setEventName HomePage
navigate http://www.sears.com

logData 1
setEventname SignInPopUp
clickAndWait data-trk=sign in

logData 1
setEventName loginIn
setValue id=email XXXXX
setValue id=password XXXXX
clickAndWait id=loginCheckoutcont

WebPageTest integration with Protractor/Selenium

$
0
0
Hi team,

I'm facing issues with WebPageTest script while dealing with popups or some elements in a big user flow automation. That flow can be achieved with Selenium or Protractor. Is there any way how I can integrate WebPageTest script with them so that i can get performance metrics from the run.

I tried running the WebPageTest script from node successfully. But integrating webdriver there is not possible, as the execution happens in WebPageTest server, not in our required driver.

Thanks for the help.

How does wpt find test results?

$
0
0
I am migrating my private instance to a new server and i'm trying to keep all the history, logs, test results, etc.

- The old server has archived all test results to S3
- i configured the new server to point at the same S3 server/bucket
- I have copied ../www/logs/*

I can now see the test history (thanks to the files in www/logs) but when i open any tests that I know are in S3, it says "test not found"

The test does not exist in ../www/results on the new server, nor do any of the related directories because the test never lived on the new server ...

I assumed it was something like this:
- request test result <xyz> in the GUI
- wpt looks for it in the log files (in ../www/logs) to see if it's valid
- if it is, wpt looks in the ../www/results/YY/MM/DD/... folder
- if it's not there, wpt checks settings.ini for the type of archiving
- wpt pulls if from the archive (archive_directory or S3)
- then unzips it and shows it in the GUI

Am I forgetting something?

... tips/tricks?

WPT3.0 - Chrome does not launch

$
0
0
Hi

I've just upgraded my server to WPT3 and I'm starting with a very simple setup: same windows server with a unique browser (Chrome).

When I use the web interface to request a new test I briefly see that the wptdriver windows shows "DNS Flush Resolver returned 1" and then nothing. Chrome is never launched.

I've put below the content of my configurations and outputs from the server.

I miss some logs to understand why my browser is not launched. It may be a privilege issue or anything else but I'm a bit blind. Is there any log file I could get about wptdriver? Or do you have any idea how what could be wrong?

Regards,
Pascal


---------------------
locations.ini
---------------------
[locations]
1=Munich
default=Munich

[Munich]
1=Munich_wptdriver
label="Munich VM (Chrome)"

[Munich_wptdriver]
browser=Chrome
label="Munich - Chrome"

---------------------
wptdriver.ini
---------------------
[WebPagetest]
url=http://127.0.0.1/
location=Munich_wptdriver
browser=Chrome
Time Limit=120
;key=TestKey123
;Automatically install and update support software (Flash, Silverlight, etc)
software=http://www.webpagetest.org/installers/software.dat

[Chrome]
exe="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
;options='--load-extension="%WPTDIR%\extension" --user-data-dir="%PROFILE%" --no-proxy-server'
;installer=http://www.webpagetest.org/installers/browsers/chrome.dat

[Firefox]
;exe="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
;options='-profile "%PROFILE%" -no-remote'
;installer=http://www.webpagetest.org/installers/browsers/firefox.dat
;template=firefox

[Safari]
;exe="C:\Program Files\Safari\Safari.exe"

[IE]
;exe="C:\Program Files\Internet Explorer\iexplore.exe"

---------------------
http://<myhostname>/getLocations.php
---------------------
Location Idle Testers Total Tests Being Tested High Priority P1 P2 P3 P4 P5 P6 P7 P8 P9
Munich_wptdriver 1 0 0 0 0 0 0 0 0 0 0 0 0

---------------------
http://<myhostname>/install
---------------------
WebPagetest 3.0 Installation Check

PHP

PHP version at least 5.3: 5.6.28
GD Module Installed: yes
FreeType enabled for GD (required for video rendering): yes
zip Module Installed: yes
zlib Module Installed: yes
curl Module Installed: yes
php.ini allow_url_fopen enabled: yes
APC Installed: NO (optional)
SQLite Installed (for editable test labels): NO (optional)
Open SSL Module Installed (for "Login with Google"): yes
xml Module Installed (for rss feeds): yes
pcre Module Installed (for rss feeds): yes
xmlreader Module Installed (for rss feeds): yes
php.ini upload_max_filesize > 10MB: 2M (optional)
php.ini post_max_size > 10MB: 8M (optional)
php.ini memory_limit > 256MB or -1 (disabled): 128M (optional)
System Utilities

ffmpeg Installed with --enable-libx264 (required for video): NO
ffmpeg Installed with scale and decimate filters(required for mobile video): Not Detected (optional)
imagemagick compare Installed (required for mobile video): NO (optional)
jpegtran Installed (required for JPEG Analysis): yes
exiftool Installed (required for JPEG Analysis): NO (optional)
Misc

python 2.7 with modules (faster mobile video processing): Error running "python video/visualmetrics.py -c" (optional)
Filesystem

{docroot}/tmp writable: yes
{docroot}/dat writable: yes
{docroot}/results writable: yes
{docroot}/work/jobs writable: yes
{docroot}/logs writable: yes
Test Locations

Munich : Munich VM (Chrome)
Munich_wptdriver : Munich - Chrome - 1 agents connected
[/php]

Waiting behind 90 other tests?

$
0
0
Really?

I've never had a wait queue longer than 2 at the most. Server issues today?

.png  2017-03-11.png (Size: 110.2 KB / Downloads: 10)

[WPT3.0] wptdriver chrome installer never ends

$
0
0
Hi,

I haven't been able to make my Chrome to be launched with wptdriver on my test machine so I have decided to remove the browser and make wptdriver to reinstall it.

This reinstall process never ends unfortunately and wptdriver keeps showing it is reinstalling:


.png  wptdriver_chromeinstall.png (Size: 22.17 KB / Downloads: 4)

Where could I find more information on what is preventing this process to finish? Is there any log file available somewhere?

Regards,
Pascal

setViewportSize broken?

$
0
0
Starting around March 6, setViewportSize stopped changing the resolution. We run private instances, but I've tested on your site and see the same issue.

Here are the results:
https://www.webpagetest.org/result/170310_QW_11VK/
Here's the script:
setViewportSize 375 667
navigate http://whatismyscreenresolution.net/

Searching has turned up similar issues. The solution was to put a tab between the height and width but I don't believe that's the current issue. The script text field doesn't seem to take tabs, and when I click the yellow 'script' above the "Re-run the test" button it seem to have automatically added the tab.

Mapping webpagetest_master to a fixed set of agents

$
0
0
I feel that this is a very silly question, but I wasn't able to find an answer so far. :-(

I need to have a static webpagetest agent - i.e. I do not want webpagetest to terminate and recreate agent instances, because it takes ages, plus we have tagging requirements in our organisations that are painful to implement when instances are being recreated automatically.

Is there a way to tell webpagetest "here's your test agent, use it"? What I did is I allowed webpagetest master to create an agent, then I removed ec2 access key from settings. All was fine until I restarted the instances. Now webpagetest master does not see an existing agent.

I remember finding config file that listed existing agents, but I cannot find it now.

Waterfall/thumbnail images not showing and runtest.php errors

$
0
0
I'm having issues with my server upgrades to (a) new platform and (b) webpagetest 3.0 and wondering if anybody has some clues/tips/ideas of what it is that I am missing...

Testing on 3 different machines, i see the following:

Server A
CentOS7, PHP 7.0.16, FPM/FastCGI, NGINX 1.10.2
Included /var/www/webpagetest/www/nginx.conf (for rewrite rules)
From /install page:
- Every single item is green
Running runtest.php:
- Undefined variable: req_domelement in /var/www/webpagetest/www/runtest.php on line 104
- error on line 2 at column 6: XML declaration allowed only at the start of the document
Also:
- Waterfall and thumbnail images not showing (showing spinner)

Server B
CentOS6, PHP 5.4.16, Apache 2.4.6
HTTP_MOD_REWRITE = On
From /install page:
- Every single item is green
Running runtest.php:
- Undefined variable: req_domelement in /var/www/webpagetest/www/runtest.php on line 104
Also:
- Waterfall and thumbnail images ARE working!

Server C
local machine, windows/WAMP: PHP 5.6.25, Apache 2.4.23
HTTP_MOD_REWRITE = On
From /install page:
- GD module installed
- all (non-optional) checks are green
- all file system checks OK
Running runtest.php:
- Undefined variable: req_domelement in C:\Users\mverkerk\dev\webpagetest\www\runtest.php on line 104

Scripting Not Working On Private Instance

$
0
0
Hi guys, I was hoping that someone could help me out with this. I am trying to test the scripting functionality of my local instance of this product, but even the most basic scripts don't seem to work. I have confirmed that my script works at webpagetest.org, but when I try the exact same script on my local instance, it fails. Could I be missing something in my configuration or has anybody else experienced this issue and knows of a fix. My script looks like this(tab-delimited, not spaces):

logData 0
navigate http://www.mysite.com
logData 1
navigate http://www.myothersite.com

Any advice would be greatly appreciated.

*****Edit*****

I figured, I would add the errors that I am getting when I attempt to test this script on my local instance.

If i run it through the UI, I get the following error:

The testing completed but failed.
Timed out waiting for the browser to start.
Waterfall Screen Shot Video
First View: Test Data Missing
Repeat View: Test Error: Skipped repeat view, first view failed: Timed out waiting for the browser to start.

In reality, I am writing a simple php script using curl to start tests, collect the test results and store results in a database. An example of the curl call I am using to start the test is below:

$link = urlencode(file_get_contents('test.txt'));

$startTest = curl_init();
curl_setopt_array($startTest, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://www.mylocalinstance.com/runTest.php',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => array(
'location' => 'Office_wptdriver',
'f' => 'json',
'script' => $link,
'video' => 1
)
));

$response = curl_exec($startTest);
curl_close($startTest);

//The script continues from here to check the test status then collect the results once it has been completed.

If i remove the script option and manually specify single URLs, using the url option, the script runs fine and all data is stored correctly. However, when I use the script option and point to my URL encoded version of the script file I wrote, I get the following error:

{"statusCode":400,"statusText":"Invalid Script (make sure there is at least one navigate command and that the commands are tab-delimited). Please contact us if you need help with your test script."}

The URL encoded script looks like this:

logData%090%0Anavigate%09http%3A%2F%2Fwww.yahoo.com%0AlogData%091%0Anavigate%09h​ttp%3A%2F%2Fwww.aol.com%09%0A

I have also tested this without encoding my script file with the same results. There are definitely navigate commands in my script and they are tab-delimited so I'm not sure what I am doing wrong.

I have also verified that all necessary PHP modules from the installation documentation are installed on the server, so I don't believe that is a problem.

Logs don't seem to give me any truly useful information to narrow down the issue.

Anyone else experiencing or have experience this? Any help would be greatly appreciated.

Firefox agent not taking any "setheader" value

Problem website configured with nginx and iOS > iOS7

$
0
0
Hi there,

I have recently set up my first web server (https://vbazile.com ) which seems to work fine for any device except for iphone OS above iOS7.

The phone would connect 1 time out of 20 to the site, and in that particular case, it wouldn't load the stylesheet.
Otherwise, I end up with a "connection reset. Server might be busy" safari message.

I tried several nginx conf, investigated about ssl cache, abided by the ATS imposed by IOS9 as well as I could, got A+ on ssllabs, but as of yet, I have failed to understand the origin of the problem.

As WPT is the only place that I have found where I can reproduce the bug, I was wondering whether anyone could give me any pointer to fix that bug ? Has anyone already stumbled on this issue ?

Any help would be most appreciated.

Alternative to lazy load

$
0
0
My client has a publishing website like a magazine that loads a rotating list of ads and because of this the web page takes a long time to load (even though the above the fold content loads super fast). However because of this the images for the page takes forever to load if we're using lazy load because the rotating list of ads holds them up.

Is there some other alternative solution someone would suggest?

Cannot click a link inside a frame

$
0
0
I am trying to test an app we develop via webpagetest. It is not publicly available, so I cannot provide access, but here's some details:
1) the page has a set of iFrames on it, it is organised through yui framework (I'm not a dev, so that's as much as I know)
2) the link I want to click is inside one of the iframes with a code like below (I removed all other elements). When I click on that link manually, changes occure in another frame, and even if I open menu frame in a separate tab, all of the frames still seem to be connected somehow (I guess, through yui).
3) I am trying to click entry-0-1 link, and I have tried all I could think of: click, clickAndWait, sendClickAndWait, exec/execAndWait... I also tried using sleep before trying to click a link, as advised for a similar problem in MS edge webdriver. I tried different browsers. There are no error messages anywhere, but no activity either, test just waits for "up to 420 seconds" to finish.

Any idea what the problem might be? Did anyone ever encounter smth like this? Hard to believe I'm the first one...
Code:
<body>
    <div id="menu-container">
        <div id="menus" role="tabpanel">                            
            <a id="Link0" menuindex="0" class="menu-name"  href="#" onclick="toggleMenu( 0 );return false" role="tab" aria-expanded="false">
                    <span class="menu-name-icon fa fa-caret-right"></span><span class="menu-item-content">Menu Name</span>
            </a>
            <div class="menu" role="tabpanel">
                <ul id="Menu0" class="menu-entries invisible-links">
                    <li>
                        <a id="entry-0-1" tabindex="-1" class="menu-entry" href="#" onclick="openApplication('Patient Search and Demographics', 'Patient Search', this);return false">
                            <span class="menu-item-content">Search Button</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</body>

JSON response from testlog.php?

$
0
0
Currently you can use f=csv to get a CSV output from testlog.php, but is there any way to get a json response (i.e. f=json)?

[WPT3.0] WPTdriver causing OS reboot

$
0
0
Hi,

My WPT 3.0 installation is running fine now but I noticed frequent system reboot. I had a look to Windows event viewer and found that these reboots are caused by wptdriver, here is the windows event details:

C:\webpagetest_3.0\wptdriver.exe (PAR-WVHAC)
PAR-WVHAC
Legacy API shutdown
0x80070000
restart

I've googled for "Legacy API shutdown" and found this could be caused by many different software. It isn't specific to WPT but it looks that the reboot is caused by WPT and something else.

Does anybody experience a similar issue with WPT 3.0 ?

Regards,
Pascal

TFB: Long idling times for all assets, especially the static ones on a CDN

$
0
0
Hi, I am trying to figure out the rather slow time to first byte on the website of a friend of mine, where each asset is idling up to several seconds and I have not really a clue what could cause the idling for especially the static assets. The page is on a shared hoster. It is a WordPress Multisite. All assets (CSS, JS, images, fonts) are hosted on Cloudfront. The trace for the homepage regularly loaded is the following:

https://www.webpagetest.org/result/17031...view_step1

He exchanged the dynamically loading page for testing purposed with a static html page:

https://www.webpagetest.org/result/17031...view_step1

The idling is insignificantly shorter and still too long anyways. What might be the reasons for those delays? Cuz basically I've thought those intervals should be way shorter cuz especially the static assets are just directly accessed with no server work necessary. :/ I am bit of ideas. The only thing that might be changed could be the hoster for the WordPress site, but that wouldn't have any effect on the accessed files on the CDN. Aside that no idea. Any suggestions anyone? Best regards Ralf

10 seconds of TTFB - TopCAfirms.in

WPT able to measure TP90?

$
0
0
Can WPT help us to measure TP90?

Chrome Timeline

$
0
0
In (new chrome timeline ) performance representation any specific representation for blank line and color.Added timeline in that before and after color line will be there any specific reason behind that.

.png  timeline.png (Size: 44.45 KB / Downloads: 5)
Viewing all 3879 articles
Browse latest View live