Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Great work first of all! But what about Interaction with forms? #90

Open
valeraparafin opened this issue Sep 18, 2020 · 5 comments
Open
Labels
feature New functionality

Comments

@valeraparafin
Copy link

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)

@Drag13
Copy link
Owner

Drag13 commented Sep 18, 2020

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.

@valeraparafin
Copy link
Author

@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

@Drag13 Drag13 added the feature New functionality label Sep 18, 2020
@Drag13
Copy link
Owner

Drag13 commented Oct 22, 2020

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.

@valeraparafin
Copy link
Author

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.

@Drag13
Copy link
Owner

Drag13 commented Oct 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

2 participants