Seddryck / NBi

NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
http://www.nbi.io
Apache License 2.0
106 stars 37 forks source link

Power BI Desktop (January 2021) : Connection Exception #650

Open 648hannnah opened 2 years ago

648hannnah commented 2 years ago

Hello!

Testing Power BI always produces an ConnectionException and I wonder if it could be because in line 53 of NBi.Core.PowerBiDesktop.PowerBiDesktopConnectionStringBuilder the name of the parent process is compared to "Power BI Desktop". However in the latest version I believe the main window title is "Power BI Desktop (January 2021)"

`

PBIX=dashboard
</settings>`

code connectionException

title

Thanks in advance!

FuegoArtificial commented 2 years ago

As far as I know, this PBI Desktop Version is for later PBI report server deployments. In case you want to use the "normal" power bi desktop (for power bi cloud deployments or just for you locally), you could use that instead and the tests might work without a change in the code? Cheers

Seddryck commented 2 years ago

Ideally we could relax a bit the constraint on line 53, to only get something containing Power BI Desktop in the name and not ending with Power BI Desktop (or better first try with the exact ending and if no result then accepting a result containing the magical words).

Feel free to submit a PR.