0

I want to speed test Magento admin area with some 3rd party tool. However I can't do it as Magento admin area requires authentication.

Is there any way to disable it?

  • Can you mention that tool? – Alex Aug 24 '13 at 12:46
  • Thank you very much Alex, I will test it tomorrow at my working hours. – Jakkrij Yoonaisil Aug 25 '13 at 16:17
1

I assume you are doing the tests via a browser-frontend? (Selenium or similar)?

Some thoughts:

Avoid real passwords in the test scripts

Just create a user "tester" pw: "tester123" or similar before running the tests. This can be automatized, for example using the FOSS tool: magerun

n98-magerun.phar admin:user:create tester tester@example.com tester123 Foo Bar

full disclosure: I am a contributor of the magerun project

Avoid two steps (open /admin, fill and submit form)

Actually - after you did the login once, the session should be kept open (you can also tune the session time outs). So you have to log in only once and can then jump directly to admin.

This works only if your database / sessions are not fully reset for each test.

Remove to whole login

You could implement a module which simulates the admin session. Have a look at the EcomDev_PHPUnit testing framework - this method might be a good start. (but has to be rewritten if you do not use EcomDev_PHPUnit)

  • Alex, can I contact you at Skype or Hangouts or other ? – Jakkrij Yoonaisil Aug 26 '13 at 3:42
  • If it concerned to the question please keep the discussion here. If there are to many comment, it will automatically suggest to chat. Don't worry. – Alex Aug 26 '13 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.