tests

Jenkins 打包 test 报错 处理方式

如题, 使用maven 打包, 有test报错, 影响不大, 但是不雅观 如图: 直接修改打包命令 mvn clean package -DskipTests 或者 mvn clean package -Dmaven.test.skip=true 或者 mvn clean package -Dmav ......
Jenkins 方式 test

SOEM的simple_test代码分析

安装soem 下载SOEM的源码,点击链接 下载windows下的插件,winpcap 安装winpcap,傻瓜式安装 解压代码包 windows下编译源代码 使用vs自带的make进行编译,我电脑安装有vs2022: 打开vs自带的环境控制台,切换到SOEM主站目录下 创建一个build目录,我们 ......
simple_test 代码 simple SOEM test

Shell test命令

Shell中的 test 命令用于检查某个条件是否成立,它可以进行数值、字符和文件三个方面的测试。 数值测试 参数说明 -eq 等于则为真 -ne 不等于则为真 -gt 大于则为真 -ge 大于等于则为真 -lt 小于则为真 -le 小于等于则为真 实例演示: num1=100 num2=100 i ......
命令 Shell test

test20230914

写在前面的话 今天考试没有挂分,考场的时候自认为思考得还算投入。希望以后考试的时候对于每一道题目都能有自己深度的思考。 今天考场估分 \(100+80+100+30=310\) , 实际得分 \(100+80+100+30=310,\text{rank2}\) 。 看了一下考试的题解啊,发现自己还是 ......
20230914 test

PentestGPT:A GPT-empowered penetration testing tool

一、What is PentestGPT? PentestGPT是一种由大型语言模型(LLMs)赋能的渗透测试工具。它旨在自动化渗透测试过程。它基于ChatGPT构建,并以交互模式运行,以指导渗透测试人员在整体进展和具体操作上。 General Design PentestGPT提供了一个统一的终端 ......

testing-code-测试代码unittest如何编写?

1 name_function.py函数 name_function.py用来获取人名,入参时选择姓、名、中间字三项(middle为可选入参项) 1 #!usr/bin/env/python 2 3 def get_formatted_name(first,last,middle=""): 4 if ......
testing-code unittest testing 代码 code

test0912

T2数组开小了,挂了50pts T1 预计:50pts 实际:50pts \(\mathcal O(n^2\log n)\) 是很好想的,枚举两个点 \(i,j\),每次有改变的只有中间的点,将 \(j\) 的贡献减去 \(i\) 的贡献即可 我们将每个点看成一个一个矩形,高为 \(a_i\),交换 ......
test 0912

test0911

考试分数为100+24+15+20,没有挂分,但考场写完 \(T1\) 后面的题就没有什么太大思路了 T1 预计:100pts 实际:100pts 显然对于一个选项的贡献为,选的个数 \(\times\) 选的概率,就是 \(a\times \frac{b}{n}\),答案即为 \(\sum_{i= ......
test 0911

test20230911

写在前面的话 今天考试心态不好,没有得分。\(100+36+0+40=176,\text{rank3}\) 。\(T3\) 读题读错耗费了一个多小时,所以对本场比赛不报什么希望了。之后的考试题目还是要读清楚一点。 考场的开题顺序是顺序开题,但是在进行改题之后认为开题顺序应该是 \(T1-T4-T2- ......
20230911 test

test20230912

写在前面的话 考场估分 \(100+100+20+30=250\) ,实际得分 \(0+90+20+30=140\) 。这是停课以来挂分最为严重的一次,值得深思。挂分的原因也比较令人头疼,就是数组开大导致的 \(\text{MLE}\) 。所以我决定以后的每一次考试都要测试使用的内存大小: fpri ......
20230912 test

Android Installation failed with message INSTALL_FAILED_TEST_ONLY

出现Android Installation failed with message INSTALL_FAILED_TEST_ONLY问题的解决方法: 打开grade.properties文件,在最底下加入:android.injected.testOnly=false ......

Go - test coverage

......
coverage test Go

关于 Angular testing 开发包里 fakeAsync 测试工具的用法

@angular/core/testing 是 Angular 框架提供的一个测试模块,用于帮助开发者编写单元测试和集成测试。其中的 fakeAsync 是一个非常有用的测试工具,它允许我们编写异步代码的测试,同时在测试中模拟时间的前进,使得测试用例的执行更加可控和可预测。 fakeAsync 函数 ......

Test3

方案 markdown+Typora + picGo + jsdelivr + github仓库 + bloghelper Typora: 本地 Markdown 编辑器,用于本地编写文档 PicGo:一个用于快速上传图片并获取图片 URL 链接的工具,可以与 Typora 集成,实现黏贴图片后自动 ......
Test3 Test

Test2

方案 markdown+Typora + picGo + jsdelivr + github仓库 + bloghelper Typora: 本地 Markdown 编辑器,用于本地编写文档 PicGo:一个用于快速上传图片并获取图片 URL 链接的工具,可以与 Typora 集成,实现黏贴图片后自动 ......
Test2 Test

test0908

T2大样例都过了还挂了,挂的还是前两个 $\text{subtask}$,又挂大分,总是有些东西不熟悉 ## T1 预计:100pts 实际:100pts $(a\&b)$ 告诉我们 $a$ 和 $b$ 哪些位都是 $1$,$(a\oplus b)$ 告诉我们 $a$ 和 $b$ 一些位其中有一个是 ......
test 0908

Proj CDeepFuzz Paper Reading: Metamorphic Testing of Deep Learning Compilers

## Abstract 背景:Compiling DNN models into high-efficiency executables is not easy: the compilation procedure often involves converting high-level model ......

test20230908

#### 写在前面的话 今天考试挂麻了,考场估分 $100+100+60+50=310$ ,考后得分 $100+70+60+0=230$ 。十分抽象的分数。还是有 $\text{rank2}$ ,之后需要更加细心才行。 # T1 ### 题目描述 现在给出 $x\& y$ 和 $x \oplus y ......
20230908 test

Idea中导入import org.junit.Test时飘红

转载自:https://blog.csdn.net/aahdjdb/article/details/132186198 如图,导入import org.junit.Test时飘红 解决方法: 1.选中FIle——Project Structure 2.选择——Libraries——Java 3.找到 ......
import junit Idea Test org

Proj CDeepFuzz Paper Reading: DeepMutation: Mutation Testing of Deep Learning Systems

## Abstract 本文:DeepMutation Github: https://github.com/berkuva/mutation-testing-for-DNNs Task: mutation testing framework specialized for DL systems t ......

Proj CDeepFuzz Paper Reading: Testing Deep Neural Networks

## Abstract 本文:DeepCover Github: https://github.com/TrustAI/DeepCover Task: propose 4 novel test criteria to test DNNs Method: inspired by MC/DC cover ......
CDeepFuzz Networks Reading Testing Neural

Proj CDeepFuzz Paper Reading: Software Testing with Large Language Model: Survey, Landscape, and Vision

## Abstract 本文: Task: Review on the use of LLMs in software testing Method: 1. analyzes 52 relevant studies ## 1. Intro ![](https://img2023.cnblogs.co ......

用友U8 OA test.jsp SQL注入漏洞

## 漏洞描述 用友 U8 OA test.jsp文件存在 SQL注入漏洞,由于与致远OA使用相同的文件,于是存在了同样的漏洞 ## 漏洞影响 用友 U8 OA ## 漏洞复现 fofa语法:title="用友U8-OA" 登录页面如下: ![](https://img2023.cnblogs.co ......
漏洞 test jsp SQL OA

Proj CDeepFuzz Paper Reading: Balancing Effectiveness and Flakiness of Non-Deterministic Machine Learning Tests

## Abstract 背景:In fact, some of the latest findings suggest that the existence of adversarial attacks may be an inherent weakness of deep learning mod ......

Proj CDeepFuzz Paper Reading: COMET: Coverage-guided Model Generation For Deep Learning Library Testing

## Abstract 背景:已有的方法(Muffin, Lemon, Cradle) can cover at most 34.1% layer inputs, 25.9% layer parameter values, and 15.6% layer sequences. 本文:COMET Gi ......

Postman 中 Tests 解密脚本 CryptoJS-AES-ECB-128

参考链接:http://jser.io/2014/08/19/how-to-use-aes-in-crypto-js-to-encrypt-and-decrypt Aug 19, 2014 //打印查看需解密的内容 console.log(pm.response.json().data) // 一般 ......

test20230905

#### 写在前面的话 $80+80+100+30=290 , \text{rank3}$ ,发现自己还是太菜了。 这次比赛挂大分,算下来掉了 $40$ 分。本质上还是我自己对于问题的考虑不够全面,思维不够严谨。不好评价。 ### T1 题目描述:现在有 $n$ 个区间,你需要选出一些区间,然后设这 ......
20230905 test

Proj CDeepFuzz Paper Reading: Differential Testing of Cross Deep Learning Framework APIs: Revealing Inconsistencies and Vulnerabilities

## Abstract 背景:目前对cross-framework conversion中的inconsistencies和security bugs的研究少有 本文:TensorScope Task: test cross-frame APIs in Machine Learning Librar ......

2023.9.4 Online test

#### A 有一家公司,现在有 $n(n\le 5e5)$ 人来应聘,每个人有两个属性 $a,b$。 表示他最多可以连续工作 $a$ 小时,表示它两次工作之间的间隔必须大于等于 $b$ 小时。 现在要雇佣最少的人,满足能够按某种排列无限工作。 若当前雇佣了若干人,能无限工作的条件是 $\sum a ......
Online 2023 test

Proj CDeepFuzz Paper Reading: DeepTest: automated testing of deep-neural-network-driven autonomous cars

## Abstract 本文: DeepTest Task: a systematic testing tool for DNN-driven vehicles Method: 1. generated test cases with real-world changes like rain, fo ......