microsoft / PowerBI-Tools-For-Capacities

Repo for tools and utilities related to Power BI Capacities (Premium and Embedded)
MIT License
148 stars 99 forks source link

cannot run the loadtest script #4

Open niball opened 5 years ago

niball commented 5 years ago

can launch RealisticLoadTestTool manually and opens in chrome with pbi report but when i launch using powershell as run as admin, the chrome browser is launched but it comes blank..

furmangg commented 5 years ago

Can you post your PBiReport.json file?

Can you share the PBIX or reproduce the problem against a simplified PBIX you can share?

What errors do you see when you hit F12?

niball commented 5 years ago

i am using the same demo reports that i published in my test workspace.

niball commented 5 years ago

When i hit F12.. nothing happens ..

furmangg commented 5 years ago

First, you need to have run Setup_Load_Test.ps1 to create a subfolder. The PBIReport.json in that new folder should have the proper embed URL. Then you can overwrite the rest of the PBIReport.json with one of the samples but make sure to keep the embed URL since that points to your tenant, not mine.

Then you need to have run Update_Token_Only.ps1 within the last few minutes since the token only lasts for 60 minutes.

If you are still having problems, can you confirm you are running Chrome as your default browser? When you press F12 and "nothing happens" can you send a screenshot? I'm looking for a little red X in the top right and the detailed error messages you see at the bottom when you click the red X.

furmangg commented 5 years ago

@niball any luck?

niball commented 5 years ago

i think the issue is when the powerbi account and the user with which you login to the account is different, then it fails. Have you tested that scenario.

furmangg commented 5 years ago

I don’t follow. It just prompts for login. You can choose any login.

Which script are you discussing? Certainly if you are testing in one tenant and then want to start using a different account you should close all your PowerShell windows first. But only if you want to switch accounts.

I assume you are not attempting a single load test with multiple user accounts?

niball commented 5 years ago

lets assume you logged in to your machine as abc@xyz.com and the powerBI you are connecting as 123@pqr.com. in that scenario, i observed that it creates a profile folder in the powershell script folder and it fails to launch.

furmangg commented 5 years ago

Are you talking about the ChromeProfiles directories? Those are just for improving the concurrent chrome windows you can run and have nothing to do with authentication.

In my experience the PowerShell session caches the login after the first time you login to Power BI.

Ariel044 commented 5 years ago

I have the same problem. Please help!