We can create a Feature file for Cucumber. This can be done using the below steps−Step1− Click on the File menu in Eclipse. Then select the option New. Next click on OtherStep2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further steps.Step4− Select maven-archetype-quickstart template. Then click on Next.Step5− Add GroupId as Automation, Artifact Id as Cucumber, and proceed.Step6− A project should get created with a Cucumber-type project structure. The Cucumber-related scripts should be written within the src/test/java folder.Step6− Create a new package called features inside the src/test/java folder.Step7− Create a feature file ... Read More
We can add Cucumber Maven dependencies to a project. This can be done by following the below steps −Step1− Create a Maven project. The details on how to create a Maven project is discussed in detail in the below link −https://www.tutorialspoint.com/maven/index.htmStep2− Add the following dependencies in the pom.xml file in a project for Cucumber.Cucumber JVM - Java dependencyhttps://mvnrepository.com/artifact/io.cucumber/cucumber-javaCucumber JVM - JUnit dependencyhttps://mvnrepository.com/artifact/io.cucumber/cucumber-junitStep3− Click on the Project menu, then select the option Build Automatically.Step4− Click on the Maven Dependencies folder within the project. All the Cucumber-related dependencies which we have obtained via Maven should be visible.Read More
We can get a value from a nested list in Rest Assured. This is done with the help of the extract method. To grab the item, we have to use the path method(after the extract method) and pass the item in the response we want to obtain.We shall first send a GET request via Postman on a mock API URL and go through its Response having a nested list.ExampleCode Implementationimport org.testng.annotations.Test; import static io.restassured.RestAssured.given; import java.util.ArrayList; import io.restassured.RestAssured; import io.restassured.http.ContentType; public class NewTest { @Test public void getRequest() { //base URL ... Read More
We can use JsonPath in Rest Assured to extract value. This is done with the help of the jsonPath method (which is a part of the JsonPath class). After that, we need to use the get method and pass the key that we want to obtain from the JSON Response.We shall first send a GET request via Postman on an endpoint and observe the JSON response. Here, the keys are userId, id, title, and body.ExampleCode Implementationimport org.testng.annotations.Test; import static io.restassured.RestAssured.*; import io.restassured.RestAssured; import io.restassured.http.ContentType; import io.restassured.path.json.JsonPath; import io.restassured.response.Response; public class NewTest { @Test void getValueJsonPath() { ... Read More
We can use the then method in Rest Assured. It is mainly used to validate a Response obtained from a request. Thus, most assertions are included within a then method.SyntaxRestAssured.baseURI = "http://dummy.restapiexample.com"; //GET operation with then methods given() .when().get("/api/v1/employees").then() //verify status code as 404 .assertThat().statusCode(404);ExampleCode Implementationimport org.testng.annotations.Test; import static io.restassured.RestAssured.*; import io.restassured.RestAssured; public class NewTest { @Test void test() { //base URL RestAssured.baseURI = "http://dummy.restapiexample.com"; //input details for GET request given() .when().get("/api/v1/employee/1") ... Read More
We can create a Cucumber project template using Maven. This can be done by following the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further steps.Step4− Select maven-archetype-quickstart template. Then click on Next.Step5− Add GroupId as Automation, Artifact Id as Cucumber, and proceed.Step6− A project should get created with a Cucumber-type project structure. The Cucumber-related scripts should be written within the src/test/java folder.
We need to install the Natural plugin in Eclipse to work with Cucumber. To install it follow the below steps −Step 1 − Click on the Help menu in Eclipse, then select Eclipse MarketplaceStep2 − Enter Natural in the Find field and click on Go. Then click on Install.Step 3 − Proceed with the installation process.Step 4 − After installation is completed, click on the Restart Now button to restart Eclipse again.Step 5 − Again launch Eclipse, then click on the Help menu, then select Eclipse Marketplace. Enter Natural in the Find field and click on Go. Now, the Natural plugin shall be shown as ... Read More
Extraction is the service of extracting information from a source system for additional help in a data warehouse environment. It is the first procedure of the ETL process. After the extraction, this data can be changed and loaded into the data warehouse. The source systems for a data warehouse are usually transaction processing software. It is the source systems for a sales analysis data warehouse can be an order entry system that data all of the current order activities.Data extraction is where data is considered and moved through to fetch relevant information from data sources (such as database) in a ... Read More
An artificial neural network is a system located on the services of biological neural networks. It is a simulation of a biological neural system. The characteristic of artificial neural networks is that there are multiple architectures, which consequently needed several methods of algorithms, but despite being a complex system, a neural network is nearly simple.These networks are among the unique signal-processing technologies in the director’s toolbox. The area is highly interdisciplinary, but this method will restrict the look to the engineering outlook.In engineering, neural networks deliver two important functions as pattern classifiers and as non-linear adaptive filters. An Artificial Neural ... Read More
Operational DatabaseThe Operational Database is the source of data for the data warehouse. It contains detailed data used to run the normal operations of the business. The data generally changes as updates are created and reflect the latest value of the final transactions. It is also called OLTP (Online Transactions Processing Databases), which are used to manage dynamic data in real-time.The requirement of the operational database being simply controlled insertion and updating of information with efficient access to data manipulation and viewing mechanisms.Data WarehouseData Warehouse Systems serve users or knowledge workers for data analysis and decision-making. Such systems can construct ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP