-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wangzijia
authored and
wangzijia
committed
Jul 14, 2022
1 parent
c99fb5c
commit 53f78a9
Showing
39 changed files
with
1,474 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
import requests | ||
|
||
url = "http://www.baidu.com" | ||
|
||
payload= ( | ||
("a","1"), | ||
("a","2"), | ||
("a","3"), | ||
("b","5"), | ||
) | ||
|
||
print(payload) | ||
|
||
|
||
files=[ | ||
a = "abc" # a是临时变量 | ||
|
||
] | ||
headers = { | ||
'Cookie': 'BAIDUID=6C6C6030F1690FD7425DECAAA7BB547E:FG=1; BDSVRTM=0' | ||
} | ||
d = '{"key": "##a##" }' #d 是刚从数据库取出来的header 的json | ||
|
||
response = requests.request("POST", url, headers=headers, data=payload, files=files) | ||
new_d = d.replace("##a##",repr(str(a))) | ||
|
||
print(response.request.body) | ||
print(new_d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. | ||
from MyApp.models import * | ||
|
||
admin.site.register(DB_tucao) | ||
admin.site.register(DB_home_href) | ||
admin.site.register(DB_project) | ||
admin.site.register(DB_apis) | ||
admin.site.register(DB_apis_log) | ||
admin.site.register(DB_cases) | ||
admin.site.register(DB_step) | ||
admin.site.register(DB_project_header) | ||
admin.site.register(DB_host) | ||
admin.site.register(DB_project_host) | ||
admin.site.register(DB_login) | ||
admin.site.register(DB_global_data) | ||
import inspect,sys | ||
|
||
clsmemebers = inspect.getmembers(sys.modules[__name__],inspect.isclass) | ||
for name,cls in clsmemebers: | ||
admin.site.register(cls) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2 on 2021-06-21 07:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0028_db_project_global_datas'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='db_project', | ||
name='encryption', | ||
field=models.CharField(max_length=500, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2 on 2021-06-25 09:49 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0029_db_project_encryption'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='db_project', | ||
old_name='encryption', | ||
new_name='encyption_input', | ||
), | ||
migrations.AddField( | ||
model_name='db_project', | ||
name='encyption_insert', | ||
field=models.CharField(max_length=50, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.2 on 2021-07-06 03:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0030_auto_20210625_1749'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='db_step', | ||
name='sign', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AlterField( | ||
model_name='db_apis', | ||
name='sign', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AlterField( | ||
model_name='db_login', | ||
name='sign', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.2 on 2021-07-06 04:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0031_auto_20210706_1112'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='db_apis', | ||
name='sign', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='db_login', | ||
name='sign', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='db_step', | ||
name='sign', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.2 on 2021-07-06 04:05 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0032_auto_20210706_1204'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='db_apis', | ||
name='sign', | ||
field=models.CharField(default='no', max_length=10, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='db_login', | ||
name='sign', | ||
field=models.CharField(default='no', max_length=10, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='db_step', | ||
name='sign', | ||
field=models.CharField(default='no', max_length=10, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2 on 2021-08-18 10:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0033_auto_20210706_1205'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='db_project', | ||
name='cert', | ||
field=models.CharField(default='', max_length=200, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 2.2 on 2021-08-19 02:35 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0034_db_project_cert'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='db_apis', | ||
name='api_cert', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='db_apis_log', | ||
name='api_cert', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='db_login', | ||
name='cert', | ||
field=models.CharField(default='no', max_length=10, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='db_step', | ||
name='api_cert', | ||
field=models.CharField(max_length=10, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.2 on 2021-08-19 05:21 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0035_auto_20210819_1035'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='db_apis', | ||
old_name='api_cert', | ||
new_name='cert', | ||
), | ||
migrations.RenameField( | ||
model_name='db_apis_log', | ||
old_name='api_cert', | ||
new_name='cert', | ||
), | ||
migrations.RenameField( | ||
model_name='db_step', | ||
old_name='api_cert', | ||
new_name='cert', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2 on 2021-11-03 07:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0036_auto_20210819_1321'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='db_cases', | ||
name='concurrent', | ||
field=models.BooleanField(default=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2 on 2022-03-25 16:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyApp', '0037_db_cases_concurrent'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='DB_wqrf_step_report', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('step_id', models.CharField(default='', max_length=10)), | ||
('request_data', models.TextField(default='{}')), | ||
('response', models.TextField(default='')), | ||
('assert_result', models.CharField(default='{}', max_length=500)), | ||
], | ||
), | ||
] |
Oops, something went wrong.