当前位置:网站首页>Software testing assignment - the next day
Software testing assignment - the next day
2022-07-03 06:47:00 【Xiao Xie Bu touch Yu】
Software test job —— the second day
- Applet order test case ( Personal learning , A rookie , Welcome to discuss )

| Use case number | Use case title | project / modular | precondition | priority | testing procedure | Test data | Expected results | The actual result |
|---|---|---|---|---|---|---|---|---|
| test_01 | Shipped | Place an order | 1、 Enter applet 2、 There's plenty of stock | P0 | 1、 Authorized login 2、 Place an order 3、 payment | 1、 to grant authorization : yes 2、 Place an order :300 3、 payment : yes | 1、 Successfully authorized 2、 checkout success 3、 Successful payment 4、 Shipped | |
| test_02 | Not delivered ( No authorization ) | Place an order | 1、 Enter applet 2、 There's plenty of stock | P0 | 1、 Authorized login 2、 Place an order 3、 payment | 1、 to grant authorization : no 2、 Place an order : 3、 payment : | Without authorization , Login failed | |
| test_03 | Not delivered ( No order ) | Place an order | 1、 Enter applet 2、 There's plenty of stock | P0 | 1、 Authorized login 2、 Place an order 3、 payment | 1、 to grant authorization : yes 2、 Place an order : 3、 payment : | Landing successful , Enter product browsing , Exit end | |
| test_04 | Not delivered ( Insufficient inventory ) | Place an order | 1、 Enter applet 2、 stock 200 | P0 | 1、 Authorized login 2、 Place an order 3、 payment | 1、 to grant authorization : yes 2、 Place an order :300 3、 payment : | 1、 Successfully authorized 2、 Insufficient inventory , Order failure | |
| test_05 | Not delivered ( Failure to pay ) | Place an order | 1、 Enter applet 2、 There's plenty of stock | P0 | 1、 Authorized login 2、 Place an order 3、 payment | 1、 to grant authorization : yes 2、 Place an order :200 3、 payment : | 1、 Successfully authorized 2、 checkout success 3、 Failure to pay , To be paid |
- Register test cases ( Personal learning , A rookie , Welcome to discuss )

| Use case number | Use case title | project / modular | precondition | priority | testing procedure | Test data | Expected results | The actual result |
|---|---|---|---|---|---|---|---|---|
| enroll_01 | Registered successfully | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :a12345 3、 Verification Code :8888 | Registered successfully | |
| enroll_02 | Registration failed ( Cell phone number is empty ) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number : 2、 password :a12345 3、 Verification Code :8888 | Registration failed , The displayed mobile number cannot be empty | |
| enroll_03 | Registration failed ( The length of the password is 5) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :a1234 3、 Verification Code :8888 | Registration failed , Password length 6-16 And the password is a combination of English numbers | |
| enroll_04 | Registration failed ( The length of the password is 17) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :a1234511111111111 3、 Verification Code :8888 | Registration failed , Password length 6-16 And the password is a combination of English numbers | |
| enroll_05 | Registration failed ( All password combinations are numbers ) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :012345 3、 Verification Code :8888 | Registration failed , Password length 6-16 And the password is a combination of English numbers | |
| enroll_06 | Registration failed ( The password combination is all letters ) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :a12345 3、 Verification Code :8888 | Registration failed , Password length 6-16 And the password is a combination of English numbers | |
| enroll_07 | Registration failed ( Verification code error ) | register | Open the registration page | P0 | 1、 Enter phone number 2、 Enter the correct password 3、 Enter the correct verification code | 1、 cell-phone number :139******** 2、 password :a12345 3、 Verification Code :1111 | Registration failed , Verification code error |
deficiencies
effect : Convenient for review 、 Easy to carry out
Use case title : Expected results ( Test point )
Verification code test point :1、 It's empty 2、 correct 3、 error 4、 Be overdue
problem : The coverage of test points is not comprehensive
After modification
| Use case code | Use case title | project / modular | precondition | priority | testing procedure | Test data | Expected results | The actual result |
|---|---|---|---|---|---|---|---|---|
| enroll_01 | Registered successfully ( All correct data , The password for 6 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registered successfully | |
| enroll_02 | Registered successfully ( All correct data , The password for 16 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a123451234567890 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement v: agree! | Registered successfully | |
| enroll_03 | Registered successfully ( All correct data , The password for 10 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a123451234 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registered successfully | |
| enroll_04 | Registration failed ( The password is empty. ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password : 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt for password | |
| enroll_05 | Registration failed ( The password is simple ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :q1w2e3 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , The prompt password is too simple | |
| enroll_06 | Registration failed ( The password for 5 position Alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a1234 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_07 | Registration failed ( The password for 17 position Alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a1234512345678901 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_08 | Registration failed ( Passwords are pure numbers ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :012345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_09 | Registration failed ( The password is pure letters ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :abcdef 3、 Image verification code :8888 4、 SMS verification code 5、 Check the agreement : agree! : | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_10 | Registration failed ( Cell phone number is empty ) | Registration module | 1、 Open the registration interface | P1 | 1、 Cell phone number is empty 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number : | Registration failed , Prompt that the mobile number cannot be empty | |
| enroll_11 | Registration failed ( The mobile number has been registered ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt that the mobile number has been registered | |
| enroll_12 | Registration failed ( Non mobile number ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :12345678901 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt mobile number format error | |
| enroll_13 | Registration failed ( Verification code error ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8883 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt captcha error | |
| enroll_14 | Registration failed ( The verification code is out of date ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt that the verification code is expired | |
| enroll_15 | Registration failed ( The verification code is empty ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code : 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt verification code cannot be empty | |
| enroll_16 | Registration failed ( Agreement is not checked ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : Disagree | Registration failed , Prompt to check the agreement | |
| enroll_17 | Registration failed ( SMS verification code error ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code (123456) 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code :123455 5、 Check the agreement : agree! : | Registration failed , Prompt captcha error | |
| enroll_18 | Registration failed ( The SMS verification code is empty ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code (123456) 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt verification code cannot be empty | |
| enroll_19 | Registration failed ( SMS verification code expired ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 Enter phone number 2、 Input password 3、 Enter the image captcha (8888) 4、 Enter SMS verification code (123456) 5、 Check the agreement 6、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code :123456 5、 Check the agreement : agree! : | Registration failed , Prompt that the verification code is expired |
Revise again :
| Use case code | Use case title | project / modular | precondition | priority | testing procedure | Test data | Expected results | The actual result |
|---|---|---|---|---|---|---|---|---|
| enroll_01 | Registered successfully ( All correct data , The password for 6 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 All values are correct ( The password for 6 Digit alphanumeric password ) 2、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registered successfully | |
| enroll_02 | Registered successfully ( All correct data , The password for 16 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 All values are correct ( The password for 16 Digit alphanumeric password ) 2、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a123451234567890 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement v: agree! | Registered successfully | |
| enroll_03 | Registered successfully ( All correct data , The password for 10 Digit alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P0 | 1、 All values are correct ( The password for 10 Digit alphanumeric password ) 2、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a123451234 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registered successfully | |
| enroll_04 | Registration failed ( The password is empty. ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The password is empty. 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password : 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt for password | |
| enroll_05 | Registration failed ( The password is simple ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 Simple code 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :q1w2e3 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , The prompt password is too simple | |
| enroll_06 | Registration failed ( The password for 5 position Alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The password is... The password is 5 Digit alphanumeric password 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a1234 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_07 | Registration failed ( The password for 17 position Alphanumeric password ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The password is... The password is 17 Digit alphanumeric password 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a1234512345678901 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_08 | Registration failed ( Passwords are pure numbers ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The password is pure number 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :012345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_09 | Registration failed ( The password is pure letters ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The password is pure letters 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :abcdef 3、 Image verification code :8888 4、 SMS verification code 5、 Check the agreement : agree! : | Registration failed , Prompt password length 6-16 And the password is a combination of English numbers | |
| enroll_10 | Registration failed ( Cell phone number is empty ) | Registration module | 1、 Open the registration interface | P1 | 1、 Cell phone number is empty 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number : | Registration failed , Prompt that the mobile number cannot be empty | |
| enroll_11 | Registration failed ( The mobile number has been registered ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 Registered mobile number 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt that the mobile number has been registered | |
| enroll_12 | Registration failed ( Non mobile number ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 Wrong format mobile number 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :12345678901 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt mobile number format error | |
| enroll_13 | Registration failed ( Verification code error ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 Verification code error 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8883 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt captcha error | |
| enroll_14 | Registration failed ( The verification code is out of date ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The verification code is out of date 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt that the verification code is expired | |
| enroll_15 | Registration failed ( The verification code is empty ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The verification code is empty 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code : 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt verification code cannot be empty | |
| enroll_16 | Registration failed ( Agreement is not checked ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 Agreement is not checked 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : Disagree | Registration failed , Prompt to check the agreement | |
| enroll_17 | Registration failed ( SMS verification code error ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 SMS verification code error 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code :123455 5、 Check the agreement : agree! : | Registration failed , Prompt captcha error | |
| enroll_18 | Registration failed ( The SMS verification code is empty ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 The SMS verification code is empty 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code : 5、 Check the agreement : agree! : | Registration failed , Prompt verification code cannot be empty | |
| enroll_19 | Registration failed ( SMS verification code expired ) | Registration module | 1、 Open the registration interface 2、 Mobile number registration | P1 | 1、 SMS verification code expired 2、 Others are correct values 3、 Click Register for free | 1、 cell-phone number :139239***** 2、 password :a12345 3、 Image verification code :8888 4、 SMS verification code :123456 5、 Check the agreement : agree! : | Registration failed , Prompt that the verification code is expired |
Statement : Is to learn the dark horse test tutorial , If you are interested, you can click the link to learn Learning entrance
边栏推荐
- How does the insurance company check hypertension?
- [leetcode] day93 - intersection of two arrays II
- UTC time, GMT time, CST time
- 【无标题】
- Pytest -- write and manage test cases
- A letter to graduating college students
- [LeetCode]404. Sum of left leaves
- pytorch练习小项目
- 学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
- Journal quotidien des questions (11)
猜你喜欢

论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》

Dbnet: real time scene text detection with differentiable binarization

2022-06-23 VGMP-OSPF-域間安全策略-NAT策略(更新中)

Asynchronous programming: async/await in asp Net

Journal quotidien des questions (11)

Chapter 8. MapReduce production experience

Integration test practice (1) theoretical basis

2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)

Personally design a highly concurrent seckill system

DBNet:具有可微分二值化的实时场景文本检测
随机推荐
【无标题】5 自用历程
Example of joint use of ros+pytoch (semantic segmentation)
服务器如何设置多界面和装IIS呢?甜甜给你解答!
“我为开源打榜狂”第一周榜单公布,160位开发者上榜
Climb movie paradise 2021 hot
UTC时间、GMT时间、CST时间
2022 CISP-PTE(三)命令执行
DBNet:具有可微分二值化的实时场景文本检测
【无标题】8 简易版通讯录
2022-06-23 vgmp OSPF inter domain security policy NAT policy (under update)
ssh链接远程服务器 及 远程图形化界面的本地显示
JMeter linked database
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
Realize PDF to picture conversion with C #
The pressure of large institutions in the bear market has doubled. Will the giant whales such as gray scale, tether and micro strategy become 'giant thunder'?
[untitled]
Daily question brushing record (11)
The mechanical hard disk is connected to the computer through USB and cannot be displayed
[C /vb.net] convert PDF to svg/image, svg/image to PDF
Numerical method for solving optimal control problem (I) -- gradient method