Overview
Whenever there is login screen in the application, user can use credential for adding username and password. By using enable credential in target system you can automatically create user name and password and also generated xpath which is required.
Credential list Hierarchy
Org Artefact -> Target system -> enable credential
Org Artefact -> credentials
- Enable credential in Target system
- Xpath required for login Page
- Create credential
Here you can enable credential checkbox and submit in target system. After submitting, we will automatically navigate to credential screen. In credential screen, we can create object for user name and password.
In target screen when you click on checkbox for credential. One more check box appear i.e., xpath required for login. Checkbox the xpath required for login and submit in the target screen.
One more option is creating credential via credential screen. Go to ORG Artefact and click on credential -> create credential.
Pre-requisites
- Credential is added when there is login screen for any application.
- We have to create target system for the application which you want to automate and enable the credential.
- You can enable the xpath required for login if you want to automaticall generate xpath and add object and steps screen.
Enable credential in Target system
Here we are creating credential for Organgehrm website because to login to this website we require credential like username and password.
- Create target system OrgangeHrm
- Add system code and url of the website and enable the credential as shown in the above image
- Enable credential and click on submit
- Project and batch is created automatically
- Automatically create credential screen is open
- Click on Object of User name
- Click on create object
- Give username object details and click on create.
- You will navigate back to credential screen. Again click on Object of password.
- Repeat same steps to create password & login
- After adding objects, click on Object for username and select username.
- After adding objects, click on Object for Password and select Password object from the list.
- Add user name and password and click on create
Xpath required for login Page
Go to Artefact -> Target system -> create target system -> add system code and url and enable credential required and xpath required for login page.
- Project and batch created automatically with default values. Click on ok
- It will navigate to element extraction screen
- Select screen name, check box extract filtered objects download template.
- You will get filter file template
- Add username, password and login object name
- Click on choose file and select the updated filter file
- Enable Automatic creation of object and Steps and click on Submit.
- Automatically created
- Select header as breez automation file.
- Select Org Artefact and credential and create credential
- Click on Object for username and select username object
- Select username
- Select password
- Add username and password and click on create
- Successfully created
Create credential
Go to ORG Artefact -> credential -> create credential
Click on create
Note: Before add credential, You need to create object and steps as shown in the previous 4 and 5 topics.
- Select Object for username and password
- Create credential
- New credential is added
- Note: There can multiple username and password for the same application.