主頁 >  其他 > 收銀臺專案——Web自動化測驗(簡單高效)

收銀臺專案——Web自動化測驗(簡單高效)

2022-09-14 06:25:23 其他

使用Java語言Spring框架實作的收銀臺專案,用戶完成注冊登錄后進入首頁,可以進行購買商品和瀏覽商品訂單的功能,收銀員可以對商品進行上架,更新商品,雙方都能夠瀏覽到商品資訊,

一,測驗介紹

使用Java語言實作Web自動化測驗,對各頁面的元素進行查找確認是否存在,對頁面中各功能按按鈕進行測驗,使用junit簡化測驗,直觀顯示哪些代碼通過哪些不通過,顯示不通過的原因,

相關技術堆疊

Java、Maven、seleniumWeb自動工具、junit單元測驗框架

二,收銀臺專案的主要功能:

三,Web自動化測驗

1)設計測驗用例

我的學習交流群:769146372 群里有技術指導一起交流學習~

二)撰寫測驗用例代碼

頁面測驗

對注冊頁面進行測驗,首先檢查注冊頁面元素是否正常展示,之后輸入用戶名和密碼,點擊注冊按鈕成功跳轉到登錄頁面為注冊成功

 

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 15:00
 */
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class RegisterTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    public static void getUrl(){
        driver.get("http://127.0.0.1:8080/");
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(2)")).click();
    }
 
    /**
     * 檢查頁面元素是否正確顯示
     */
    @Test
    @Order(1)
    public void checkHTMLElement(){
        String registerText = driver.findElement(By.cssSelector("body > div.內容區域 > form > h2")).getText();
        String nameText = driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).getAttribute("placeholder");
        String passwordText = driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).getAttribute("placeholder");
 
        Assertions.assertEquals("注冊",registerText);
        Assertions.assertEquals("用戶名",nameText);
        Assertions.assertEquals("密碼",passwordText);
    }
 
    /**
     * 檢查頁面能否注冊成功
     * 成功跳轉到登錄頁面
     */
    @Test
    @Order(2)
    public void checkRegister(){
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).sendKeys("xiaoliu");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).sendKeys("123");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
 
        //檢查是否跳轉成功
        String text = driver.findElement(By.cssSelector("body > div.內容區域 > form > h2")).getText();
        Assertions.assertEquals("登錄",text);
    }
}

 

進入專案首頁,對首頁個元素進行檢查,對各按鈕功能進行檢查,點擊按鈕是否跳轉到相應頁面

 

 

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 11:14
 */
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class FrontPageTest {
 
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    /**
     * 跳轉url
     */
    @BeforeAll
    private static void getUrl(){
//        driver.get("http://127.0.0.1:8080/login.html");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).sendKeys("xiaohu");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).sendKeys("123");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
    }
    /**
     *校驗首頁功能是否正常展示
     */
    @Test
    @Order(1)
    public void checkFrontPage(){
        String registerText = driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(2)")).getText();
        String updateRootText = driver.findElement(By.xpath("/html/body/div[1]/a[2]")).getText();
        String restProductText = driver.findElement(By.xpath("/html/body/div[1]/a[3]")).getText();
        String browseProductText = driver.findElement(By.xpath("/html/body/div[1]/a[4]")).getText();
        String updateProductText = driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(6)")).getText();
        String browseOrderText = driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(7)")).getText();
        String buyText = driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(8)")).getText();
 
        Assertions.assertEquals("注冊賬號",registerText);
        Assertions.assertEquals("切換賬號",updateRootText);
        Assertions.assertEquals("上架商品",restProductText);
        Assertions.assertEquals("瀏覽商品",browseProductText);
        Assertions.assertEquals("更新商品",updateProductText);
        Assertions.assertEquals("瀏覽訂單",browseOrderText);
        Assertions.assertEquals("購買商品",buyText);
    }
 
    /**
     * 檢查首頁功能是否正確
     */
    @Test
    @Order(2)
    public void checkPageRight(){
        //注冊賬號
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(4)")).click();
        //從上架商品頁面元素對應的文本,校驗文本是否符合預期
        String restProduct = driver.findElement(By.cssSelector("body > div.內容區域 > form > h2")).getText();
        Assertions.assertEquals("上架商品",restProduct);
    }
}

 

測驗商品上架頁面,檢查頁面元素是否正確展示,使用引數化對商品進行上架操作,檢查上架功能是否正常

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import com.webAutoTest.common.ParamsUtil;
import com.webAutoTest.model.Goods;
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
 
import java.util.stream.Stream;
 
 
/**
 * @author hu
 * @date 2022/9/12 11:57
 */
public class RestProductTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    public static void getUrl() throws InterruptedException {
//        driver.get("http://127.0.0.1:8080/login.html");
//        Thread.sleep(2);
//        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).sendKeys("xiaohu");
//        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).sendKeys("123");
//        Thread.sleep(2);
//        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(4)")).click();
    }
 
    @BeforeEach
    public void getUrlIn(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(4)")).click();
    }
 
    /**
     * 校驗商品頁面是否正常展示
     */
    @Test
    public void checkRestProduct(){
        String restText = driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).getText();
        String productNameText = driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).getAttribute("placeholder");
        String unitText = driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(5) > input[type=text]")).getAttribute("placeholder");
 
        Assertions.assertEquals("添加",restText);
        Assertions.assertEquals("名稱",productNameText);
        Assertions.assertEquals("單位",unitText);
    }
 
    /**
     * 添加商品之后會跳轉到瀏覽商品頁面
     */
    @ParameterizedTest
    @MethodSource
    public void addGoods(String goodsName,int count,String introduce,String unit,int price,int discount){
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).
                sendKeys(goodsName);
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).
                sendKeys(count+"");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(4) > input[type=text]")).
                sendKeys(introduce);
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(5) > input[type=text]")).
                sendKeys(unit);
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(6) > input[type=text]")).
                sendKeys(price+"");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(7) > input[type=text]")).
                sendKeys(discount+"");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
 
        //是否跳轉到瀏覽商品頁面
         String element = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > h2")).getText();
         Assertions.assertEquals("瀏覽商品",element);
    }
 
    public static Stream<Arguments> addGoods(){
        Goods goods = ParamsUtil.getGoodsName();
        Goods goods1 = ParamsUtil.getGoodsName();
        return Stream.of(Arguments.arguments(goods.getName(),goods.getCount(),goods.getIntroduce()
                        ,goods.getUnit(),goods.getPrice(),goods.getDiscount()),
        Arguments.arguments(goods1.getName(),goods1.getCount(),goods1.getIntroduce()
                        ,goods1.getUnit(),goods1.getPrice(),goods1.getDiscount()));
    }
}

測驗商品瀏覽頁面,檢查頁面元素是否存在,檢查下架功能是否正常

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 13:54
 */
public class BrowseProductTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
 
    /**
     * 跳轉到瀏覽商品頁面
     */
    @BeforeAll
    public static void getUrl(){
/*        driver.get("http://127.0.0.1:8080/login.html");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).sendKeys("xiaohu");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).sendKeys("123");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();*/
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(5)")).click();
    }
 
    /**
     * 瀏覽頁面元素是否展示元素
     */
    @Test
    public void checkHTMLElement(){
         String countText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > thead > tr > th:nth-child(1)")).getText();
         String introduceText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > thead > tr > th:nth-child(3)")).getText();
 
        Assertions.assertEquals("編號",countText);
        Assertions.assertEquals("介紹",introduceText);
    }
 
    /**
     * 檢查下架按鈕是否能正常使用
     */
    @Test
    public void checkPull(){
//        driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > tbody > tr:nth-child(1) > td:nth-child(8) > a")).click();
    }
 
}

測驗更新商品頁面,檢查頁面元素正確顯示,對更新功能進行測驗

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 15:34
 */
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class UpdateTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    public static void getUrl(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(6)")).click();
    }
 
    /**
     * 檢查頁面元素是否正確顯示
     */
    @Test
    @Order(1)
    public void checkHTMLElement(){
        String updateText = driver.findElement(By.cssSelector("body > div.內容區域 > form > h2")).getText();
        String idText = driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).getAttribute("placeholder");
 
        Assertions.assertEquals("更新商品",updateText);
        Assertions.assertEquals("商品 id",idText);
    }
 
    /**
     * 更新商品功能是否正常
     */
    @Test
    @Order(2)
    public void checkUpdateRight(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(5)")).click();
        String idText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > tbody > tr:nth-child(1) > td:nth-child(1)")).getText();
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(6)")).click();
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(2) > input[type=text]")).sendKeys(idText);
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(3) > input[type=text]")).sendKeys("西瓜");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(4) > input[type=text]")).sendKeys("50");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(5) > input[type=text]")).sendKeys("大西瓜");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(6) > input[type=text]")).sendKeys("斤");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(7) > input[type=text]")).sendKeys("2");
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div:nth-child(8) > input[type=text]")).sendKeys("70");
 
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
        //更新成功跳轉到瀏覽商品
        String browseText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > h2")).getText();
        Assertions.assertEquals("瀏覽商品",browseText);
    }
}

對購買商品頁面進行測驗,檢查頁面元素是否正常顯示,購買功能是否正常,成功跳轉到支付頁面,失敗回到購買頁面

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 16:09
 */
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class BuyTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    public static void getUrl(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(8)")).click();
    }
 
    /**
     * 檢查頁面元素是否正確顯示
     */
    @Test
    @Order(1)
    public void checkHTMLElement(){
        String text = driver.findElement(By.cssSelector("body > div.內容區域 > form > h2")).getText();
 
        Assertions.assertEquals("購買商品",text);
    }
 
    /**
     * 檢查購買功能
     */
    @Test
    @Order(2)
    public void checkBuyRight(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(5)")).click();
        String idText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > tbody > tr:nth-child(3) > td:nth-child(1)")).getText();
 
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(8)")).click();
        driver.findElement(By.cssSelector("body > div.內容區域 > form > div > input[type=text]")).sendKeys(idText + "-" + 10);
        driver.findElement(By.cssSelector("body > div.內容區域 > form > button")).click();
 
        //購買成功跳轉到支付頁面
 
        String text = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示區域 > a.btn.btn-confirm")).getText();
        Assertions.assertEquals("確認",text);
        //購買失敗跳轉到購買頁面
 
    }
}

測驗購買訂單頁面,檢查頁面元素是否正確展示,對支付功能進行測驗,成功跳轉到支付頁面進行支付操作

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 16:01
 */
public class BrowseOrder {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    public static void getUrl(){
        driver.findElement(By.cssSelector("body > div.導航欄 > a:nth-child(7)")).click();
    }
 
    /**
     * 檢查頁面元素是否正確顯示
     */
    @Test
    public void checkHTMLElement(){
        String orderText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > h2")).getText();
        String informationText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > thead > tr > th:nth-child(1)")).getText();
 
        Assertions.assertEquals("瀏覽訂單",orderText);
        Assertions.assertEquals("資訊",informationText);
    }
}

測驗支付頁面,進入瀏覽訂單頁面,點擊訂單中的未支付,進入支付頁面,對支付功能進行測驗,支付成功跳轉到瀏覽訂單頁面,取消支付清除此訂單并跳轉到瀏覽商品頁面

package com.webAutoTest.tests;
 
import com.webAutoTest.common.CommonDriver;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
 
/**
 * @author hu
 * @date 2022/9/12 17:06
 */
public class PayTest {
    private static ChromeDriver driver = CommonDriver.getDriver();
 
    @BeforeAll
    private static void getUrl() {
        driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > tbody > tr:nth-child(1) > td:nth-child(1) > p:nth-child(2) > a")).click();
        ;
    }
 
    /**
     * 對功能進行測驗
     */
    @Test
    public void CheckHTMLElement() {
        //取消支付訂單清除,跳轉到商品瀏覽頁面
        driver.findElement(By.cssSelector("body > div.內容區域 > div.展示區域 > a.btn.btn-confirm")).click();
        //檢查是否跳轉到商品瀏覽頁面
        String browseProductText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > h2")).getText();
        Assertions.assertSame("瀏覽商品",browseProductText);
        //確認支付跳轉到訂單瀏覽頁面
        driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > table > tbody > tr:nth-child(1) > td:nth-child(1) > p:nth-child(2) > a")).click();
        driver.findElement(By.cssSelector("body > div.內容區域 > div.展示區域 > a.btn.btn-confirm")).click();
        //檢查是否跳轉到訂單瀏覽頁面
        String browseOrderText = driver.findElement(By.cssSelector("body > div.內容區域 > div.展示串列 > h2")).getText();
        Assertions.assertEquals("瀏覽訂單",browseOrderText);
    }
}

三)測驗結果

程序中觀察測驗資料,執行緒等待,共通過測驗用例7,耗時25s

測驗用例全部通過

總結

1.使用selenium4web自動化工具和Junit5單元測驗框架,通過注解,提升測驗效率,

2.使用單例模式,將ChromeDriver私有化,保證所有的測驗都使用同一個實體物件,減少創建和銷毀物件的時間,

3.使用測驗套件,一次執行所有的測驗用例,

4.使用隱式等待和強制等待,提升自動化測驗用例的穩定性,

為什么使用強制等待,不使用顯示等待:

  • 顯示等待書寫麻煩
  • 顯示等待和隱式等待容易出現問題
  • 彈窗無法定位

5.使用螢屏截圖,方便定位問題的出處,

都是測驗黨,不定期分享干貨(只有軟體測驗行業的)

現在我邀請大家加入自己建的軟體測驗學習社群:【 769146372 】,備注“博客園樂卻思蜀”, 大家可以一起探討交流軟體測驗,共同學習軟體測驗技術、面試等軟體測驗方方面面,還會有免費直播課,識訓更多測驗技巧,我們一起進階Python自動化測驗/測驗開發,走向高薪之路,

如果我的博客對你有幫助、如果你喜歡我的博客內容,請 “點贊” “評論” “收藏” 一 鍵三連哦!

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/507172.html

標籤:其他

上一篇:嵌入式軟體開發新趨勢:DevOps

下一篇:WEB自動化-05-Cypress-元素互動

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • 2023年最新微信小程式抓包教程

    01 開門見山 隔一個月發一篇文章,不過分。 首先回顧一下《微信系結手機號資料庫被脫庫事件》,我也是第一時間得知了這個訊息,然后跟蹤了整件事情的經過。下面是這起事件的相關截圖以及近日流出的一萬條資料樣本: 個人認為這件事也沒什么,還不如關注一下之前45億快遞資料查詢渠道疑似在近日復活的訊息。 訊息是 ......

    uj5u.com 2023-04-20 08:48:24 more
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:47:46 more
  • vulnhub_Earth

    前言 靶機地址->>>vulnhub_Earth 攻擊機ip:192.168.20.121 靶機ip:192.168.20.122 參考文章 https://www.cnblogs.com/Jing-X/archive/2022/04/03/16097695.html https://www.cnb ......

    uj5u.com 2023-04-20 07:46:20 more
  • 從4k到42k,軟體測驗工程師的漲薪史,給我看哭了

    清明節一過,盲猜大家已經無心上班,在數著日子準備過五一,但一想到銀行卡里的余額……瞬間心情就不美麗了。最近,2023年高校畢業生就業調查顯示,本科畢業月平均起薪為5825元。調查一出,便有很多同學表示自己又被平均了。看著這一資料,不免讓人想到前不久中國青年報的一項調查:近六成大學生認為畢業10年內會 ......

    uj5u.com 2023-04-20 07:44:00 more
  • 最新版本 Stable Diffusion 開源 AI 繪畫工具之中文自動提詞篇

    🎈 標簽生成器 由于輸入正向提示詞 prompt 和反向提示詞 negative prompt 都是使用英文,所以對學習母語的我們非常不友好 使用網址:https://tinygeeker.github.io/p/ai-prompt-generator 這個網址是為了讓大家在使用 AI 繪畫的時候 ......

    uj5u.com 2023-04-20 07:43:36 more
  • 漫談前端自動化測驗演進之路及測驗工具分析

    隨著前端技術的不斷發展和應用程式的日益復雜,前端自動化測驗也在不斷演進。隨著 Web 應用程式變得越來越復雜,自動化測驗的需求也越來越高。如今,自動化測驗已經成為 Web 應用程式開發程序中不可或缺的一部分,它們可以幫助開發人員更快地發現和修復錯誤,提高應用程式的性能和可靠性。 ......

    uj5u.com 2023-04-20 07:43:16 more
  • CANN開發實踐:4個DVPP記憶體問題的典型案例解讀

    摘要:由于DVPP媒體資料處理功能對存放輸入、輸出資料的記憶體有更高的要求(例如,記憶體首地址128位元組對齊),因此需呼叫專用的記憶體申請介面,那么本期就分享幾個關于DVPP記憶體問題的典型案例,并給出原因分析及解決方法。 本文分享自華為云社區《FAQ_DVPP記憶體問題案例》,作者:昇騰CANN。 DVPP ......

    uj5u.com 2023-04-20 07:43:03 more
  • msf學習

    msf學習 以kali自帶的msf為例 一、msf核心模塊與功能 msf模塊都放在/usr/share/metasploit-framework/modules目錄下 1、auxiliary 輔助模塊,輔助滲透(埠掃描、登錄密碼爆破、漏洞驗證等) 2、encoders 編碼器模塊,主要包含各種編碼 ......

    uj5u.com 2023-04-20 07:42:59 more
  • Halcon軟體安裝與界面簡介

    1. 下載Halcon17版本到到本地 2. 雙擊安裝包后 3. 步驟如下 1.2 Halcon軟體安裝 界面分為四大塊 1. Halcon的五個助手 1) 影像采集助手:與相機連接,設定相機引數,采集影像 2) 標定助手:九點標定或是其它的標定,生成標定檔案及內參外參,可以將像素單位轉換為長度單位 ......

    uj5u.com 2023-04-20 07:42:17 more
  • 在MacOS下使用Unity3D開發游戲

    第一次發博客,先發一下我的游戲開發環境吧。 去年2月份買了一臺MacBookPro2021 M1pro(以下簡稱mbp),這一年來一直在用mbp開發游戲。我大致分享一下我的開發工具以及使用體驗。 1、Unity 官網鏈接: https://unity.cn/releases 我一般使用的Apple ......

    uj5u.com 2023-04-20 07:40:19 more