Great work first of all! But what about Interaction with forms?
Hi! I just tried perfrunner, and i like how it works. It gives you a lot of information about performance's url and do it fast. But what about Interaction with UI forms? So you got params for multiple urls as i understand. What interesting to me how can i put data to login form input, or do something like that to log in with cookies . Mb you already think about it... Thank you for answer(starred)
Hi @valeraparafin , thanks for the feedback, glad to hear it works for you.
Regarding the login and possibility to test website beyond the authorization wall.
The one way to add this functionality is to provide support for the custom script, that will be executed before Perfrunner starts. In this script you can manually insert credentials into browser's session (or cookies, etc) and than, the application behind the authorization gate will work fine. The good thing is that is should be quite easy to implement. The bad one - user needs to get authorization by himself somehow and this might not be very convenient.
Another option is to provide custom script that will be executed after the page was loaded. In this case you will need to write the script that will fill and submit login form. And than, the second page will work as for authorized user.
If you have any other thoughts - let me know. I think possibility to test application as an authorized user is useful.
@Drag13 thanks a lot!
Honestly my first thoughts was about option two, just need more time to understand how can i do it and where.. Should think about it :)
Let you know if i got smth in this direction
Just to clarify, - I am working on this feature right now, but need to do some refactoring so it will take some time. And, unfortunately, it will bring one breaking change.
Glad to hear it! What change it'll bring?
btw Ima tryied build your app on my own local.. but unfortunately, i cant.. First of all i added "version" to package.json (cuz it requare), then i tried install lerna from scripts but always got error TS5014: Failed to parse file 'tsconfig.json': Unexpected token u in JSON at position 0.
Long story short. i cant resolve that and cant run my build.. and i surrendered.
Sounds that you running into some very unexpected issues. What OS are you using? Start should very simple -
git clone https://github.com/Drag13/perfrunner.git
cd perfrunner
npm ci
npm run lerna bootstrap
npm run test
And that's it.
Regarding the changes - I have to change the config format, so if you are not using it everything is OK.