Skip to main content

Posts

Showing posts from June, 2023

Rails Framework

 Rail is a framework of ruby language that is used to create complete web applications and Restful API for mobile applications. It is an open-source web framework that follows the MVC design pattern, MVC means Model, View, and Controller. Model is used to create data access layer, the view is used to created user access layer and controller is used to create business access layer and application intermediate layer. MVC flow is different from their name because the first controller layer will start the application after that model and the view layer will be loaded. MVC is the modern design pattern, that follows by many application technologies. SPRING MVC in JAVA, ASP.NET MVC for .NET, Laravel and Codeigniter for PHP, DJANGO for Python, and Rail for Ruby. Rails Architecture:- How to install ruby:- gem install rails

What is Automation Testing?

................................................................................................................................................................... it is another way of software testing which provides automated software tools to execute test cases based on the test script. The test script will be written in the programming language according to automation software tools. Manual testing is better for the waterfall model but it will take more time to implement testing operations in the agile model because the agile model will use regression testing (continuous testing of the application from end to end ) which is not possible by manual testing. Name of automation tools:- 1 QTP (Quality Test pro):-                                     VB Script 2 Selenium Web Driver:-                              ...

TEST NG in Selenium?

It is an Automation Framework that provides a set of annotations to create and execute a test script. It provides a structured approach to writing code that is easily understandable by automation developers. it provides a test script, test code, and annotation to write a program. It is upgraded from Web Driver and a modified form of JMeter. TestNG Command, Locators are similar to Web Drivers. TESNG Provides HTML Test REPORT With all Test methods separately. Type of Annotation:- @Test // it represents Test Method @Test void fun1() { } ........................................................................................................................... @BeforeTest:- This annotation will be executed before the Test Method, It will be declared only once in one Test Class. @AfterTest:- This annotation will be executed after the execution of all Test methods .it will be declared only once in one test case. @Test:- It is used to create a Test Case Method, We can create more than ...

Django Introduction & Installation in Python

It is a Web-based Framework of Python which provides MVT(Model, View, Template) Design pattern to create a Dynamic web application. Django MVC is also known as MVT architecture. MVT means Model, View, and Template,   Model is used to provide a data access layer, View is used to provide business access layer or Code layer,  and Template is used to provide user access layer or design. Why Django is best as compare to other frameworks:- 1) Django contains predefined libraries to create secure, reliable, and Fast dynamic web applications. 2) Django Framework is Open Source so that we can easily customize the Django Framework program code and structure. 3) Django provides rapid application development tools because it has an inbuilt app to create a login , admin dashboard, user management (ACL access control list ),  Session management, etc. 4) Django Framework can easily be integrated with HTML, CSS, JS, and Jquery to design web pages. 5) Django Framework ...

What is Servlet or Web Servlet?

                                                                                                                                             Next Chapter It is a predefined Java Interface that provide   HttpServlet class that exists under javax.http.servlet package. This class will be compiled by Java Compiler and executed by JVM under  Servlet container by Web Server. A Servlet container is used to manage the servlet code that is written on the java programming language of an application, Webserver is only used to manage static files (HTML, JS, CSS, Jquery) and JSP Web page but dynamic content will be managed by Servle...

What is Selenium IDE ?

Selenium IDE Locator Example:- In this selenium IDE tutorial, I am providing a Live example of how to create a script manually. using locator. Locator is used to providing a complete path of HTML elements. open  http://shivaconceptsolution.com/test.html it is a testing page to do the practice of locators and commands. http://shivaconceptsolution.com/test.html TextField:-   it is used to take input from the user's HTml Tag   <input type="text"   /> Possible locator  name,id,css selector,xpath command:-    type Hyperlink or anchor tag or link tag :- it is used to perform navigation from one web page to another Html tag:-  <a href="www.google.com">Link Text</a> Possible locator:-  linkText,partialLinkText,xpath command:-  click class locator :-   if id and name field not found then we use class attribute using CSS selector:-   css= tag name.classname id locator using CSS selector: -...

How Selenium IDE Works?

Selenium IDE:- It is independent software tools of selenium which will be added on a web browser. initially, selenium IDE was developed for Firefox Browser but now it can be used in the chrome browser. it provides record and plays editor to record application before the condition and after condition. it generates test script by default using the JAVASCRIPT Program code. we can customize the generated script and create the script manually. parameters of selenium IDE:- selenium IDE has categorized into three mandatory component 1 command:- it is used to perform the dynamic operation in an application for example if we want to click then click command will be used. if we want to open any web application web page then the open command will be used. 2 target:- it is called locator which is used to find the element under web pages.we will define the complete path of the element. 3 value:- it is used to define the value of a particular element. it is optional for some command and mandato...

TESTNG Installation and display report

1) O pen eclipse -----> Help---->  Eclipse Marketplace . 1.1)  A new window would open up, wherein you need to type “TestNG” in the Find text box and click on the Go button. 1.2)  You will now see the search results with TestNG for Eclipse at the top. All you need to do now is click on the Install button next to it. 1.3)  Select the “ Keep my installation the same ” option and again click on the  Confirm  button. After successfully installing res-start eclipse. 2)  Create New JAVA Project -----> Build Path---> Add Selenium JAR File- 3)  Build Path---> Add Library 4)  Create a Package and Create TestNG Class 5)   Right Click on TestNG Class and Run by TestNG 6)   Refresh the Project folder to right-click on the project and choose the refresh option. 7)   it will create test-output and open index.html to right-click on the file and show the report if TestNG is not installed then you can follow another installa...

React-js Fundamental, Installation of React Js, What is React JS, Flow of React JS

ReactJS is a declarative, efficient, and flexible JavaScript library for building reusable UI components.  It is an open-source, component-based front-end library responsible only for the view layer of the application.  It was created by Jordan Walke , who was a software engineer at Facebook.  It was initially developed and maintained by Facebook and was later used in its products like WhatsApp & Instagram.  Facebook developed ReactJS in 2011 in its newsfeed section, but it was released to the public in the month of May 2013. Today, most of websites are built using MVC (model view controller) architecture.  In MVC architecture, React is the 'V' which stands for view, whereas the architecture is provided by the Redux or Flux . A ReactJS application is made up of multiple components, each component responsible for outputting a small, reusable piece of HTML code.   The components are the heart of all React applications . These components can be nested wit...

Django Project Flow, Django Project Architecture, How Django Framework Works Internally

Project --------> Project URL-----> App URL ------> View           Method 1) When we run the Django project then the first projec t urls.py will be loaded 2) Project urls.py file contains a collection of app URLs means if we create 5 different apps then five different app URLs will be declared here 3) app urls.py file contain the path of the method which will be defined under view What is the difference between project and app:-  A project is a collection of the app for example if we create a project for a feedback system then the student app, faculty app, admin app will be different components of the project. app contain views.py ,templates for html file,css file,image,js,jquery,model e tc means app is the complete component of project.                                           

Servlet Example in Java

Servlet is the special class in java which provide a set of web method to write server-side java program. Servlet class is used to implement dynamic functionality under the JAVA Web application. Servlet is also called Server Side Java Class. Java provides a HttpServlet class to implement Servlet Functionality. Servlet class will run under a web server or application server. means we should install Apache Web Server or Glassfish Web Server to execute Servlet Class class Classname extends HtttpServlet {      public void doPost(HttpServletRequest request,HttpServletResponse response)      {       }       public void doGet(HttpServletRequest request,HttpServletResponse response)      {       } } How to create Servlet Class Practically:- In Eclipse:- File   ---->   New Project---> Dynamic Web Project  ---->  Web Application-->Right-click on  Sourc...