• Pytest + request + allure implement interface automation framework


    catalogue preface: 1、 Brief introduction 2、 Code structure and framework process 3、 Detailed functions and instructions 4、 Allure report and email 5、 Subsequent optimization preface: Interface automation refers to the automation at the interface level of analog program. Because the interface is not easy to change and the maintenance cost is less, it is deeply […]

  • Analysis of common usage examples of request operation in laravel 5.1 framework


    This article describes the common usage of request operation in larave5.1 framework. Share with you for your reference, as follows: This article mainly talks about request, which is used whenever users visit our website functions. We can use some data in request to make appropriate response. 1 common attributes and methods We can get some […]

  • Ajax self study exercise request and display


    As follows:request.jsp Copy codeThe code is as follows: <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <title>Insert title here</title> <script language=”javascript”><!– function GetXmlHttpObject(){     var xmlHttp = null;     try{         xmlHttp = new XMLHttpRequest();     }catch(e){         try{             xmlHttp = new ActiveXObject(“Msxml2.XMLHTTP”);         }catch(e){             xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”); […]

  • JSP request (return string) usage example


    1. JSP code: Copy codeThe code is as follows: <%– Document : index Created on : 2009-10-4, 12:45:43 Author : lucifer –%> <%@page contentType=”text/html” pageEncoding=”UTF-8″%> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″> <title>JSP Page</title> </head> <body> get Scheme: <%=request.getScheme()%> <br> get Protocol: <%=request.getProtocol()%> <br> get Remote Address: <%=request.getRemoteAddr()%> […]

  • Ajax request nested Ajax request sample code


    Some time ago, when I was working on a project, I needed to integrate two XML files of provinces and cities in China into one JSON format data. When I wrote it by hand, I felt that there was too much data and it was easy to make mistakes. So I thought of using Ajax […]

  • JSP built in object: brief introduction and use of request and response


    Request object of JSP built-in objectThe client’s request information is encapsulated in the request object, through which we can understand the customer’s needs, and then make a response. It is an instance of the HttpServletRequest class.Serial number method description1 object getattribute (string name) returns the attribute value of the specified attribute2 enumeration getattributenames() returns an […]

  • Compatible multi browser Ajax request instance implemented by JS and jquery


    AJAX is often used by us, but most of the Ajax found on the Internet are not very compatible. Let’s change a good Ajax function with strong compatibility. At the same time, the jQuery Ajax introduced later is also very compatible. 1、 Ajax instance of pure JS implementation: Copy codeThe code is as follows: var […]

  • Method of node using request request


    Recently, node is used for server-side rendering. As an intermediate layer, it needs to request back-end interface and encapsulate server-side requests. Next, let’s learn how to use request. Basic use const request = require(‘request’) You can start using this package. The simplest way to use it is to request (URL) to initiate a get request […]

  • Summary of several ways of non form request action in. JSP


    1 Copy codeThe code is as follows: <a href=” userAction.do?flag=user_ Register “> register</a> 2 Copy codeThe code is as follows: <a href=”<s:url action=”userAction”> <s:param name=”flag” value=”‘user_regist’” /> < / s: URL > “> register</a>//Note that the action names here are all in the sturts.xml The name of the configuration in.[\s\S ]*\n 3 Copy codeThe code […]

  • Exploring Ajax cross domain request


    preface Ajax, praise in pale words: good. We can use ajax to achieve asynchronous access to data, reduce server computing time, greatly improve the user experience; we can use ajax to achieve small system combination of large system; we can also use ajax to achieve front-end optimization. (good row) Although AJAX is very good, there […]

  • asp.net Implementation of traversal request information operation example


    In this paper, an example is given asp.net Realize the information operation of traversing the request. The details are as follows: #Demand: In the server, all the data information sent from the client is obtained; #Scheme: 1. Server code public void ProcessRequest(HttpContext context) { //Print all parameter information context.Response.Write(“Params:”); for (int i = 0; i […]

  • Using git to deal with the problem of submitting conflicting pull requests in GitHub


    preface: Why write this article, because some time ago there was an open source GitHub project, a friend submitted a PR, looked at the next is to help optimize the code (thank you very much for this netizen). However, the PR submitted by him happens to have many conflicts with my project, which makes it […]