简体   繁体   English

Serenity BDD不要删除浏览器内存

[英]Serenity BDD dont delete Browser Memory

@Managed(uniqueSession = true, clearCookies = Never)

I have a serenity app that has a Oauth login mechanism using the Microsoft login. 我有一个具有使用Microsoft登录名的Oauth登录机制的宁静应用程序。 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. 我想发生的事情是我有一个使用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. 这意味着先前的登录名已从浏览器的内存中删除。

How to properly retain the browser's memory in Serenity BDD screenplay test using only Google Chrome browser? 如何仅使用Google Chrome浏览器在Serenity BDD剧本测试中正确保留浏览器的内存?

In this conversation similar issue was discussed - https://github.com/serenity-bdd/serenity-core/issues/273 . 在此对话中,讨论了类似的问题-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. add issue here 此处添加问题
  2. ask in the RocketChat RocketChat中询问

Both of the options are good, because the contributors of Serenity BDD can provide the best help for your issue. 两种选择都是好的,因为Serenity BDD的贡献者可以为您的问题提供最佳帮助。 Also you can talk there directly with John Ferguson Smart . 您也可以直接与John Ferguson Smart进行交谈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM