The code used in the Load Testing Power BI Applications with Visual Studio Load Test presentation is available for download here. It is solely sample code, but hopefully it will help you with the start of building robust plugins.
If you have any questions about building a more complete and dynamic recorder plugin, you can reach out to me via email or through this form.
Getting below exception
Request failed: Exception in PreWebTest event: Could not load file or assembly ‘PowerBiRecorderPlugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Microsoft.VisualStudio.TestTools.WebTesting.WebTestRuleBase.get_Type()
at Microsoft.VisualStudio.TestTools.WebTesting.WebTestPluginReference.CreateInstance()
at Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest.OnPreWebTest(PreWebTestEventArgs e)
at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.Start()
LikeLike
Thanks for the feedback. Can you please reach out to me via email with the details of the issue (the version of Visual Studio you are using, the OS you are using, etc.) I will try to work with you to get this resolved.
LikeLike