Serenity BDD dont delete Browser Memory

时间秒杀一切 提交于 2019-12-24 21:17:36

问题


@Managed(uniqueSession = true, clearCookies = Never)

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.

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


回答1:


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. add issue here
  2. ask in the RocketChat

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.



来源:https://stackoverflow.com/questions/51203988/serenity-bdd-dont-delete-browser-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!