WebPagetest Forums
Run a test without opening a new browser - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Testing Tools/Services (/forumdisplay.php?fid=6)
+--- Thread: Run a test without opening a new browser (/showthread.php?tid=13995)



Run a test without opening a new browser - mdg - 10-16-2015 07:59 PM

Hi,

I'm new with WPT and I have a private instance of server and agent. Both works fine running simple scripts.

But I need to run some complex scripts and I'm not sure if WPT is what I need.



First of all I made a simple C# program that send a task to the WPT server and waits until it ends, then parses the report and store all the info in a DDBB.

But I want to make a task that simulates the user behaviour inside a web site:


- Open web page.
- Check if element is present and if not then throws an error
- Write username and password, then click submit button and login
- Check if element is present and if not then throws an error
- Make click in a link
- Check if element is present and if not then throws an error
[...]


Check if an element is loaded isn't a problem because I just need to search for it inside the parsed report.

Is it possible to send a task that not closes the browser and then send another task that uses the previous browser instance? Huh

Thanks.


RE: Run a test without opening a new browser - andydavies - 10-17-2015 02:03 AM

Take a look at WPT scripting - https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting