Articles on Trending Technologies

Technical articles with clear explanations and examples

Get Started With Selenium and Python Automation

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jun-2021 778 Views

We can work on Selenium with Python bindings. To get started with Selenium and Python automation in Windows operating system, we need to follow the below steps −Step 1 − Navigate to the link https://www.python.org/downloads/ to download Python.Step 2 − Click on Download Python . Once it is done, the Python executable file should be downloaded in our system.Step 3 − Python installation landing page is launched once the executable file is clicked. Click on the Install Now button.Step 4 − Python gets downloaded in the below path −C:\Users\\AppData\Local\Programs\Python\PythonStep 5 − We need to set the path of the Python ...

Read More

How To Use TestNG Framework For Creating Selenium Scripts?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jun-2021 398 Views

We can use the TestNG framework for creating Selenium scripts. TestNG is a testing framework built for the usage of both the developers and testers. The steps to integrate TestNG with Selenium scripts are listed below −Step1 − Click on the Help menu from Eclipse. Then click on Eclipse Marketplace.Step 2 − In the Eclipse Marketplace pop-up, input TestNG within the Find field and click on Go. Then click on Install.Step 3 − Accept the license agreement radiobutton and then click on Finish.Step 4 − Click on the Restart Now button.Step5 − Click on the File menu, then click on ...

Read More

Open New Browser Tab in Selenuim

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jun-2021 647 Views

Answer − We can open a new browser tab in Selenium webdriver. The methods - Keys.chord and sendKeys are required to achieve this task. The Keys.chord method is used to send multiple keys at once.We shall pass Keys.CONTROL and Keys.ENTER as parameters to this method. The complete string is again passed as a parameter to the sendKeys. Finally, the method sendKeys shall be applied on the link which we want to open in a new tabSyntaxString l = Keys.chord(Keys.CONTROL, Keys.ENTER); driver.findElement(By.xpath("//*[text()='Links']")). sendKeys(l);Code Implementationimport org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Keys; public class OpenNewTab{    public static ...

Read More

How to change the workflow in Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 289 Views

In a Collection, the requests are executed in the sequence in which they are created. However, a workflow can be changed in Postman. To illustrate it, let us take a Collection having four requests.To trigger that Collection, click on the arrow appearing to the right of the name of the Collection in the sidebar. The Run button appears, click on it.The Collection Runner window gets launched. Within the RUN ORDERsection, the sequence in which the requests shall get executed is displayed from the top to bottom. In our example, the order is −GETPOSTPUTDELClick on Run Collection1.A new window appears containing ...

Read More

GUID in Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 1K+ Views

GUID means Global Unique Identifier. It is in the form of a hexa-decima digit which is separated by hyphen. It helps to achieve distinctiveness due to this even if multiple people are creating the GUID simultaneously, the chance of having a duplicate GUID is rare.To generate a random value, using GUID, the format is −{    "name": "{{$guid}}" }On sending a request, it would produce a random value.GUID is a value with 128 bits having a structure defined in RFC4122. The structure of GUID is uncomplicated and simple for generation.The format of a GUID is shown below −xxxxxxxx-xxxx-Axxx-Bxxx-xxxxxxxxxxxxHere, A is ...

Read More

Postman Cheat Sheet

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 2K+ Views

This Postman Cheat Sheet is based on the official documentation page of Postman (which is available in the below link) and from the overall knowledge on Postman −https://learning.postman.com/docs/getting-started/introduction/a. VariablesAll the variables can be set up manually from the GUI of Postman and they have a defined scope. The values of the variables can also be set with the help of scripts written under the Pre-request Script or Tests tab.The variables can be added in the request URL, Headers and Body in the format as {{}}.Usage in request URL −https://{{domain}}about/{{id}} Usage in request Headers(key-value): X-{{key}}:valueUsage in request Body −{"registration_id": "{{Id}}", "firstname": ...

Read More

How to use Global Variable in Postman Request?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 5K+ Views

We can use a Global variable in Postman Request. . We can set, get and clear a Global variable at runtime using the scripts. This is achieved by the pm.* function. The script to use a Global variable can be included either in the Tests or Pre-Request Script tabTo set a Global variable, the script should be −pm.globals.set('', '')To get the value of a Global variable, the script should be −pm.globals.get('')To get the value of the Global variable in the Postman console, the script should be −console.log(pm.globals.get('')To delete a Global variable, the script is −pm.globals.unset('')Let us try to work with ...

Read More

How to Add Cookies in Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 6K+ Views

We can add cookies in Postman. To add a cookie, the below steps need to be followed −Step1 − Navigate to the Params tab below the address bar and then click on Cookies.Step2 − The MANAGE COOKIES window shall open. It lists down all the current cookies. To add a cookie, click on the Add Cookie button. An edit box with pre-populated values of the cookie are displayed. We can update the value and Save it.Step3 − Send the request to the server.Step4 − After the request has been successfully completed, the Cookies tab in the Response will show the ...

Read More

Global Scope Variables in Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 635 Views

The Global variables are the ones which can be used in every Environments and can be utilized for executing every request. Click on the eye icon available to the top right corner of the Postman application. In the below image, the Global variable g with value value1 is populated under the Globals section.Let us select another Environment – Environment_Test from the No Environment dropdown. Then again click on the eye icon. The Global variable g with value value1 should also be available for this Environment.Now, enter {{g}} in the address bar (with the Environment pointing to Environment_Test) and hover mouse ...

Read More

What are Snippets in Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 25-Jun-2021 3K+ Views

Snippets are small scripts used in Postman which are used to verify an API. These are pre-developed scripts that can be utilized directly. Thus it helps to save a good amount of time.Snippets can be used in the Pre-request Script and Tests tabs in Postman. Navigate to the Tests tab and the SNIPPETS section should be available to the extreme right of the screen. Click on any snippet to use it in a script.On clicking the link Get a variable, the below script gets populated in the Tests tab which can be used in our own script −pm.variables.get("variable_key");Navigate to the ...

Read More
Showing 41141–41150 of 61,248 articles
Advertisements