Serenity BDD不要删除浏览器内存

Serenity BDD不要删除浏览器内存

问题描述:

@Managed(uniqueSession = true, clearCookies = Never)

我有一个宁静的应用程序,该应用程序具有使用Microsoft登录名的Oauth登录机制. 我正在使用上面的代码来使浏览器保留浏览器的内存.我想发生的事情是我有一个使用Microsoft Oauth登录的测试.然后进行另一个测试,以打开仪表板.由于先前的测试已经登录.我希望应该通过打开应用程序的仪表板.不幸的是,当我访问仪表板时.测试将要求再次登录.这意味着先前的登录名已从浏览器的内存中删除.

I have a serenity app that has a Oauth login mechanism using the Microsoft login. I am using the above code to make browser retain browser's memory. What I want to happened is I have a test to Login using the Microsoft Oauth. Then Have another test that will open the dashboard. Since the previous test already log in. I am hoping that Opening the dashboard of the app should be pass. Unfortunately when I access the dashboard. The test will ask for login again. Meaning that the previous login was deleted from the browser's memory.

如何仅使用Google Chrome浏览器在Serenity BDD剧本测试中正确保留浏览器的内存?

How to properly retain the browser's memory in Serenity BDD screenplay test using only Google Chrome browser?

在此对话中讨论了类似的问题- https://github.com/serenity-bdd/serenity-core/issues/273 .如果我正确理解此功能必须有效,但就您而言,它不起作用.我会怎么做:

In this conversation similar issue was discussed - https://github.com/serenity-bdd/serenity-core/issues/273. If I right understood this feature have to work, but in your case it is not working. What I would do:

  1. 此处
  2. 添加问题
  3. RocketChat
  4. 中询问
  1. add issue here
  2. ask in the RocketChat

这两个选项都很好,因为Serenity BDD的贡献者可以为您的问题提供最佳帮助.您也可以直接与 John Ferguson Smart 交谈.

Both of the options are good, because the contributors of Serenity BDD can provide the best help for your issue. Also you can talk there directly with John Ferguson Smart.