├── .DS_Store ├── 20-21汪鹏老师班-平时成绩单.xlsx ├── CGIDECODE的完整源代码ideone_Zf96q5.cpp ├── Junit.pdf ├── NextDate.zip ├── README.md ├── RectManager.jar ├── RectManager.java ├── Sin.exe ├── WeekA.java ├── WeekB.cpp ├── box-black-box-gh-pages.zip ├── 单元测试和集成测试.pdf ├── 实验一 白盒测试实验一 指导书.pdf ├── 实验三 白盒测试实验三 指导书.pdf ├── 实验二 白盒测试实验二 指导书.pdf ├── 实验五 黑盒测试实验二 指导书.pdf ├── 实验四 黑盒测试实验一 指导书.pdf ├── 实验报告模板.docx ├── 性能测试.pdf ├── 机试说明.pdf ├── 白盒测试.pdf ├── 系统测试-确认测试-回归测试.pdf ├── 课程序言.pdf ├── 软件测试概述.pdf └── 黑盒测试.pdf /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/.DS_Store -------------------------------------------------------------------------------- /20-21汪鹏老师班-平时成绩单.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/20-21汪鹏老师班-平时成绩单.xlsx -------------------------------------------------------------------------------- /CGIDECODE的完整源代码ideone_Zf96q5.cpp: -------------------------------------------------------------------------------- 1 | // CgiDecode.cpp : Defines the entry point for the console application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "iostream" 6 | 7 | using namespace std; 8 | 9 | /*Get the hex value for a given character*/ 10 | int getHexValue(char c) 11 | { 12 | int hValue=-1; 13 | if (c>='0' && c<='9') 14 | { 15 | hValue = c -'0'; 16 | } 17 | else if (c>='A' && c<='F') 18 | { 19 | hValue = c-'A'+10; 20 | } 21 | else if (c>='a' && c<='f') 22 | { 23 | hValue = c-'a'+10; 24 | } 25 | return hValue; 26 | } 27 | 28 | /** Translate a string from the CGI encoding to plain ascii text. 29 | * '+' becomes space, %xx becomes byte with hex value xx, 30 | * other alphanumeric characters map to themselves. 31 | * Returns 0 for success, positive for erroneous input 32 | * 1 = bad hexadecimal digit 33 | */ 34 | int decode(char *encoded, char *decoded) 35 | { 36 | char *eptr = encoded; 37 | char *dptr = decoded; 38 | int ok=0; 39 | while (*eptr) 40 | { 41 | char c; 42 | c = *eptr; 43 | if (c == '+') 44 | { /* Case 1: '+' maps to blank */ 45 | *dptr = ' '; 46 | } 47 | else if (c == '%') 48 | { /* Case 2: '%xx' is hex for character xx */ 49 | int digit_high = getHexValue(*(++eptr)); 50 | int digit_low = getHexValue(*(++eptr)); 51 | if ( digit_high == -1 || digit_low==-1) { 52 | /* *dptr='?'; */ 53 | ok=1; /* Bad return code */ 54 | } else { 55 | *dptr = 16* digit_high + digit_low; 56 | } 57 | } else {/* Case 3: All other characters map to themselves */ 58 | *dptr = *eptr; 59 | } 60 | ++dptr; 61 | ++eptr; 62 | } 63 | *dptr = '\0'; /* Null terminator for string */ 64 | return ok; 65 | } 66 | 67 | 68 | int main() 69 | { 70 | int ok; 71 | char *input="http://w...content-available-to-author-only...s.org/index.pl?node=Snippets%20Section";/*This is a test case*/ 72 | char *output=(char*) malloc(strlen(input)+1); 73 | 74 | ok = decode(input, output); 75 | 76 | if (ok==0) 77 | { 78 | cout<<"Decode success! output:"<0) 81 | { 82 | cout<<"erroneous input"< 10000) { 31 | return -1; 32 | } else if (month > 12) { 33 | return -2; 34 | } else if (day > MonthDays[month - 1]) { 35 | return -3; 36 | } 37 | // 开始计算 38 | int totalDays = 0; 39 | for (int i = 1; i < year; i++) { 40 | if (((i % 4 == 0) && (i % 100 != 0)) || i % 400 == 0) { 41 | totalDays += 366; 42 | } else { 43 | totalDays += 365; 44 | } 45 | } 46 | for (int i = 1; i < month; i++) { 47 | if (i == 2) { 48 | if (((year % 4 == 0) && (year % 100 != 0)) || year % 400 == 0) { 49 | MonthDays[1] = 29; 50 | } 51 | } 52 | totalDays += MonthDays[i - 1]; 53 | } 54 | totalDays += day; 55 | int tempDay = totalDays % 7; 56 | if (tempDay == 0) { 57 | tempDay = 7; 58 | } 59 | return tempDay; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /WeekB.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/WeekB.cpp -------------------------------------------------------------------------------- /box-black-box-gh-pages.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/box-black-box-gh-pages.zip -------------------------------------------------------------------------------- /单元测试和集成测试.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/单元测试和集成测试.pdf -------------------------------------------------------------------------------- /实验一 白盒测试实验一 指导书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验一 白盒测试实验一 指导书.pdf -------------------------------------------------------------------------------- /实验三 白盒测试实验三 指导书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验三 白盒测试实验三 指导书.pdf -------------------------------------------------------------------------------- /实验二 白盒测试实验二 指导书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验二 白盒测试实验二 指导书.pdf -------------------------------------------------------------------------------- /实验五 黑盒测试实验二 指导书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验五 黑盒测试实验二 指导书.pdf -------------------------------------------------------------------------------- /实验四 黑盒测试实验一 指导书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验四 黑盒测试实验一 指导书.pdf -------------------------------------------------------------------------------- /实验报告模板.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/实验报告模板.docx -------------------------------------------------------------------------------- /性能测试.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/性能测试.pdf -------------------------------------------------------------------------------- /机试说明.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/机试说明.pdf -------------------------------------------------------------------------------- /白盒测试.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/白盒测试.pdf -------------------------------------------------------------------------------- /系统测试-确认测试-回归测试.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/系统测试-确认测试-回归测试.pdf -------------------------------------------------------------------------------- /课程序言.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/课程序言.pdf -------------------------------------------------------------------------------- /软件测试概述.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/软件测试概述.pdf -------------------------------------------------------------------------------- /黑盒测试.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/npubird/softwaretesting/54dada6f8c990526c7fd8f40305d4c84a9c90e0f/黑盒测试.pdf --------------------------------------------------------------------------------