cancel
Showing results for 
Search instead for 
Did you mean: 

[WebAudits] How to test Front-end performance bypassing user authentication of web?

SOLVED
Highlighted
Contributor

[WebAudits] How to test Front-end performance bypassing user authentication of web?

As the title says

I want to test the other page (not homepage). But the website has user authentication.

How I can do it with WebAudits in TestComplete to bypass authentication?

 

Now even though I write the other page's url below, as login authentication the other page can't be displayed now.

Any other way to solve it in TestComplete?

 

WebAudits.For("10.241.36.101:3001/print-room/jobs ").Check();

WebAudits.JPG

WebAudits.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: [WebAudits] How to test Front-end performance bypassing user authentication of web?

Hi,

 

Possible solution depends on the authentication type used for the tested application.

In the simplest case of basic authentication you may try just http://<login>:<password>@10.241.36.101:3001/print-room/jobs.

In case of other authentication types that are based on the constant cookie/token, you may try to get some page by providing authentication data on the login page and get obtained cookie/token.

Maybe, this even could be done via plain http requests without the necessity to follow the login procedure via UI using TestComplete. Try to record the traffic and investigate it.

Then you may use some pass-through proxy (Fiddler, for example) and set it up so that it appends the obtained cookie/token to all requests sent to your test host (10.241.36.101:3001).

I am afraid that I don't have any good idea at the moment for the case of fully dynamic cookies/tokens that are new for every navigated page.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: [WebAudits] How to test Front-end performance bypassing user authentication of web?

Hi,

 

Possible solution depends on the authentication type used for the tested application.

In the simplest case of basic authentication you may try just http://<login>:<password>@10.241.36.101:3001/print-room/jobs.

In case of other authentication types that are based on the constant cookie/token, you may try to get some page by providing authentication data on the login page and get obtained cookie/token.

Maybe, this even could be done via plain http requests without the necessity to follow the login procedure via UI using TestComplete. Try to record the traffic and investigate it.

Then you may use some pass-through proxy (Fiddler, for example) and set it up so that it appends the obtained cookie/token to all requests sent to your test host (10.241.36.101:3001).

I am afraid that I don't have any good idea at the moment for the case of fully dynamic cookies/tokens that are new for every navigated page.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
Community Manager

Re: [WebAudits] How to test Front-end performance bypassing user authentication of web?

Great advice, Alex!

 

@ApplePen did you manage to bypass the authentication?


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors