Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
itsjai
Regular Visitor

HTTP call to PowerBI using VS Web Performance Test

When i create a Web Performance test using Visual Studio login to Power BI, it fails during the execution.  The below is the POST request to PowerBI once we have provided the access credentials:-  I am always getting the login page once the below request is processed.  You can yourself check it recording a Web Performance test when login using non-microsoft (company) account.

 

HEADER:-

POST / HTTP/1.1
Connection : Keep-Alive
Origin : https://login.microsoftonline.com
Upgrade-Insecure-Requests : 1
Cache-Control : max-age=0
Accept-Encoding : gzip, deflate, br
Accept-Language : en-US,en;q=0.9,pt;q=0.8
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer : https://login.microsoftonline.com/login.srf
client-request-id : cba58f3e-68f4-4a88-8c34-042f94a39302
User-Agent : Mozilla/5.0 (Windows; U; Windows NT 5.1;) AppleWebKit/530.1 (KHTML, like Gecko) Chrome/2.0.169.1 Safari/530.1
Accept-Charset : ISO-8859-1,*,utf-8
Content-Type : application/x-www-form-urlencoded
Host : app.powerbi.com
Cookie : ASP.NET_SessionId=nas13igq2whvtgkksz35zjej; WFESessionId=e0a8d0f3-f9ae-4f85-856f-efc62b91fecf; OpenIdConnect.nonce.rlUuUgKHnC4QdcyWuo5l%2BkZ5iy35sFntkuP62FOt0l4%3D=bDFaVGEzREF2dU1yMVUxa0lKQmJ0QUI2R3NFNGUxaHdKWWlIY0thLUd0NFFLd0ZpTDRXVkFtWDNnVzRKeUxSUWhwNnpwa3U2TUphVlRHM2N1VVFkOVlzcXZFYl9PTWtDMEdOdGhNTFlJN1puU0hLVFJGR29SQWZoZGRmemFDZW0yTGRHeVZTRWIwdllPM09VUU1pVkJsRHjlfV2pWRElSdm8tbFNza1lKYk80clQxMGNjQkFXaW50ZWU5YUhRNzlEUUg1Rms1V3BpX25jDaVA0eWt4cWVvYW9SNmxB; LoginErrorReattemptCount=1
Content-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_Ts_Ve_J_r29DFfRO4dDLoQRYGQVnqUk0Sxx0mkxstL2gMbQxzBdThSLmRJaH04xiisnq4dCxdHBGRHQIv_f6rRt2BtAcY2LwafOn1Lnrmbt-gub08-x6K2SuFWGRu6uMwOiDfmN0KchIpeVL3fIxev-jOMHvk3UbcjVGXgCJSjmZtI8vKxskf6_og8kb2hIbRjDihCaFDu6UN8C-LOb79FovyCpUA&state=OpenIdConnect.AuthenticationProperties%3dN6NnEriXTzljUmpcquKzJ6C2ve1UsTb8D9P95g4X90Ko3zWJcsEsNDFQPpdmbulELw440jy_HeOHyo9zdnZo07rKRuIKhNizOypUqynDb9ntY6qR6SS5KVpbrjPNb4Ko1x5iiA&session_state=242f699e-5767-42d1-9228-71f47fc1bbef

 

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @itsjai,

 

I tested it successfully following this documentation

1. Can you log in without the test?

2. Can you do the test with other web sites?

Possible solution: 1) clear the browser history; 2) reboot your computer; 3) use another browser instead.

HTTP_call_to_Power_BI_using_VS_Web_Performance_Test

 

Note: please mask the confidential part and pay attention to your privacy.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Dale for the reply.

 

Did you check if it is running fine after you record it?  It fails when passing the credentials to PowerBI after the login.  I tried changing the browser but did not work.

 

Can you show me the results after you run the Web performance test?  First lets solve this and then we can go to Load test scenarios.

 

 

Thanks,

Jai.

Hi @itsjai,

 

I shared a video here. (Only part of the screen can be seen for the reason of privacy).

1. Can you log in without the test?

2. Can you do the test with other web sites?

Possible solution: 1) clear the browser history; 2) reboot your computer; 3) use another browser instead.

HTTP_call_to_Power_BI_using_VS_Web_Performance_Test

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Dale for the Video.

I think i am not clear on my question.  The Recording of Web performance test *works fine* for me.   Could you pls. "Run/Execute" the recorded Web performance test and check if all the steps recorded are running fine and passing?

 

For me It fails after the login credentials are passed to Power BI whilile "running" the recorded test.

Hi @itsjai,

 

I failed to run it because I got many errors. I have read web-test-requestfailed-context-parameter-hidden1-person-name-hidden1-nttfiddsraehow-to-debug-a-web-test and web-test-authoring-and-debugging-techniques-for-visual-studio-2010/. I would suggest you go to here for professional support.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have posted the question, but did not got any response.  Is there any body from Microsoft who can help me out here?

 

https://social.msdn.microsoft.com/Forums/vstudio/en-US/55d08150-61c3-4e84-a7d6-a60dae783c99/http-cal...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.