主頁 >  其他 > Python測驗框架pytest(26)測驗報告Allure - 特性

Python測驗框架pytest(26)測驗報告Allure - 特性

2021-11-04 11:01:58 其他

目錄

1、Environment

1.1、添加Environment

1.2、解決組態檔被刪的問題

2、Categories

3、allure.step()

3.1、@allure.step()方式

3.2、with allure.step()方式

4、allure.attach

5、@allure.description()

6、@allure.title()

7、@allure.link()

8、@allure.issue()

9、@allure.testcase()

10、@allure.epic()/feature()/story()

11、@allure.severity()


1、Environment

Environment 是環境變數,報告默認是沒有任何變數引數的,是需要自己配置的,

1.1、添加Environment

通過創建 environment.properties 或者 environment.xml 檔案,并把檔案存放到測驗結果的檔案夾(執行腳本時,--alluredir 選項后指定的目錄),

例如:

pytest -n auto --alluredir=allure

存放在allure檔案夾里,

1、添加組態檔

方式一:environment.properties

檔案內容:

Browser=Chrome
Browser.Version=89.0.4389.128
Stand=Test
ApiUrl=127.0.0.1/login
python.Version=3.7.9

方式二:environment.xml

檔案內容:

<environment>
    <parameter>
        <key>Browser</key>
        <value>Chrome</value>
    </parameter>
    <parameter>
        <key>Browser.Version</key>
        <value>89.0.4389.128</value>
    </parameter>
    <parameter>
        <key>Stand</key>
        <value>Test</value>
    </parameter>
        <parameter>
        <key>ApiUrl</key>
        <value>127.0.0.1/login</value>
    </parameter>
        <parameter>
        <key>python.Version</key>
        <value>3.7.9</value>
    </parameter>
</environment>

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

3、報告展示效果:

注:environment.xml 方式,檔案內容含中文時,報告顯示正常,

注:environment.properties 方式,檔案內容含中文時,報告顯示亂碼,

1.2、解決組態檔被刪的問題

運行 pytest 生成 allure 報告時,有時候需要加引數 --clean-alluredir(清除之前的報告記錄),而組態檔(environment.properties 或 environment.xml)也會被洗掉,

解決方法:

將組態檔(environment.properties 或 environment.xml)存放于專案根目錄,運行報告之前,拷貝到報告目錄里即可,

專案目錄結構:

運行命令(組態檔 environment.properties)

pytest test_case.py --alluredir=allure --clean-alluredir
cp environment.properties ./allure/environment.properties
allure serve allure

運行命令(組態檔 environment.xml)

pytest test_case.py --alluredir=allure --clean-alluredir
cp environment.xml ./allure/environment.xml
allure serve allure

2、Categories

Categories 是分類(測驗用例結果的分類)

默認情況下,有兩類缺陷:

  • Product defects 產品缺陷(測驗結果:failed)

  • Test defects 測驗缺陷(測驗結果:error/broken)

可以創建自定義缺陷分類,將 categories.json 檔案添加到測驗結果的目錄即可(和 environment.properties 放同一個目錄),

categories.json 引數:

  • name:分類名稱,

  • matchedStatuses:測驗用例的運行狀態,默認["failed", "broken", "passed", "skipped", "unknown"],

  • messageRegex:測驗用例運行的錯誤資訊,默認是 .* ,是通過正則去匹配的,

  • traceRegex:測驗用例運行的錯誤堆疊資訊,默認是 .* ,是通過正則去匹配的,

categories.json檔案內容:

[
  {
    "name": "Ignored tests",
    "matchedStatuses": ["skipped"]
  },
  {
    "name": "Infrastructure problems",
    "matchedStatuses": ["broken", "failed"],
    "messageRegex": ".*signOut.*"
  },
  {
    "name": "Outdated tests",
    "matchedStatuses": ["broken"],
    "traceRegex": ".*FileNotFoundException.*"
  },
  {
    "name": "Product defects",
    "matchedStatuses": ["failed"]
  },
  {
    "name": "Test defects",
    "matchedStatuses": ["broken"]
  }
]

如圖所示:測驗用例報錯時,顯示效果

3、allure.step()

在 allure 報告中添加測驗用例步驟有兩種方式:

1、@allure.step() 這種方式會帶上函式的傳參和對應的值,

2、with allure.step() 這種方式代碼可讀性更好一點,但不會帶上函式里面的傳參和對應的值,

3.1、@allure.step()方式

allure 報告允許對每個測驗用例進行非常詳細的步驟說明,通過 @allure.step() 裝飾器,可以讓測驗用例在 allure 報告中顯示更詳細的測驗程序,

@allure.step() 只有一個引數,就是 title,輸入標題內容,allure 報告上就會顯示出來,

1、創建test_allure_step.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

@allure.step("第一步")
def step_one():
    pass

@allure.step("第二步")
def step_two_with_nested():
    step_three()

@allure.step("第三步")
def step_three():
    step_four_with_arguments(123456, 'AllTests')

@allure.step("第四步{0},{arg2}")
def step_four_with_arguments(arg1, arg2):
    pass

@allure.step("第五步")
def test_step_five():
    step_one()
    step_two_with_nested()

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

像Python字串一樣,支持位置引數和關鍵字引數

如:第四步{0},{arg2}

3.2、with allure.step()方式

1、創建test_allure_step2.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

def one():
    pass

def two_with_nested():
    three()

def three():
    pass

def four(arg1, arg2):
    pass

def five():
    one()
    two_with_nested()

def test_case():
    with allure.step("第一步"):
        one()

    with allure.step("第二步"):
        two_with_nested()

    with allure.step("第三步"):
        three()

    with allure.step("第四步"):
        four(arg1=123456, arg2='AllTests')

    with allure.step("第五步"):
        five()

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

執行第四步時,報告沒有帶上函式里面的傳參和對應的值,

4、allure.attach

allure 報告可以顯示許多不同型別的附件,這些附件可以補充測驗、步驟或裝置結果,

可以通過呼叫:

方式一:

allure.attach(body, name, attachment_type, extension)

引數:

  • body:要寫入檔案的原始內容,

  • name:附件名,

  • attachment_type:附件型別(是 allure.attachment_type 里面的其中一種),

  • extension:所創建檔案的擴展名,

allure.attachment_type提供的附件型別:

方式二:

allure.attach.file(source, name, attachment_type, extension)

引數:

source:包含檔案路徑的字串,

(其他引數相同)

1、創建test_allure_attach.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import pytest
import allure

@pytest.fixture
def attach_fixture_one(request):
    allure.attach('fixture前置操作,添加一個附件txt', 'fixture前置附件', allure.attachment_type.TEXT)

    def attach_fixture_two():
        allure.attach('fixture后置操作,添加一個附件txt', 'fixture后置附件', allure.attachment_type.TEXT)

    request.addfinalizer(attach_fixture_two)

def test_attach_fixture(attach_fixture_one):
    print("allure")

def test_attach_fixture_file():
    allure.attach('<head></head><body> a page </body>', 'page demo', allure.attachment_type.HTML)
    allure.attach.file('./demo.html', 'AllTests demo', attachment_type=allure.attachment_type.HTML)

創建demo.html檔案(存放到專案的根目錄上)

檔案內容:

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <title>軟體測驗</title>
  </head>
  <body>
    <h1>AllTests</h1>
  </body>
</html>

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

用例test_attach_fixture

用例test_attach_fixture_file,第一個附件為手寫的HTML,第二個附件是匯入的HTML檔案,

5、@allure.description()

添加足夠詳細的測驗用例描述,更加方便查看測驗步驟,

三種方式:

方式一:
@allure.description_html(str):傳一個HTML代碼組成的字串

方式二:
@allure.description(str)

方式三:
在測驗用例函式下方添加 """ """

1、創建test_allure_description.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

# 方式一
@allure.description_html("""
<h1>Test with some complicated html description</h1>
<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Age</th>
  </tr>
  <tr align="center">
    <td>William</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr align="center">
    <td>Vasya</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
</table>
""")
def test_html_description():
    assert True

# 方式二
@allure.description("""
多行測驗描述
這是一個@allure.description裝飾器
""")
def test_description_from_decorator():
    assert 42 == int(6 * 7)

# 方式三
def test_unicode_in_docstring_description():
    """
    多行測驗描述
    assert斷言
    """
    assert 42 == int(6 * 7)

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

方式一:

方式二:

方式三:

6、@allure.title()

測驗用例的標題可以通過特殊的方式變得更易讀,標題支持引數占位符并支持動態替換,

示例一:

1、創建test_allure_title.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import pytest
import allure

@allure.title("前置操作:登錄")
@pytest.fixture
def test_login(request):
    params = request.param
    name = params["username"]
    pwd = params["pwd"]
    allure.attach(f"測驗用例傳的引數{params}")
    print(name, pwd, params)
    yield name, pwd

@allure.title("登錄成功,測驗資料:{test_login}")
@pytest.mark.parametrize("test_login", [{"username": "admin", "pwd": "123456"}, {"username": "root", "pwd": "root"}], indirect=True)
def test_login_success(test_login):
    name, pwd = test_login
    allure.attach(f"賬號:{name},密碼:{pwd}")

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

示例二:

1、創建test_allure_title2.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import pytest
import allure

@allure.title("測驗標題引數化: {param1} + {param2}")
@pytest.mark.parametrize('param1,param2,expected', [
    (2, 2, 4),
    (1, 2, 5)
])
def test_with_parameterized_title(param1, param2, expected):
    assert param1 + param2 == expected

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

7、@allure.link()

鏈接(訪問鏈接)

裝飾器原始碼:

引數:

  • url:跳轉的鏈接,

  • name:顯示在 allure 報告的名字,如果不傳就是顯示完整的鏈接,

類似的裝飾器:

Bug鏈接:@allure.issue()

測驗用例鏈接:@allure.testcase()

1、創建test_allure_link.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

@allure.link('https://www.baidu.com/')
def test_with_link():
    pass

@allure.link('https://www.baidu.com/', name='百度一下')
def test_with_named_link():
    pass

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

無name引數

有name引數

8、@allure.issue()

鏈接(Bug鏈接)

裝飾器原始碼:

呼叫link(),但link_type=LinkType.ISSUE,

引數:

  • url:跳轉的鏈接,

  • name:顯示在 allure 報告的名字,如果不傳就是顯示完整的鏈接,

類似的裝飾器:

訪問鏈接:@allure.link()

測驗用例鏈接:@allure.testcase()

1、創建test_allure_issue.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

@allure.issue('https://www.baidu.com/')
def test_with_issue():
    pass

@allure.issue('https://www.baidu.com/', 'BUG鏈接')
def test_with_named_issue():
    pass

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

無name引數

有name引數

9、@allure.testcase()

鏈接(測驗用例鏈接)

裝飾器原始碼:

呼叫link(),但link_type=LinkType.TEST_CASE,

引數:

  • url:跳轉的鏈接,

  • name:顯示在 allure 報告的名字,如果不傳就是顯示完整的鏈接,

類似的裝飾器:

訪問鏈接:@allure.link()

Bug鏈接:@allure.issue()

1、創建test_allure_testcase.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

@allure.testcase('https://www.baidu.com/')
def test_with_testcase():
    pass

@allure.testcase('https://www.baidu.com/', '測驗用例地址')
def test_with_named_testcase():
    pass

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

無name引數

有name引數

10、@allure.epic()/feature()/story()

allure 標記裝飾器(可顯示在測驗報告上):

@allure.epic:敏捷里面的概念,定義史詩,往下是 feature,

@allure.feature:功能點的描述,理解成模塊,往下是 story,

@allure.story:故事,往下是 title,

示例一:

1、創建test_allure_epic_feature_story.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

def test_without_any_annotations_that_wont_be_executed():
    pass

@allure.story('story1')
def test_with_story1():
    pass

@allure.story('story2')
def test_with_story2():
    pass

@allure.feature('feature3')
@allure.story('story3')
def test_with_feature3_story3():
    pass

@allure.epic('epic4')
@allure.feature('feature4')
@allure.story('story4')
def test_with_epic4_feature4_story4():
    pass

@allure.epic('epic5')
@allure.feature('feature5')
class TestCase:
    @allure.story('story5_1')
    def test_with_story5_1(self):
        print("執行 test_with_story5_1")

    @allure.story('story5_2')
    def test_with_story5_2(self):
        print("執行 test_with_story5_2")

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

首頁FEATURES BY STORIES區域顯示所設定的標記

Behaviors欄目下,帶有標記的測驗用例顯示的標記層次順序

示例二:命令列運行,指定運行某個標記(epic、feature、story)

命令列引數:

  • --allure-epics

  • --allure-features

  • --allure-stories

1、創建test_allure_epic_feature_story2.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import pytest
import allure
import os

@pytest.fixture(scope="session")
def login_fixture():
    print("===前置操作-登陸===")

@allure.step("步驟1")
def step1():
    print("===操作步驟1===")

@allure.step("步驟2")
def step2():
    print("===操作步驟2===")

@allure.step("步驟3")
def step3():
    print("===操作步驟3===")

@allure.epic("總體描述1")
@allure.feature("測驗模塊1")
class TestCaseAll1:
    @allure.testcase("https://www.baidu.com/", "測驗用例")
    @allure.issue("https://www.baidu.com/", "Bug鏈接")
    @allure.title("用例標題")
    @allure.story("story1")
    @allure.severity("critical")
    def test_case1(self, login_fixture):
        print("===測驗用例1===")
        step1()
        step2()

    @allure.story("story2")
    def test_case2(self, login_fixture):
        print("===測驗用例2===")
        step1()
        step3()

@allure.epic("總體描述2")
@allure.feature("測驗模塊2")
class TestCaseAll2:
    @allure.story("story3")
    def test_case3(self, login_fixture):
        print("===測驗用例3===")
        step1()

    @allure.story("story4")
    def test_case4(self, login_fixture):
        print("===測驗用例4===")
        step3()

if __name__ == '__main__':
    pytest.main(['-s', '-q', '--alluredir', './allure'])
    os.system('allure -c ./allure')
    os.system('allure serve ./allure')

2、運行結果:

(1)運行全部:

執行完成后,自動打開瀏覽器加載測驗報告

(2)命令列指定運行:

1)、只運行epic名為“總體描述1”的測驗用例

pytest --alluredir ./allure --allure-epics=總體描述1
allure serve allure

運行結果:

2)、只運行feature名為“測驗模塊2”的測驗用例

pytest --alluredir ./allure --allure-features=測驗模塊2
allure serve allure

運行結果:

3)、只運行story1、story3的測驗用例(可以不用=號 空格也可以)

pytest --alluredir ./allure test_allure_epic_feature_story2.py --allure-stories story1,story3
allure serve allure

運行結果:

4)運行指定的feature+story的測驗用例(可以不用=號 空格也可以)

pytest --alluredir ./allure test_allure_epic_feature_story2.py --allure-features 測驗模塊2 --allure-stories story2
allure serve allure

運行結果:

11、@allure.severity()

用來標記用例級別,

Allure 提供的用例等級:

  • BLOCKER = 'blocker' 阻塞缺陷(功能未實作,無法下一步)

  • CRITICAL = 'critical' 嚴重缺陷(功能點缺失)

  • NORMAL = 'normal' 一般缺陷(邊界情況,格式錯誤)

  • MINOR = 'minor' 次要缺陷(界面錯誤與UI需求不符)

  • TRIVIAL = 'trivial 輕微缺陷(必須項無提示,或者提示不規范等)

一、示例:

1、創建test_allure_severity.py檔案

腳本代碼:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公眾號:AllTests軟體測驗
"""

import allure

def test_with_no_severity():
    pass

@allure.severity(allure.severity_level.BLOCKER)
def test_with_blocker_severity():
    pass

@allure.severity(allure.severity_level.CRITICAL)
def test_with_critical_severity():
    pass

@allure.severity(allure.severity_level.MINOR)
def test_with_minor_severity():
    pass

@allure.severity(allure.severity_level.TRIVIAL)
def test_with_trivial_severity():
    pass

@allure.severity(allure.severity_level.NORMAL)
def test_with_normal_severity():
    pass

@allure.severity(allure.severity_level.NORMAL)
class TestClassWithNormalSeverity(object):

    def test_inside_the_normal_severity_test_class(self):
        """
        測驗類優先級 normal
        """
        print("測驗類優先級 normal")

    @allure.severity(allure.severity_level.CRITICAL)
    def test_inside_the_normal_severity_test_class_with_overriding_critical_severity(self):
        """
        測驗類優先級 normal
        測驗用例優先級 critical
        """
        print("測驗類優先級 normal;測驗用例優先級 critical")

@allure.severity("normal")
def test_case_1():
    """ normal 級別測驗用例 """
    print("normal 級別測驗用例")

@allure.severity("critical")
def test_case_2():
    """ critical 級別測驗用例 """
    print("critical 級別測驗用例")

@allure.severity("blocker")
def test_case_3():
    """ blocker 級別測驗用例 """
    print("blocker 級別測驗用例")

@allure.severity("minor")
def test_case_4():
    """ minor 級別測驗用例 """
    print("minor 級別測驗用例")

@allure.severity("trivial")
def test_case_5():
    """ trivial 級別測驗用例 """
    print("trivial 級別測驗用例")

def test_case_6():
    """ 未標記 severity 的用例默認為 normal """
    print("未標記 severity 的用例默認為 normal")

@allure.severity("normal")
def test_case_7():
    """ normal 級別測驗用例 """
    assert (1 == 2)

@allure.severity("critical")
def test_case_8():
    """ critical 級別測驗用例 """
    assert (1 == 2)

@allure.severity("blocker")
def test_case_9():
    """ blocker 級別測驗用例 """
    assert (1 == 2)

2、輸入命令運行:

pytest -n auto --alluredir=allure
allure serve allure

運行結果:

Severity欄位標記用例級別

圖表里統計用例優先級

二、命令列引數運行:

根據優先級選擇需要運行的測驗用例

引數:

--allure-severities

例如:只運行severity=blocker、critical的測驗用例,命令列輸入

寫法一:

pytest test_allure_severity.py -sq --alluredir=allure --allure-severities=blocker,critical

寫法二:

pytest test_allure_severity.py -sq --alluredir=allure --allure-severities blocker,critical

運行結果:

按照需要運行的用例級別,運行了7條測驗用例,

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

標籤:其他

上一篇:好。什么叫好?

下一篇:Dapp區塊鏈 | wireshark抓包

標籤雲
其他(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