Current time: 10-26-2020, 03:18 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is WPTDriver needed for for wptagent in windows?
05-11-2020, 04:32 AM
Post: #1
Is WPTDriver needed for for wptagent in windows?
Hi there

So I am very confused as to how to setup local locations in a windows machine using the wpt-agent.

In the localhost/install the main and only error I get so far is Test Location

[Image: RjUvUnr.png]

This is what I have working:
1) Setup WAMP and replaced the www file with the one from the privateinstance zip file
2) I have installed all the dependencies vs, python, php etc dependancies
3) I converted the sample connections, settings and locations ini files to proper ini files
4) I had the PUBLIC location to Dulles working when i added my api key to it, but since I only want local(OFFICE) chrome I removed it

I noticed in the locations.ini file it mentioned in the comments that for local chrome i needed to update the wptdriver.ini file

But that was no-where in the wpt-agent private instance zip.

Do I really need wptdriver to make this work?
and if so, where would I put the file and how would I configure it?

I am sorry, if what I am asking maybe simple and common sense to most here, but I was unable to figure this out after putting nearly 30 hours into this, and looking through the docs and google.
Find all posts by this user
Quote this message in a reply
05-12-2020, 12:23 AM
Post: #2
RE: Is WPTDriver needed for for wptagent in windows?
You need to install wptagent: https://github.com/WPO-Foundation/wptage...nstall.ps1

It works across all platforms and replaced wptdriver.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-12-2020, 11:08 PM (This post was last modified: 05-13-2020 12:28 AM by aziaLM1.)
Post: #3
RE: Is WPTDriver needed for for wptagent in windows?
Thank you very much Patrick,

Got it done, and unfortunately later got stuck for too many hours, until I realized what you actually meant by having a batch file ...as it was an example..

Code:
cd C:\wptagent
call npm i -g lighthouse
FOR /L %%x IN (1, 1, 24) DO (
git pull origin master
python.exe C:\wptagent\wptagent.py -vvvv --server "http://localhost/work/" --location "Test"
)

Here is mine.. And it make the whole thing run nice....



But....UNFORTUNATELY..

..after processing.... a new problem arose


None of the tests are storing the results
At least in the links in TEST history show "NOT FOUND" "The requested URL was not found on this server."

But when I go to the results folder in the server area, I can drill down to see theres a folder corresponding to each test with lots of gzips ... but nothing like XML

I tried to see if I change the setting in settings.ini to NOT COMPRESS TO GZIP to 1
But the Agent would not process/detect the work when I did that, until I turned it back to 0
Find all posts by this user
Quote this message in a reply
05-13-2020, 12:41 AM
Post: #4
RE: Is WPTDriver needed for for wptagent in windows?
It's possible that the friendly URLs aren't working. If you go to http://<server>/results.php?test=<testID> does it work?

The XML is generated on the fly from the raw test result data which is in all of those gzip files.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-13-2020, 12:53 AM (This post was last modified: 05-13-2020 01:39 AM by aziaLM1.)
Post: #5
RE: Is WPTDriver needed for for wptagent in windows?
YES!! thats working
I can access the webpage on the browser
but the links on the page for raw or json arent working....

I am sorry.. maybe you already mentioned it.. but i didnt comprehend it... what url should I use to get the XML again?
or is the xml URL practically http://localhost/results.php?test=200512_VD_E (http://<server>/results.php?test=<testID> )

Ignore that I was stupid..i should have just looked up the php files in the directory

for future reference for me and others who might learn from this...(and making this google searchable)
the direct file is

http://<server>/xmlresults.php?test=<testID>
For Ex
http://localhost/results.php?test=200512_VD_E
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)