oauth-2.0 - Visual Studio Web Performance tests and Azure AD B2C sign-on process
问题描述
We have some web performance tests created in Visual Studio to test our websites. Now with the replacement of our own forms login with Azure AD B2C these tests need updating to automate the initial login step of the tests. If I record a new test of the login it doesn't work when re-run. So I think I need to extract certain values or cookies that come back and ensure they are sent with my requests. I am struggling somewhat to figure out exactly which values I need to pass, so wanted to ask for advice. I have the test in Visual Studio where I can see the requests & responses. I have also used Postman interceptor to capture me authenticating to look at what is being sent, and have had a look through the requests with Fiddler. If anyone knows the values/cookies I need to pass that'd be a great help. I have read around without much look, there is also mention of different cookies which track the auth process which sound important.
Thanks in advance for any pointers on this process.
解决方案
You can set the access tokens in the Extraction Rules. You can use Groups to retrieve just the access token. Please see this guide for more information. It covers a lot of what you are asking.
推荐阅读
- python - 在逻辑回归上制作 Precision_Recall 图
- python - 如何为数据框中的多列剪辑熊猫
- reactjs - React:状态更新后组件未重新渲染
- r - 在 Rstudio 中更改源代码,但代码是用 C 编写的
- python - 如何使用python将图像插入特定的excel文件单元格?
- python - Tensorflow,GPU 比 CPU 快多少?(余弦相似度计算)
- java - 在 dp android 中设置文本大小后,文本在我的自定义视图中的不同屏幕上被拉伸
- javascript - Javascript 对象数组的控制台输出差异
- wxmaxima - Wxmaxima 中的线不够高,无法显示指数的指数 [已解决]
- sql-server - SQL Server 2016,游标