I have a private instance running and would like to put test using cron to it and progress the xml files later.
But how do I get wpt_batch.py running with an API Key?
Is there any other way to do this?
I allready have an script (php) with calls runtest.php with the api key but its very slow.
What part of calling the API through PHP is slow? Odds are that it won’t get any faster with the python bach either. By far the slowest part is usually the actual running of the tests.
For example, we use a PHP version of something like the python batch code to submit tests for the HTTP Archive. It takes around an hour to submit 200,000 tests and then takes a god 3 days to actually run the testing (and that is with 95 test agents running). Talking to the actual API should never be the bottleneck.
[quote=“pmeenan, post:2, topic:7670”]
What part of calling the API through PHP is slow?[/quote]
Out Script sends one test a time and waits until it’s finished and downloads the xml file.
I would like to run a script (no matter which language) which uploads about 100 Test to our server each hour. As the result I would like to get a directory with 24*100 xml files in it each day.
It doesn’t do exactly what you’re looking for but attached is the php code that the python script was based off of.
settings.ini is where you modify the test settings (location, API key, runs, etc)
urls.txt keeps the list of urls
php submit.php will submit them all for testing
php status.php should be run several times until it reports that all tests are complete
php resubmit.php will resubmit any failed tests
php gethar.php will collect the HAR results for all of the tests
php stats.php will gather high-level stats from all of the tests
the urls.txt file in bulktest.zip contains such more url, when call submit.php, that cannot stop even close urlBlast.exe. the next time start urlBlast.exe,the test auto continue run. how can i stop the test started by submit.php serval day ago?
thanks in andvance!