jeremyjia / Games

Home Page Link:
https://jeremyjia.github.io/Games/
3 stars 8 forks source link

基于剧本的测试用例研究 based on i525 #528

Open waynexw opened 3 years ago

waynexw commented 3 years ago
waynexw commented 3 years ago

{ "description":"test sample", "request": { "version": "0.0.25", "description": "Tiktok Music", "width": 800, "height": 600, "audio": "https://www.xzmp3.com/down/29d77a813106.mp3", "time": "16", "rate": "1", "backgroundColor": "10,200,100", "frames": [ { "number": "1", "time": "10", "objects": [ { "text": "flash the text", "x": 100, "y": 500, "size": 50, "color": "1,142,35" } ], "backgroundColor": "100,200,222" } ], "superObjects": [ { "type": "text", "attribute": { "x1": 20, "y1": 300, "x2": -1, "y2": -1, "size": 35, "color": "255,10,10", "name": "tiktok music" }, "frameRange": "(1,512)", "action": { "trace": "x=20", "step": -4 } } ]

} }

waynexw commented 2 years ago

{ "request": { "version": "0.0.15", "description": "Water Ripples", "width": 1024, "height": 768, "music": "1.mp3", "rate": "1", "frames": [ { "time": 5, "objects": [ { "text": "调用Python进行图片处理演示程序", "x": 50, "y": 200, "size": 60, "color": "110,120,180" }, { "text": "可爱的小猫咪-原图", "x": 180, "y": 700, "size": 55, "color": "156,85,166" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 5, "objects": [ { "text": "可爱的小猫咪-水波纹特效1", "x": 170, "y": 700, "size": 55, "color": "100,200,80" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 5, "objects": [ { "text": "可爱的小猫咪-水波纹特效2", "x": 170, "y": 700, "size": 55, "color": "180,100,220" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": "https://jeremyjia.github.io/Games/python/i140/f1.jpg" }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/water_effect.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "cat1.jpg", "opts": "-c 1 -w 4" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/water_effect.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "cat2.jpg", "opts": "-c 5 -w 8" } } } ] } }

waynexw commented 2 years ago

{ "request": { "version": "0.0.w03", "description": "Bar Charts", "width": 800, "height": 600, "music": "1.mp3", "rate": "1", "frames": [ { "time": 6, "objects": [ { "text": "Examplify the Chart Virant via Python", "x": 20, "y": 300, "size": 33, "color": "10,0,0" }, { "text": "Original Bar Chart", "x": 260, "y": 590, "size": 32, "color": "156,85,30" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 8, "objects": [ { "text": "Bar Chart with Optional Title", "x": 150, "y": 590, "size": 32, "color": "10,200,10" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 6, "objects": [ { "text": "Bar Chart with Water Ripple", "x": 190, "y": 590, "size": 32, "color": "255,240,255" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i542/bar_chart_excel.py", "input": "https://jeremyjia.github.io/Games/python/i542/1.xlsx", "output": "chart_ori.jpg", "opts": "" } } }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i542/bar_chart_excel.py", "input": "https://jeremyjia.github.io/Games/python/i542/1.xlsx", "output": "chart1.jpg", "opts": "-t Sales_Data_Chart" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/water_effect.py", "input": "https://jeremyjia.github.io/Games/python/i542/chart1.jpg", "output": "chart_e.jpg", "opts": "-c 1 -w 3" } } } ] } }

waynexw commented 2 years ago

{ "request": { "version": "0.0.w05", "description": "Stat Norm", "width": 800, "height": 600, "music": "1.mp3", "rate": "1", "frames": [ { "time": 6, "objects": [ { "text": "Examplify the stat NORM via Python", "x": 20, "y": 150, "size": 33, "color": "10,0,0" }, { "text": "Norm_A with mu=0, sigma=2", "x": 110, "y": 400, "size": 32, "color": "156,85,30" } ], "backgroundPicture": "${VAR_CAT_SRC}" }, { "time": 8, "objects": [ { "text": "Norm_B with Optional X_axis Title", "x": 90, "y": 260, "size": 32, "color": "0,200,198" } ], "backgroundPicture": "${VAR_CAT1}" }, { "time": 6, "objects": [ { "text": "Norm_C with range of 1 to 6 and different title", "x": 50, "y": 360, "size": 28, "color": "0,20,198" } ], "backgroundPicture": "${VAR_CAT2}" } ], "Macros": [ { "name": "VAR_CAT_SRC", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_a.jpg", "opts": "-m 0 -g 2 -s -6 -e 3 -xt TOY -yt DENSE" } } }, { "name": "VAR_CAT1", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_b.jpg", "opts": "-m 0 -g 2 -s -1 -e 1 -xt SALES" } } }, { "name": "VAR_CAT2", "value": { "type": "python", "attribute": { "script": "https://jeremyjia.github.io/Games/python/i140/stats_norm.py", "input": "https://jeremyjia.github.io/Games/python/i140/f1.jpg", "output": "norm_c.jpg", "opts": "-m 1 -s 1 -e 6 -yt INC" } } } ] } }

jeremyjia commented 1 year ago

{ "request": { "version": "0.0.24", "description":"JavaScript plugin test", "width": 1024, "height": 768, "music": "tts:锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦", "rate": "3", "frames": [ { "number": "1", "time": "30", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,30)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1645525032" }, ] } }

waynexw commented 1 year ago

{ "request": { "version": "0.0.24", "description":"Car", "width": 1024, "height": 768, "music": "tts:锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦", "rate": "3", "frames": [ { "number": "1", "time": "30", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,30)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1615509290" }, ] } }

waynexw commented 1 year ago

{ "request": { "version": "0.0.24", "description":"Solar System", "width": 1024, "height": 768, "music": "tts:太阳系部分构成,太阳,地球和月亮", "rate": "3", "frames": [ { "number": "1", "time": "30", "objects": [ { "text": "${VAR_TITLE}", "x": 200, "y": 100, "size": 50, "color": "95,35,135", "layer": 2 } ], "backgroundColor": "180,180,180" } ], "superObjects": [ { "type": "javascript", "frameRange": "(0,30)", "unit":1, "attribute": { "script": "${VAR_JS_PLUGIN}", "function": "animateFrame", "start": 1 }, "layer": 1 } ], "Macros": [ { "name": "VAR_TITLE", "value": "Comment插件引用测试" }, { "name": "VAR_JS_PLUGIN", "value": "commentID:1712468522" }, ] } }

jeremyjia commented 10 months ago

{"request": {version:"1.0",description:"jia"}}