sitespeedio / jenkins.sitespeed.io

A Jenkins plugin for sitespeed.io
Apache License 2.0
31 stars 3 forks source link

how can i use the sitespeed.io to test some page if the page need to login? #22

Open qileilove opened 8 years ago

qileilove commented 8 years ago

I have a web application, on which I would like to run sitespeed.io. The tests would need to be integrated with Jenkins. The application has a login page. If I provide the application's url, if a valid user is not logged in the login page will be displayed. So how do I test performance using sitespeed.io & Jenkins? Is it possible to automate the login part?

soulgalore commented 8 years ago

Hi @qileilove , there's no clean way to do it in the current version (it will be in the next one coming in June). What can you do is login the user outside of sitespeed.io and add the login cookie as a request header when you use sitespeed.io. Here's an example how edx solved it: https://github.com/edx/edx-sitespeed

Best Peter

qileilove commented 8 years ago

thanks @soulgalore , cool! I will try it, It seems to help me solve the issue.

Best