Articles on Trending Technologies

Technical articles with clear explanations and examples

Explain the working of Cypress.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 19-Nov-2021 229 Views

The below diagram explains the working of the Cypress −Automation tools like Selenium work by running outside the browser. However, Cypress has a different architecture. It runs within the browser. Cypress is based on the server - Node.js.There is a continuous interaction of Cypress with the Node.js and they work in – coordination with each other. As a result, Cypress can be utilized for testing both the front and backend of the application.Cypress is thus capable of handling the tasks performed in a real-time on the UI and simultaneously perform actions outside of the browser. The basic differences between Cypress ...

Read More

How to pass more than one header in a request in Rest Assured?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 19-Nov-2021 9K+ Views

We can pass more than one header in a request in Rest Assured. A web service can accept headers as parameters while making a service call. The headers are represented in a key-value pair.There is more than one way of passing multiple headers in Rest Assured −Passing them in a key-value format using the header method.Syntax Response r = given() .baseUri("https://www.tutorialspoint.com/") .header("header1", "value1") .header("header2", "value2") .get("/about/about_careers.htm");Passing them as a Map using the headers method.Syntax Map m = new HashMap(); m.put("header1", "value1"); m.put("header2, "value2"); Response r = given() .baseUri("https://www.tutorialspoint.com/") .headers(m) .get("/about/about_careers.htm");Passing them as a List using the headers method.Syntax List h ...

Read More

How to create a teamcity report in Cypress?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 19-Nov-2021 871 Views

We can create a teamcity report in Cypress. To install the package for teamcity report, run the command −   npm install cypress-teamcity-reporter --save-devTo generate a report for all specs in the integration folder of the Cypress project, run the command −   npx cypress run --reporter teamcity

Read More

How to create a Junit report in Cypress?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 19-Nov-2021 3K+ Views

We can create a Junit report in Cypress. To install the package for the JUnit report, run the command −   npm install cypress-junit-reporter --save-devExampleImplementation in cypress.json{ "reporter": "junit", "reporterOptions": { "mochaFile": "cypress/results/results.xml", "toConsole": true } }If we run multiple tests in a run and wish to have a unique report for individual spec files, we have to add [hash] in the mochaFile parameter in cypress.json.ExampleImplementation in cypress.json to avoid overriding report{ "reporter": "junit", ...

Read More

What is the difference between Business Intelligence and Predictive Analytics?

Ginni
Ginni
Updated on 19-Nov-2021 745 Views

Let us begin by learning about business intelligence.Business IntelligenceBusiness intelligence is an application-driven phase allowing organizations to analyze raw information from various sources, extracting vision that lead to higher effective business results. It is a set of tools and methods that analyze and transform raw information into actionable and coherent data for use in business analysis to support decision-making.Each business has strong transaction-oriented systems that save all information gathered from daily operations into repositories.It can stay competitive, businesses should rediscover and uses the data they influence, and this is where BI appears into play. Business intelligence can change vision from ...

Read More

What is the Example keyword in Cucumber?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 18-Nov-2021 6K+ Views

We can perform data-driven testing with the help of keyword Examples. We shall also take the help of keyword Scenario Outline to execute the same Scenario over multiple values.The data sets to be taken into consideration shall be passed below the Examples section one after another separated by | symbol. So, if there are three rows, we shall have three test cases executed from a Single scenario.Also, the Given step has the delimiter. It points to the header of the Examples table. SpecFlow shall put the values within this table prior to the task of matching a step with ...

Read More

What is the Background keyword in Cucumber?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 18-Nov-2021 11K+ Views

The Background keyword is applied to replicate the same steps before all Scenarios within a Feature File.Background RulesLet us describe some of the rules while applying Background −It should be used for defining simple steps unless we are forced to bring the application to a state which requires complicated steps to be carried out. As requested by the stakeholders of the project.It should be brief and realistic.All the Scenarios should also be short and to the point.Background ExampleLet us see an example where we have used Background steps to be executed before all the tests in the Feature File. For ...

Read More

How to use MSTest Annotations in specflow c#?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 18-Nov-2021 720 Views

We can use MSTest annotations in SpecFlow C# in hooks. Hooks are event bindings to add more automation logic at certain steps. For example, for any step which is needed to be run before a specific Scenario. To introduce hooks in the code we have to add the [Binding] attribute.Hooks have global access. But it can be made available to Features and Scenarios by declaring a scoped binding. The scoped binding can be filtered with the tags.SpecFlow+ Runner LimitationsIf we are executing tests from more than one thread with SpecFlow+ Runner, the After and Before hooks like the BeforeTestRun and ...

Read More

Gmail login fail using Selenium webdriver. Showing element not found for password.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 18-Nov-2021 862 Views

We can encounter Gmail login failure while using Selenium webdriver due to the error - element not found for password. This can be fixed by the methods listed below −Adding implicit wait - Implicit wait is applied to instruct the webdriver for polling the DOM(Document Object Model) for a specific amount of time while attempting to identify an element that is currently unavailable.The default value of the implicit wait time is 0. Once a wait time is set, it remains applicable throughout the entire life of the webdriver object. If an implicit wait is not set and an element is ...

Read More

How can I manually set proxy settings in Python Selenium?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 18-Nov-2021 1K+ Views

We can manually set proxy settings using Selenium webdriver in Python. It is done using the DesiredCapabilities class. We would create an object of this class and apply the add_to_capabilities method to it. Then pass the proxy capabilities as a parameter to this method.ExampleCode Implementationfrom selenium import webdriver from selenium.webdriver.common.proxy import ProxoxyType #add proxy’s ip and port p = '' pxy = Proxy() #set proxy type pxy.p_type = ProxyType.MANUAL #http proxy pxy.http_pxy = p #ssl proxy pxy.ssl_pxy = p #object of DesiredCapabilities c = webdriver.DesiredCapabilities.CHROME #set proxy browser capabilties pxy.add_to_capabilities(c) #set chromedriver.exe path ...

Read More
Showing 47181–47190 of 61,297 articles
Advertisements