feature file in cucumber does not generate glue code - cucumber-java

Feature: login file
Scenario: sucess with login with credential
Given user launch chrome browser
When user open url "http://admin-demo.nopcommerce.com/login"
And user enter email "admin#yourstore.com" and password "admin"
And click on login dashboard
Then page title should be "Dashboard / nopCommerce administration"
When user click on logout
Then page title should be "Your store. Login"
And close browser
Scenario: search Customer By e-mail
Given user launch chrome browser
When user open url "http://admin-demo.nopcommerce.com/login"
And user enter email "admin#yourstore.com" and password "admin"
And click on login dashboard
Then page title should be "Dashboard / nopCommerce administration"
When user click on logout
Then page title should be "Your store. Login"
When user click on customer name
And click on customers menu item
And enter custome email
When click on search button
Then user should found email in the serach box
And close browser
The first scenario generated to glue code after spending hours. Then when I copied the first scenario to second scenario "search by email", the glue code was not generated for the additional steps in second scenario? I do not know what I am doing wrong?

Related

Use Test1 given, when in Test2 Background in cucumber

Please see the below code
Test 1:-
Feature: To test login feature
Background:
Given User landed on login page
Scenario Outline: Login with valid credentials
Given User enter credentials with userid <username> and password <password>
When User click login button
Then user navigate to url "url to landing page"
Test 2:-
Feature: To test AddNewPatient feature
Background:
Given User landed on login page
And User enter credentials with userid <username> and password <password>
And User click login button
Scenario Outline: Cancel to AddNewPatient
Given User click addNewPatient link
When when user click cancel
Then user navigate to main page
How can i use test 1 Given, when in test2 Background?
Not able to implement step definition file with this confusion

Azure AD B2C - Password Reset custom page layout HTML after emailed code

I've personalized a user flow to use a HTML page and it works very well. I've also added it to the login user flow.
My problem is when the user goes to the reset password flow (that is right), send the code to his email and click "Continue". The page after, where the user inputs the new password, doesn't have the HTML that I've personalized and I don't find where I can do set it.
Thanks for any help!
So, I've found it!
On Page Layout there are multiple Layouts associated with the User Flow.
I just added the custom page to the Layout Change password page and that's it.

Edit DocuSign Signing Landing Page

Once a user clicks on the email requesting they sign the document and is taken to the landing page; there is a message "Please Review & Act on These Documents".
Underneath there is a user image and next to it it says "Docusign" the "Mr" underneath it.
How do I get either this box to disappear or ideally edit it such that instead of it showing just "Mr" it shows the name of the user who has been messaged?
You can hide that green are box by modifying the signing resource file inside your branding.
For more details refer to page 28 and 29 of DS Signing Resource file
The top bold name is what you had put in the name of the user. That can be modified either when you send the envelope, if you are the sender, or if you are the signer, you need to modify it in your preference for your account (after you log in to the Developer Sandbox).
The "Mr" is the account name, which you have set for yourself when you created this account. To change it, you need to go to the admin and under account profile you can change it.
Hope that helps.

How Do I Add a User to My AAD Tenant via portal.azure.com?

At one point I created an AAD tenant & received a login of the form:
<username>#<mywebsite>.onmicrosoft.com
How do I add: <ANOTHER-user>#<mywebsite>.onmicrosoft.com using https://portal.azure.com?
Accessing your tenant:
IMPORTANT NOTE: You must be a global admin on your AAD tenant to perform these actions. If you created your tenant, you are a global admin by default.
Navigate to https://portal.azure.com & click "All services" in the ribbon on the left-hand side of your screen:
Start to type "azure active directory" into the search bar of the page that pops up. You will not need to type in the whole phrase to isolate AAD.
(Optional) Make sure the star next to Azure Active Directory is filled in to be able access AAD from the ribbon from image 1.
Click "Azure Active Directory":
In the resultant blade that pops up, click "Users" within the "Manage" section of the ribbon:
On this next blade click the "+ New user" button at the top. (Note that you cannot perform this step unless you are a global admin.):
Creating another user under your tenant:
IMPORTANT STEP: You should now be on the "User" blade, Enter the first/last name of the user you would like to add. Use the "User name" section to create the username. Here, the domain I created when I made my AAD tenant is buythingsfromus.onmicrosoft.com, and so I'm giving "Person McHuman" the username: phuman#buythingsfromus.onmicrosoft.com
Click the profile tab, and fill out the requested info, then press "Ok" at the bottom. When you're done, you should see "Configured" under the word "Profile."
(Optional) If you would like to give the user permissions to add more users, change this setting to "Global Admin." If you don't leave it as-is.
Click the checkbox to show the temporary password that has been generated for this user, and copy it to provide to them. In this example, when Person first signs in with her phuman#buythingsfromus.onmicrosoft.com address, they will need this temporary password in order to create their permanent password.
Press "Create"
Validating the user you just created:
You should be brought back to the blade from Image 6. However this time, you should see Person McHuman's name and new "USER NAME" listed here:
Give Person her new phuman#buythingsfromus.onmicrosoft.com username and temporary password (Nozo7286 in this case.) In this image, the right-hand side shows Person trying to login to https://portal.azure.com for the first time.
Ms. McHuman will need to enter her temporary password here, and then create a new permanent one. Once she presses "Sign in" she will be good to go.

Log into website from website

I have a webapp that saves the credentials (user & pass) for a website B. Is it possible to click on a link in A and have that sign me into site B in a new browser window?
For example: say A has my pinterest user & pass. If I click on a link in A that says "sign into pinterest" can that open a new windows and let me start browsing pinterest as if I signed in?
This is possible if the site in question gives you some sort of interface (like OAuth) to do that. You cannot just submit data for the user in the other website's regular login form. (assuming they have some CSRF protection, which they should.)

Resources