Cypress automation : Session not getting cleared - authentication

Once I enter user Name and click on login, it should ask for password but it is directly login into application. If I try manually it is working fine but through automation it is directly login in and failing as password field is not found. Below is the code for login
cy.visit("URL");
Cypress.session.clearAllSavedSessions();
cy.clearLocalStorage();
login(username,password).
Expected : Each time I launch browser and application, it should ask me password.

Related

Servelet Login blank page when i try to login

I have a Java web application using JSP and servlet, it works fine, but some times when all users are try to login using correct username and password, the web app returns "servelet login" error with blank white page. i dont know why it happens, but when i restart the server it works fine for some days. please help me, i try googling but i didnt get anything.
screen shoot of my java webapp affter i try to login using correct username and password. the first page i.e login page UI loads perfectly, untile i click on login button
i try to login using correct and incorrect credential, in both case it returns servelet login blank page screen. i used apache tomcat server, mysql and windows server 2016

Generating Registration Password results in 404 error

Using the Bot Channels Registration created a Bot app, was provisioned successfully. I require the App ID and the Pwd so navigated to the Bot Resource , clicked on settings and then Manage next tp the App ID and gives ,me the following error.
Following the help on https://learn.microsoft.com/en-us/azure/bot-service/bot-service-quickstart-registration?view=azure-bot-service-3.0
Get Registration Password - Step 4 results in the error. any help much appreciated.
error 404 on clicking Manage App Id
This can be resolved by two steps :
1. When you click on manage, just add “/true” in the end of the URL that is opened and you will be able to access the page
2. Alternatively you can go to Azure active directory and click on app registration, then search in the personal account with your client ID/ Application id you will be able to access the page
Reason :
this issue happens because the bot is created using personal account, so when we click on Manage button the flow go and search the app registered from owned account. We can make use of above workarounds.

Gitlab login issue via Sourcetree

I'd like to reach my repositories from my own Gitlab account via Sourcetree.
When I try to add a new account, I need to login into Gitlab, but the process is always failed.
The message is simple:
Authentication failed
The username and password are correct, I am 100% sure in it because I've tried them in a private session in Chrome.
I'd someone who can explain to me that why I need to login into my Gitlab account if I choose the "Personal Access Token".
I've already created a new token for Sourcetree, but it never asks me just only my basic login data.
Sourcetree is up to date: 3.0.17.2659
You can see a printscreen here about the login flow.

Continue script on the already opened browser instance in selenium with java

My question is when ever i hit the restapi URL from my selenium it ask for authentication to return data in JSON format as for the same i provide username and password... but its not accepting the username and password and SHows message "required uname and password. The server says : protected area"
This is only happening in the browser which is getting opened through selenium
when i normally open the browser it accept the uname and password
i tried on the IE, Chrome and mozilla and the same problem persist
Is there any way that when i run my code it should not open the new browser window rather than use the new tab in already opened browser ......

Can't login to openfire administrator console. It always told me "make sure your username and password are correct"

I am new to OpenFire.
I have an OpenFire server on CentOS, but I'm unable to login to the admin console.
When I try, it always displays the following message:
"Make sure your username and password are correct and that you're an admin or moderator."
So far, I have tried the following:
Open openfire.xml
Reset setup by setting the setup parameter to 'false'
Restarting the OpenFire server
Accessing the admin console via browser
Select a DB to use. I selected my own database not the sample database for OpenFire.
When I tried to reset the password for admin, I was presented with the following OpenFire admin console (click to view) screen.
I can see changes in my database, but I'm still unable to log in.
I also tried modify the OfUser table directly, but I get the same result.
During the installation guide you must have setup your admin account to admin#XYZ and a password. Well at the time of the login use username as admin and password same as the one given at the time of installation.
After fresh installation, start the openfire setup in "root/administrator" account. Select all the required features in the installation. Give the password in the 'account' section carefully. After setup, you will be able to login with username as 'admin' and your selected password.