提交 fa8a57cf authored 作者: 黄承天's avatar 黄承天

[feature]

前端页面更新
上级 c6fb351f
......@@ -89,6 +89,7 @@ public class SeleniumExecutor {
public Report execute(TestCase testCase, String browser, List<Param> params, Boolean headless) {
//重置测试报告数据
clear();
log.info("静默模式:{}", headless);
try {
start();
startTime = new Date();
......@@ -425,7 +426,7 @@ public class SeleniumExecutor {
} catch (Exception e) {
log.error(e.getLocalizedMessage());
Arrays.stream(e.getStackTrace()).forEach(System.out::println);
message = e.getMessage();
message = e.getLocalizedMessage();
costTime = System.currentTimeMillis() - stepStartTime;
success = false;
}
......
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>seleniumide1</title><link href="static/css/app.52163bfd.css" rel="preload" as="style" crossorigin><link href="static/css/chunk-vendors.fef80702.css" rel="preload" as="style" crossorigin><link href="static/js/app.386e4ded.js" rel="preload" as="script" crossorigin><link href="static/js/chunk-vendors.dda05319.js" rel="preload" as="script" crossorigin><link href="static/css/chunk-vendors.fef80702.css" rel="stylesheet" crossorigin><link href="static/css/app.52163bfd.css" rel="stylesheet" crossorigin></head><body style="background-color: #eef1fa;"><div id="app"></div><script src="static/js/chunk-vendors.dda05319.js" crossorigin></script><script src="static/js/app.386e4ded.js" crossorigin></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>seleniumide1</title><link href="static/css/app.2a82befe.css" rel="preload" as="style" crossorigin><link href="static/css/chunk-vendors.fef80702.css" rel="preload" as="style" crossorigin><link href="static/js/app.08c5d19d.js" rel="preload" as="script" crossorigin><link href="static/js/chunk-vendors.dda05319.js" rel="preload" as="script" crossorigin><link href="static/css/chunk-vendors.fef80702.css" rel="stylesheet" crossorigin><link href="static/css/app.2a82befe.css" rel="stylesheet" crossorigin></head><body style="background-color: #eef1fa;"><div id="app"></div><script src="static/js/chunk-vendors.dda05319.js" crossorigin></script><script src="static/js/app.08c5d19d.js" crossorigin></script></body></html>
\ No newline at end of file
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;margin:0;padding:0;box-sizing:border-box;color:#2c3e50}#app /deep/ .el-header{padding:0;height:.447917rem;background-color:#fff;width:100vw;display:flex;align-items:center}.title{font-size:.177083rem;color:#383874}.back,.title{font-weight:bolder;padding-left:3%;cursor:pointer}.back{font-size:.130208rem;letter-spacing:.005208rem;z-index:1000}.back img{padding-bottom:.026042rem}#nav{padding:.15625rem}#nav a{font-weight:700;color:#2c3e50}#nav a.router-link-exact-active{color:#42b983}.input{float:right;margin-bottom:3%}.input /deep/ .el-button{background-color:#383874;color:#fff;letter-spacing:.005208rem;font-size:.104167rem}.table /deep/ .el-table .el-link{margin-right:.052083rem}.table /deep/ .el-dialog__wrapper{display:flex;justify-content:center;align-items:center}.table /deep/ .el-dialog .el-dialog__header{display:flex;margin-left:5%;padding-left:0;width:90%;border-bottom:.005208rem solid #5059d5}.table /deep/ .el-dialog .el-dialog__header /deep/ .el-dialog__title{color:#383874;font-size:.078125rem;font-weight:bolder;letter-spacing:.005208rem}.table /deep/ .el-dialog .el-dialog__footer /deep/ .dialog-footer .el-button{height:.177083rem;width:.416667rem;color:#fff;border-radius:.041667rem;border:none}.table /deep/ .el-dialog .el-dialog__footer /deep/ .dialog-footer .el-button--default{background-color:#383874}.table /deep/ .el-dialog .el-dialog__footer /deep/ .dialog-footer .el-button--primary{background-color:#ee4b4a}.table /deep/ .el-table .el-table__header .has-gutter tr th{background-color:#383874;color:#fff;letter-spacing:.005208rem}#components-layout-demo-basic[data-v-1ed0b193]{text-align:center}.ant-layout-header[data-v-1ed0b193]{font-size:2em;background-color:#fff;text-align:left}.tableTitle[data-v-1ed0b193]{display:inline-block;margin-left:45%;color:#383874;font-weight:700}.ant-layout-footer[data-v-1ed0b193]{line-height:1.5}.middle[data-v-1ed0b193]{background-color:#e7e4e4}.ant-layout-sider[data-v-1ed0b193]{background-color:#fff;line-height:.208333rem;height:4.583333rem;margin-top:.052083rem}.testExampleList[data-v-1ed0b193]{height:1.25rem;overflow:auto;overflow-y:overlay}.ant-layout-content[data-v-1ed0b193]{color:#fff;height:4.6875rem;line-height:.3125rem;position:relative;margin-left:.104167rem}.ant-layout[data-v-1ed0b193]{margin-bottom:.25rem}.ant-layout[data-v-1ed0b193]:last-child{margin:0}.script[data-v-1ed0b193]{display:inline-block;font-size:2em;color:#383874;font-weight:700}.uploadScript[data-v-1ed0b193]{height:.208333rem;width:.520833rem;line-height:.208333rem;margin-left:90%;margin-top:.078125rem;margin-bottom:.104167rem;border-radius:5%;border:none;background-color:#383874;cursor:pointer}.exampleHeader[data-v-1ed0b193]{height:.15625rem;width:70%;display:flex;justify-content:center;align-items:center;float:right;margin-top:.052083rem;margin-right:15%;border-bottom:.005208rem solid #383874}.square[data-v-1ed0b193]{height:.0625rem;width:.0625rem;background-color:#383874}.testExampleTitle[data-v-1ed0b193]{width:70%;margin-left:.026042rem;margin-right:.026042rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.testExampleTitle[data-v-1ed0b193]:hover{cursor:pointer;color:#00bfff}.allPlay[data-v-1ed0b193]{height:.104167rem;width:.104167rem;cursor:pointer}.example[data-v-1ed0b193]{height:auto;width:60%;display:flex;justify-content:center;align-items:center;float:right;margin-right:15%;border-bottom:.005208rem dashed #383874}.circle[data-v-1ed0b193]{height:.041667rem;width:.041667rem;background-color:#383874;border-radius:50%}.exampleName[data-v-1ed0b193]{width:60%;margin-left:5%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exampleName[data-v-1ed0b193]:hover{color:#00bfff;cursor:pointer}.playBtn[data-v-1ed0b193]{margin-left:5%;height:.078125rem;width:.078125rem;cursor:pointer}[data-v-1ed0b193] .ant-table-header{background-color:#383874}[data-v-1ed0b193] .ant-table-header .ant-table-thead th{color:#fff;background-color:#383874;text-align:center}[data-v-1ed0b193] .ant-table-tbody td{text-align:center}[data-v-1ed0b193] .ant-modal{width:30%!important}.ant-form-item[data-v-1ed0b193]{display:flex;justify-items:center}[data-v-1ed0b193] .ant-form-item .ant-form-item-label{display:inline-block;width:40%;text-align:left}[data-v-1ed0b193] .ant-form-item .ant-form-item-label label{color:#383874}[data-v-1ed0b193] .ant-form-item .ant-form-item-control-wrapper{display:inline-block;width:60%}.cookieTitle[data-v-1ed0b193]{margin-left:2%;color:#383874}.ant-radio-group label[data-v-1ed0b193]{color:#383874}[data-v-1ed0b193] .ant-modal-footer{display:flex;justify-content:center}[data-v-1ed0b193] .cookieKey .ant-form-explain{margin-left:5%}.testNameTitle[data-v-1ed0b193]{margin-left:10%}.scriptUploadTitle[data-v-1ed0b193]{margin-top:10%;margin-bottom:10%;margin-left:30%}.testName[data-v-1ed0b193]{width:.520833rem;text-align:center;display:inline-block;color:#383874}.testNameInp[data-v-1ed0b193]{width:1.302083rem;border:none;border-radius:0;border-bottom:.005208rem solid #383874;display:inline-block}.scriptUpload[data-v-1ed0b193]{width:.520833rem;text-align:center;display:inline-block;color:#383874}.uploadBtn[data-v-1ed0b193]{border-radius:.052083rem;border-color:#383874;background-color:#fff;color:#383874}[data-v-1ed0b193] .upload .ant-upload-list-item-info{margin-left:22%}[data-v-1ed0b193] .upload .ant-upload-list-item-card-actions{right:50%}.dataCountBtn[data-v-1ed0b193]{height:.208333rem;width:.520833rem;margin-left:90%;background-color:#383874;color:#fff}.cookie[data-v-1ed0b193]{margin-top:10%;margin-left:10%}.cookieText[data-v-1ed0b193]{display:inline-block}.cookieInp[data-v-1ed0b193]{display:inline-block;width:.78125rem;margin-left:5%}.readBtn[data-v-9b5897ee]{margin-right:10%;color:#383874;background-color:#fff;border:none}.readBtn[data-v-9b5897ee]:hover{color:#00bfff}.deleteBtn[data-v-9b5897ee]{color:red;border:none}.return[data-v-c0192548]{text-align:left;margin-left:3%;color:#383874;font-size:1.5em;font-weight:700}.content[data-v-c0192548]{height:100%;width:80%;margin-top:.104167rem;margin-left:10%;text-align:left}h1[data-v-c0192548]{color:#383874;font-weight:700}.infoTitle[data-v-c0192548]{margin-top:.052083rem}.icon[data-v-c0192548]{display:inline-block;height:.052083rem;width:.026042rem;background-color:#383874}.baseInfo[data-v-c0192548]{margin-left:.026042rem;color:#383874;display:inline-block}.mainLine[data-v-c0192548]{margin-top:.052083rem;color:#383874}.secondLine[data-v-c0192548]{margin-top:.052083rem}.detailInfo[data-v-c0192548]{width:1.041667rem;margin-right:.520833rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ant-table-wrapper[data-v-c0192548]{margin-top:.104167rem}[data-v-c0192548] .ant-table-header{background-color:#383874}[data-v-c0192548] .ant-table-wrapper .ant-table-thead th{text-align:center;background-color:#383874;color:#fff}[data-v-c0192548] .ant-table-wrapper td{text-align:center}[data-v-c0192548] .ant-modal-content{width:100%;height:auto}.process-left /deep/ .el-table .el-table__body .el-table__row td{font-size:.104167rem;letter-spacing:.005208rem;overflow:hidden;word-wrap:nowrap}.process-left /deep/ .el-table .el-table__body .el-table__row td :first-child{color:#383874;font-weight:bolder}.process{display:flex;justify-content:space-around;margin-top:.182292rem}.process-left{position:relative;width:1.166667rem}.process-left .left-tabel{height:100%;overflow-y:scroll;width:100%}.process-left .single{background-color:#fff}.process-left ul{height:.28125rem;padding:0;margin:0;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:.104167rem;font-weight:bolder}.process-left ul li{cursor:pointer;width:50%;list-style:none;text-align:center}.process-left ul .success{color:#15b769}.process-left ul .wait{color:#bbb}.process-right{color:#383874;font-weight:bolder;font-size:.104167rem;width:8.020833rem;height:4.859375rem;flex-direction:column}.process-right,.process-right .right-header{display:flex;justify-content:space-between}.process-right .right-content{height:4.296875rem;width:100%;background-color:#2a2a30;color:#1f7d24;overflow-y:scroll}.process-right .right-content .font-content{margin:.104167rem;text-align:start;font-size:.130208rem;letter-spacing:.005208rem}.process-right .right-content .font-content span{margin-right:.052083rem}.process-right .right-bottom{display:flex;justify-content:flex-end}.process-right .right-bottom .bottom-font{margin-left:.625rem;color:#7778a3}#dataCount[data-v-d6e0efc2]{height:auto;width:50%;margin:5% auto;padding-top:.1%;padding-left:2%;padding-bottom:5%;background-color:#fff}h1[data-v-d6e0efc2]{margin-top:10%;text-align:left;color:#383874;font-weight:700;font-size:3em}.performanceTitle[data-v-d6e0efc2]{margin-top:10%}.exampleCountTitle[data-v-d6e0efc2]{text-align:left;color:#383874;font-weight:700;font-size:1.5em}.square[data-v-d6e0efc2]{display:inline-block;height:.078125rem;width:.5%;background-color:#383874}.exampleCountText[data-v-d6e0efc2]{margin-left:1%;display:inline-block;color:#383874}.detail[data-v-d6e0efc2]{width:90%;margin-left:12%;text-align:left}.detailData[data-v-d6e0efc2]{display:inline-block;width:24%;text-align:left;font-size:2em;color:#383874}[data-v-d6e0efc2] .ant-table-header{background-color:#383874}[data-v-d6e0efc2] .ant-table-thead th{color:#fff;background-color:#383874;text-align:center}[data-v-d6e0efc2] .ant-table-thead td{text-align:center}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(function(t){function e(e){for(var a,n,r=e[0],c=e[1],l=e[2],u=0,p=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(i,n)&&i[n]&&p.push(i[n][0]),i[n]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);d&&d(e);while(p.length)p.shift()();return o.push.apply(o,l||[]),s()}function s(){for(var t,e=0;e<o.length;e++){for(var s=o[e],a=!0,r=1;r<s.length;r++){var c=s[r];0!==i[c]&&(a=!1)}a&&(o.splice(e--,1),t=n(n.s=s[0]))}return t}var a={},i={app:0},o=[];function n(e){if(a[e])return a[e].exports;var s=a[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=a,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(s,a,function(e){return t[e]}.bind(null,a));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],c=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var d=c;o.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"0118":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAkCAYAAAAOwvOmAAAACXBIWXMAAAsSAAALEgHS3X78AAAD0klEQVRYw82Y73HbOBTEf9Lou9nA8ZQKgqvAdAVWBydWELqC0BWEbiCgKwhTgZEKjq7gJDYQqQLdl4XygqMi2ZZm8mY0oM0/WOxb7AMw2e12vCRyTwYU+jlgDvxpHnkGNkAAwlASeGFMTgWVe+ZADfx94JFn4P3I/7dACzRDyeosoA6AeRQT/VDSj7zjDJu35ta9wG1eDSr3LDTKK424iR/N/b7TuX4xemCl1PUaVAV80P01sBgbzFFQuacxH3oQW5k6cIc0M6K5TgPL1F7r0XIoaU8GlXtapWsLVENJm3tqddK8RLy5Z6mB1ENJp+98/BWw/4HKPRXwSYAKpaIDuqGk4ZUh5iPTC8Dr1k06yJ9ASSdP+vMvtY3Y6nljGNYKA2wLzK34p4kWIpV3YuhsgACUqgZodf2oSfRTCqfmupIJflOaWungLIASYEHaqjQbb5WlH+kTSyuhfidBu6Gk5kKRewKwVCq9yCgsUwsBepTr1qL5krFUJlqxdS3T3YNaqu1kmJ0VXu6Z554i92SxjTqM1ycwU8hIYxpXpmI0FsdMH70GtvKRDliK3k30GPnWneziTh8KwNzMKhvpBHlSmbGS6JSlTt8tAGbSD+oAIFMZWQlIZlz4U2w1wvdAqdISRtjp9P4+ZUbQrUw5DCVN7lnHgj41oHrlNJhRPIiBR2MVsXW63+iZkPxiMR5LrzOS2ZiaSe4pZualXtcbpfSL+UiRaG8p0JXp5MMBOVVDScg9O7FTSxoxVqb/29Sn9ogl8vsE7DqORu1SM7YfSoqhZALcxNJhrhsDImrV2X7jrBszz0PRq/PGOG905vWJ7wfDSjAEjMbMXGd62OWe3qTsH8OkM+lqNXMOOXcAJkb0H7XUqZMZmGndtbBMbUxHG6OxOfDVvOzt7EtSEB36KZHCKeGSlpnRiZMIa1mCO7Zs1TIHUxUcsDqwFr8xoj4IbigJkz8+7zLgu8wzi+Z5DNCZ6t9CGemAf4HnocRN1fk34ErG1o6486ViYVx9b+BTM5sQQx38qG8XZGluamBlcfy+SxelsDE1qZM1uAsBqoxfxYHXY+bZmHVNpVE05wYmcS+UhcasdsNLNg7dsc3jGTYOztrIdMSF75OljBNj1RsB1WaTardYy9TXpiPloTa7jAAUEmCWe4Jd4J/KjspWP5R7przZjHbn3LZ36mhs2+6Mwwdp523b9kQDzZEDDpcs5FZxZWAOOCJDV2864EhMrjFHOluxFA84VgeOgiJb9ijoQTuY1x8FpbsRjXjs0GwthpzYuOyh2QnHiymQtVnM9WNCPhb/ATU/8JW0aJ83AAAAAElFTkSuQmCC"},"0b47":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAiCAYAAADRcLDBAAAACXBIWXMAAAsSAAALEgHS3X78AAACpElEQVRYw7WYsXmjQBCFf9OAFJGaDqwOREhmrgJzKcnpKji5A11CKlTB4Yzs5A5wByglkirQJcN9o/UuWpC8GewC772dmX3Dw/l8ZsoI63wBzNWttkuKdsq7HnxByEczIAaeBpa+AxVQ+YK6CiKs8xhYA8sJJHfA+hoYJ4iwzufCaMnt47VLivUoECL9HpgZUyeglLlGM5RnFkAKPDu2Ke2S4ngVRFjnGbA11h1E1tIzfiJgBfwwpj6A2ARyAcKhwA5Y2Rh4BnNpBPInIP9BSAy0BoDvvuwHgMyFmAay65Ii6y8CNVEaAH7eCgBAGMeiQD9ewjpPL5SQNPyrFr11SZFeyZZR22RR+tAlRaSVWBkZkFneY6brC9BqRh6K6Pc+ShIQSCTrlNo42NnqxQz4E9Z5JUyvAakkVdHkA8lrPTYTtv5ZVMk81uo4ewrrPAokaHQsHCfG4AzYhnW+F3VdozKu40CqXD/2dyjRS6BxqSIk9ZZEAfCobjTcZ/SqxI75xlTiK4crRi62/KtBRD6LvhpENQVEdEcA711SuNJdx0oTGJG6uMPHT3LuxANr9HfawIjU9Fb2wGJAgf541wflPjAq2KPvWeBi72Fu9Tl16JKiCbqkaMQ52RaZH7KNt2vsDcf1YpbwPjC1CV2Gdb7yyPkT8K1LinREv1HarrWzalX1PIkFayxMUik21ZhzJqzzNfDL5sA1CNPYWIFMtHimeT7IFh4v6kSXFHvg1aj/+4H6P0aBrUEutRpd9VBpBA/Ab7H8Y+SPxZuYLeMn8+xqfmxATlKGN64tEncVS4YtLc9n4q6828BMmMwc6doDaaXczwca5Q8B0IxuiCUb1hZVxhSxzVAf6v1rQLV1qWGCGGBeAqVPHD2M/UmiGl/bids3yqN86j9XfVPW3Az51gAAAABJRU5ErkJggg=="},"0fb0":function(t,e,s){"use strict";s("7041")},"1faf":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAXCAYAAAARIY8tAAAACXBIWXMAAAsSAAALEgHS3X78AAAA1klEQVRIx7XVvRGCMBiA4TcevY7gBlqSjhEcgREspHaANDCB5yZ0aXEEN4AJYpPz+IfcfflKivfh5/iinHPsGa2LHHgBlbXmzs45BMYBWgJGbT3BKP621uQhwCFmfBWQiC8CUvFZQDI+AaTjAyBG/A/EigOoNH304x1QIjdlAmS9C0fgKQicE3/HNx8HqELXwdoTKOccWhdXoPbIB8isNa3YR7bWNP5VdcAFqLUuTmJATGTwo8VAJqtCGplddpLI4rqWQlYPHAlk80yeQUpRYIR8gSYE+AEJI3qRfS7MgQAAAABJRU5ErkJggg=="},2395:function(t,e,s){},3220:function(t,e,s){"use strict";s("ca0d")},"354f":function(t,e,s){"use strict";s("35c1")},"35c1":function(t,e,s){},"3fd7":function(t,e,s){},4678:function(t,e,s){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=o,t.exports=i,i.id="4678"},"56d7":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var a=s("2b0e"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("el-container",[a("el-header",["/Process"!=this.$route.path?a("div",{staticClass:"title",on:{click:t.back}},[a("span",[t._v("软件适配兼容性自动化测试系统")])]):t._e(),"/Process"==this.$route.path?a("div",{staticClass:"back",on:{click:t.back2}},[a("img",{attrs:{src:s("1faf"),alt:""}}),t._v(" 返回 ")]):t._e()]),a("el-main",[a("div",{staticClass:"contain"},[a("router-view")],1)])],1)],1)},o=[],n={name:"App",mounted:function(){},methods:{back:function(){this.$router.push("/")},back2:function(){this.$router.push("/Test")}},created:function(){var t=this;window.addEventListener("beforeunload",(function(){sessionStorage.setItem("store",JSON.stringify(t.$store.state))})),sessionStorage.getItem("store")&&this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(sessionStorage.getItem("store"))))}},r=n,c=(s("7c55"),s("2877")),l=Object(c["a"])(r,i,o,!1,null,null,null),d=l.exports,u=s("8c4f"),p=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"table"},[s("div",{staticClass:"input"},[s("el-button",{on:{click:t.create}},[t._v("新增项目")])],1),s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:""}},[s("el-table-column",{attrs:{prop:"id",label:"项目ID"}}),s("el-table-column",{attrs:{prop:"name",label:"项目名称"}}),s("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-link",{attrs:{type:"primary"},on:{click:function(s){return t.handleEdit(e.$index,e.row)}}},[t._v("查看")]),s("el-link",{attrs:{type:"danger"},on:{click:function(s){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),s("el-dialog",{attrs:{title:"新建项目",visible:t.dialogVisible,width:"30%",top:"0vh"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("el-input",{attrs:{placeholder:"请输入项目名称"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)],1)],1)},f=[],m=(s("b0c0"),s("ac1f"),s("5319"),s("5c96")),h=s.n(m),b={created:function(){this.init()},data:function(){return{tableData:[],multipleSelection:[],dialogVisible:!1,name:""}},methods:{init:function(){var t=this;this.$axios.getProject().then((function(e){t.tableData=[],t.tableData=e.data}),(function(t){}))},handleEdit:function(t,e){console.log(e.id),this.$store.commit("setId",e.id),this.$router.push("/Test"),console.log(this.$store.state.projectId)},handleDelete:function(t,e){var s=this;console.log(e.id),this.$axios.delProject(e.id).then((function(t){s.init(),Object(m["Message"])({message:"删除成功",type:"success",duration:1e3})}),(function(t){}))},handleSelectionChange:function(t){this.multipleSelection=t,console.log(this.multipleSelection)},create:function(){this.dialogVisible=!0},submit:function(){var t=this;this.name=this.name.replace(/\s+/g,""),""!=this.name&&null!=this.name?(this.dialogVisible=!1,this.$axios.postProject(this.name).then((function(e){console.log(e),t.init(),Object(m["Message"])({message:"新增成功",type:"success",duration:1e3})}),(function(t){}))):Object(m["Message"])({message:"项目名称不能为空",type:"error",duration:1e3})}}},A=b,v=(s("b319"),Object(c["a"])(A,p,f,!1,null,null,null)),g=v.exports,j=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"test"}},[s("a-layout",[s("a-layout-header",[s("h1",{staticClass:"tableTitle"},[t._v("测试报告")])]),s("a-layout",{staticClass:"middle"},[s("a-layout-sider",[s("div",{staticClass:"exampleHeader"},[s("div",{staticClass:"square"}),s("div",{staticClass:"testExampleTitle",attrs:{title:this.$store.state.projectName},on:{click:t.showAllExample}},[t._v(t._s(this.$store.state.projectName))]),s("img",{ref:"allPlayBtn",staticClass:"allPlay",attrs:{src:t.allPlayImg},on:{click:t.runAllTest}})]),t._l(t.receiveData.tests,(function(e,a){return s("div",{key:a,staticClass:"exampleList"},[s("div",{staticClass:"example"},[s("div",{staticClass:"circle"}),s("div",{staticClass:"exampleName",attrs:{title:e.name},on:{click:function(s){return t.showExample(e)}}},[t._v(t._s(e.name))]),s("img",{ref:"playBtnRef",refInFor:!0,staticClass:"playBtn",attrs:{src:t.playImg},on:{click:function(e){return t.runTest(e,a)}}})])])})),s("a-modal",{attrs:{title:"",maskClosable:!1,cancelText:"取消",okText:"确定"},on:{cancel:t.resetForm,ok:function(){t.onSubmitForm()&&t.ok()}},model:{value:t.envSet,callback:function(e){t.envSet=e},expression:"envSet"}},[s("a-form-model",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[s("a-form-model-item",{attrs:{label:"播放测试终端:",prop:"terminalType"}},[s("a-checkbox-group",{model:{value:t.form.terminalType,callback:function(e){t.$set(t.form,"terminalType",e)},expression:"form.terminalType"}},[s("a-checkbox",{attrs:{value:"本机"}},[t._v("本机")])],1)],1),s("a-form-model-item",{attrs:{label:"测试浏览器:",prop:"browserType"}},[s("a-checkbox-group",{model:{value:t.form.browserType,callback:function(e){t.$set(t.form,"browserType",e)},expression:"form.browserType"}},[s("a-checkbox",{attrs:{value:"uos"}},[t._v("uos")]),s("a-checkbox",{attrs:{value:"360"}},[t._v("360")]),s("a-checkbox",{attrs:{value:"chrome"}},[t._v("chrome")]),s("a-checkbox",{attrs:{value:"firefox"}},[t._v("firefox")])],1)],1),s("a-form-model-item",{attrs:{label:"",prop:"headlessType"}},[s("a-radio-group",{model:{value:t.form.headlessType,callback:function(e){t.$set(t.form,"headlessType",e)},expression:"form.headlessType"}},[s("a-radio",{attrs:{value:"false"}},[t._v("非静默测试")]),s("a-radio",{attrs:{value:"true"}},[t._v("静默测试")])],1)],1)],1)],1)],2),s("a-layout-content",[s("button",{staticClass:"uploadScript",on:{click:t.uploadScriptClick}},[t._v("导入脚本")]),s("a-modal",{attrs:{title:"新建测试",destroyOnClose:!0,cancelText:"取消",okText:"确定"},on:{ok:t.addTestBtn},model:{value:t.addTest,callback:function(e){t.addTest=e},expression:"addTest"}},[s("div",{staticClass:"scriptUploadTitle"},[s("div",{staticClass:"scriptUpload"},[t._v("脚本")]),s("a-upload",{staticClass:"upload",attrs:{action:"http://127.0.0.1:13500/project/upload/1",name:"file","before-upload":t.beforeUpload}},[s("button",{staticClass:"uploadBtn"},[t._v("上传"),s("a-icon",{attrs:{type:"upload"}})],1)])],1)]),s("router-view"),s("a-button",{staticClass:"dataCountBtn",on:{click:t.dataCountClick}},[t._v("数据统计")])],1)],1)],1)],1)},k=[],C=(s("d81d"),{name:"Test",data:function(){return{headers:{accept:"application/json","Content-Type":"multipart/form-data"},receiveData:{},playImg:s("bf2e"),allPlayImg:s("0b47"),allPlayBtn:!0,envSet:!1,addTest:!1,testAllSet:{terminal:[],browser:[]},exampleIndex:-1,terminalOptions:["本机"],testExampleCache:[],file:"",cookie:{},form:{terminalType:[],browserType:[],cookieKey:"",cookieValue:"",headlessType:""},rules:{terminalType:[{type:"array",required:!0,message:"请配置终端",trigger:"change"}],browserType:[{type:"array",required:!0,message:"请配置浏览器",trigger:"change"}],cookieKey:[{required:!1,message:"请输入key",trigger:"blur"}],cookieValue:[{message:"请输入Value",trigger:"blur"}],headlessType:[{required:!0,message:"请配置是否需要静默测试",trigger:"change"}]}}},methods:{runTest:function(t,e){t.target.getAttribute("src")===s("bf2e")&&(this.envSet=!0),this.exampleIndex=e},runAllTest:function(t){t.target.getAttribute("src")===s("0b47")&&this.receiveData.tests.length>0&&(this.envSet=!0)},showExample:function(t){for(var e=[],s=0;s<this.testExampleCache.length;s++)this.testExampleCache[s].name===t.name&&e.push(this.testExampleCache[s]);this.$store.state.testExample=e},showAllExample:function(){this.$store.state.testExample=this.testExampleCache},onSubmitForm:function(){var t=!1;return this.$refs.ruleForm.validate((function(e){t=!!e})),t},resetForm:function(){this.$refs.ruleForm.resetFields()},ok:function(){var t=this;if(-1===this.exampleIndex?(this.$store.state.scriptDataExample=[],this.receiveData.tests.map((function(e,s){t.$store.state.scriptDataExample.push(e)}))):(this.$store.state.scriptDataExample=[],this.$store.state.scriptDataExample.push(this.receiveData.tests[this.exampleIndex])),this.testAllSet.browser=this.form.browserType,this.$store.state.browserConfig=this.testAllSet.browser,this.$store.state.headless="false"!=this.form.headlessType,this.cookie.cookieKey=this.form.cookieKey,this.cookie.cookieValue=this.form.cookieValue,""==this.cookie.cookieKey&&""!=this.cookie.cookieValue)return this.rules.cookieKey[0].required=!0,this.onSubmitForm(),void(this.rules.cookieKey[0].required=!1);this.$store.state.cookie=this.cookie,this.envSet=!1,this.$router.push({path:"/Process"})},uploadScriptClick:function(){this.addTest=!0},addTestBtn:function(){var t=this;this.addTest=!1;var e=new XMLHttpRequest,s=new FormData,a=this.$store.state.projectId;s.append("file",this.file),e.open("post","http://127.0.0.1:13500/project/upload/"+a),e.send(s),e.onload=function(){200===e.status&&(t.receiveData=JSON.parse(e.responseText),t.$store.state.scriptData=t.receiveData)},location.reload()},beforeUpload:function(t){return this.file=t,!1},dataCountClick:function(){this.$store.state.exampleIdList.length>0?this.$router.push({path:"/dataCount"}):alert("请选择用例")}},mounted:function(){var t=this;this.$axios.getDetail(this.$store.state.projectId).then((function(e){t.$store.state.testExample=[],t.$store.state.projectName=e.data.name;for(var s=0;s<e.data.reports.length;s++){var a={model:"天玥TR1252",cpu:"飞腾FT-2000"};a.key=s,a.id=e.data.reports[s].id,a.name=e.data.reports[s].name,a.os=e.data.reports[s].os,a.browser=e.data.reports[s].browser,a.startTime=e.data.reports[s].startTime,a.costTime=e.data.reports[s].costTime,a.steps=e.data.reports[s].steps,a.total=e.data.reports[s].total,a.success=e.data.reports[s].successes,t.$store.state.testExample.push(a)}t.testExampleCache=JSON.parse(JSON.stringify(t.$store.state.testExample)),t.receiveData=e.data}))}}),x=C,w=(s("0fb0"),Object(c["a"])(x,j,k,!1,null,"1ed0b193",null)),y=w.exports,T=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"testExampleTable"}},[s("a-table",{attrs:{"data-source":this.$store.state.testExample,columns:t.columns,pagination:!1,scroll:{y:753},"row-selection":t.rowSelection},scopedSlots:t._u([{key:"operation",fn:function(e,a){return[s("a",{staticClass:"readBtn",on:{click:function(e){return t.readTestResult(a.id)}}},[t._v("查看")]),s("a",{staticClass:"deleteBtn",on:{click:function(e){return t.deleteExampleData(a.key,a.id)}}},[t._v("删除")])]}}])})],1)},S=[],E=(s("a434"),{name:"TestExampleTable",data:function(){return{columns:[{title:"用例名",dataIndex:"name"},{title:"机型",dataIndex:"model"},{title:"cpu",dataIndex:"cpu"},{title:"系统",dataIndex:"os"},{title:"浏览器",dataIndex:"browser"},{title:"总步骤数",dataIndex:"total"},{title:"已完成数",dataIndex:"success"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],idList:[]}},computed:{rowSelection:function(){var t=this;return{onChange:function(e,s){console.log(s),t.idList=[];for(var a=0;a<s.length;a++)t.idList.push(s[a].id);t.$store.state.exampleIdList=t.idList}}}},methods:{deleteExampleData:function(t,e){this.$store.state.testExample.splice(t,1),this.$axios.deleteExample(e)},readTestResult:function(t){this.$router.push({path:"/testReport",query:{exampleId:t}})}}}),D=E,_=(s("cbab"),Object(c["a"])(D,T,S,!1,null,"9b5897ee",null)),I=_.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"testReport"}},[a("router-link",{attrs:{to:"/Test"}},[a("div",{staticClass:"return"},[a("img",{attrs:{src:s("1faf")}}),a("span",[t._v("返回")])])]),a("div",{staticClass:"content"},[a("h1",[t._v("测试结果")]),t._m(0),a("div",{staticClass:"mainLine"},[a("div",{staticClass:"firstLine"},[a("span",{staticClass:"detailInfo",attrs:{title:t.name}},[t._v("用例名:"+t._s(t.name))]),a("span",{staticClass:"detailInfo",attrs:{title:t.model}},[t._v("机型:"+t._s(t.model))]),a("span",{staticClass:"detailInfo",attrs:{title:t.cpu}},[t._v("cpu:"+t._s(t.cpu))]),a("span",{staticClass:"detailInfo",attrs:{title:t.os}},[t._v("系统:"+t._s(t.os))])]),a("div",{staticClass:"secondLine"},[a("span",{staticClass:"detailInfo",attrs:{title:t.browser}},[t._v("浏览器:"+t._s(t.browser))]),a("span",{staticClass:"detailInfo",attrs:{title:t.startTime}},[t._v("开始时间:"+t._s(t.startTime))]),a("span",{staticClass:"detailInfo",attrs:{title:t.costTime}},[t._v("耗时:"+t._s(parseInt(t.costTime/1e3/60))+"分"+t._s(parseInt(t.costTime/1e3))+"秒")])])]),a("a-table",{attrs:{"data-source":t.testResult,columns:t.columns,pagination:!1,scroll:{y:601}},scopedSlots:t._u([{key:"screenShot",fn:function(e,s){return[null!==s.screenShot?a("a-button",{on:{click:function(e){return t.imgShowBtn(s)}}},[t._v("查看")]):t._e()]}}])}),a("a-modal",{attrs:{footer:null,centered:!0,width:1500},model:{value:t.imgModal,callback:function(e){t.imgModal=e},expression:"imgModal"}},[a("img",{attrs:{src:t.record.screenShot}})])],1)],1)},R=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"infoTitle"},[s("div",{staticClass:"icon"}),s("div",{staticClass:"baseInfo"},[t._v("基础信息")])])}],V={name:"TestReport",data:function(){return{columns:[{title:"步骤",dataIndex:"content"},{title:"截图",dataIndex:"screenShot",scopedSlots:{customRender:"screenShot"}},{title:"耗时(ms)",dataIndex:"costTime"},{title:"是否成功",dataIndex:"success"},{title:"信息",dataIndex:"message"}],testResult:[],name:"",os:"",browser:"",startTime:"",costTime:"",model:"",cpu:"",imgModal:!1,record:{}}},methods:{imgShowBtn:function(t){this.record=t,this.imgModal=!0}},created:function(){var t=this;this.$store.state.testExample.map((function(e,s){if(e.id==t.$route.query.exampleId){for(var a=0;a<e.steps.length;a++)null!==e.steps[a].screenShot&&(e.steps[a].screenShot="http://127.0.0.1:13500"+e.steps[a].screenShot+".jpg"),1==e.steps[a].success?e.steps[a].success="是":e.steps[a].success="否";t.testResult=e.steps,t.name=e.name,t.os=e.os,t.browser=e.browser,t.startTime=e.startTime,t.costTime=e.costTime,t.model=e.model,t.cpu=e.cpu}}))},mounted:function(){}},N=V,O=(s("e5389"),Object(c["a"])(N,B,R,!1,null,"c0192548",null)),M=O.exports,q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"process"},[a("div",{staticClass:"process-left"},[a("div",{staticClass:"left-tabel"},t._l(t.tabelData,(function(e,i){return a("ul",{key:i,class:{single:i%2==0}},[a("li",{staticClass:"name",on:{click:function(e){return t.detailChose(i)}}},[t._v(t._s(e.name))]),a("li",{directives:[{name:"show",rawName:"v-show",value:"测试完成"==e.test,expression:"item.test=='测试完成'"}],staticClass:"success",on:{click:function(e){return t.detailChose(i)}}},[a("img",{attrs:{src:s("d284"),alt:""}}),t._v(" 测试完成")]),a("li",{directives:[{name:"show",rawName:"v-show",value:"测试中"==e.test,expression:"item.test=='测试中'"}],staticClass:"ing",on:{click:function(e){return t.detailChose(i)}}},[a("img",{attrs:{src:s("0118"),alt:""}})]),a("li",{directives:[{name:"show",rawName:"v-show",value:"未测试"==e.test,expression:"item.test=='未测试'"}],staticClass:"wait",on:{click:function(e){return t.detailChose(i)}}},[a("img",{attrs:{src:s("f720"),alt:""}}),t._v(" 未测试")])])})),0)]),a("div",{staticClass:"process-right"},[a("div",{staticClass:"right-header"},[a("div",[t._v("操作系统:"+t._s(t.detail.os))]),a("div",[t._v("浏览器:"+t._s(t.detail["browser"]))]),a("div",[t._v("测试用例:"+t._s(t.detail["name"]))])]),a("div",{staticClass:"right-content"},t._l(t.detail.steps,(function(e,s){return a("div",{key:s,staticClass:"font-content"},[a("span",[t._v(" 操作内容:"+t._s(e.content))]),a("span",[t._v(" 花费时间:"+t._s(e.costTime))]),a("span",[t._v(" 返回结果:"+t._s(e.message))]),a("span",[t._v(" 截图地址:"+t._s(e.screenShot))]),a("span",[t._v(" 测试结果:"+t._s(e.success))])])})),0),a("div",{staticClass:"right-bottom"},[a("div",{staticClass:"bottom-font"},[t._v(" 进度:"+t._s(t.detail["steps"].length)+"/"+t._s(t.detail.total)+" ")]),a("div",{staticClass:"bottom-font"},[t._v("开始时间:"+t._s(t.startTime))]),a("div",{staticClass:"bottom-font"},[t._v("耗时:"+t._s(t.useTime)+"毫秒")])])])])},J=[],K=(s("4160"),s("159b"),{data:function(){return{step:0,header:!1,startTime:"",tabelData:[],websock:null,useTime:"",detail:{total:0,steps:[]},testData:[],stepsDetail:[]}},mounted:function(){var t=this;this.testData=[],this.$store.state.browserConfig.forEach((function(e){t.$store.state.scriptDataExample.forEach((function(s){var a={},i={};a.browser=e,a.headless=t.$store.state.headless,a.params=[],""==t.$store.state.cookie.cookieKey&&""==t.$store.state.cookie.cookieValue||(a.params[0]={},a.params[0].type="cookies",a.params[0].name=t.$store.state.cookie.cookieKey,a.params[0].value=t.$store.state.cookie.cookieValue),a.testCase=JSON.parse(JSON.stringify(s)),i.name=a.testCase.name,i.test="未测试",t.testData.push(a),t.tabelData.push(i)}))})),this.initWebSocket()},methods:{initWebSocket:function(){var t="ws://127.0.0.1:13500/socket/1";this.websock=new WebSocket(t),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){var t={test:"12345"},e=new Date;this.startTime=e.toLocaleTimeString(),this.websocketsend(JSON.stringify(t))},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(t){var e=this;console.log(JSON.parse(t.data)),"连接成功"==JSON.parse(t.data).message?this.sendData(this.step):JSON.parse(t.data).endTime>0?(this.stepsDetail.push(JSON.parse(t.data)),this.useTime=JSON.parse(t.data).costTime,setTimeout((function(){e.step=e.step+1,e.step<e.testData.length?e.sendData(e.step):e.tabelData[e.step-1].test="测试完成"}),2e3)):this.detail=JSON.parse(t.data)},detailChose:function(t){this.detail=this.stepsDetail[t],this.useTime=this.stepsDetail[t].costTime},sendData:function(t){this.detail.steps=[],0==t?this.tabelData[0].test="测试中":(this.tabelData[t-1].test="测试完成",this.tabelData[t]&&(this.tabelData[t].test="测试中")),this.$axios.proExecute(this.testData[t]).then((function(t){}),(function(t){}))},websocketsend:function(t){this.websock.send(t)},websocketclose:function(t){console.log("断开连接",t)}},destroyed:function(){this.websock&&this.websock.close()}}),L=K,H=(s("3220"),Object(c["a"])(L,q,J,!1,null,null,null)),U=H.exports,P=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"dataCount"}},[s("h1",{staticClass:"exampleTypeTitle"},[t._v("功能性")]),t._m(0),s("div",{staticClass:"detail"},[s("div",{staticClass:"detailData"},[t._v("总测数:"+t._s(t.stepData.total))]),s("div",{staticClass:"detailData"},[t._v("未测数:"+t._s(t.stepData.unfinished))]),s("div",{staticClass:"detailData"},[t._v("失败数:"+t._s(t.stepData.failures))])]),s("h1",{staticClass:"performanceTitle"},[t._v("性能")]),t._m(1),s("div",{staticClass:"detail"},[s("div",{staticClass:"detailData"},[t._v("平均响应时间:"+t._s(t.stepData.averageCostTime))]),s("div",{staticClass:"detailData"},[t._v("1秒内:"+t._s(t.stepData.littleThan2s))]),s("div",{staticClass:"detailData"},[t._v("1-3秒内:"+t._s(t.stepData.between2sAnd3s))]),s("div",{staticClass:"detailData"},[t._v("3秒外:"+t._s(t.stepData.greaterThan3s))])])])},G=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"exampleCountTitle"},[s("div",{staticClass:"square"}),s("h2",{staticClass:"exampleCountText"},[t._v("总测试步骤")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"exampleCountTitle"},[s("div",{staticClass:"square"}),s("h2",{staticClass:"exampleCountText"},[t._v("成功")])])}],z={name:"DataCount",data:function(){return{stepData:{},exampleIdList:[]}},mounted:function(){var t=this;this.exampleIdList=this.$store.state.exampleIdList,this.$axios.getStepData(this.exampleIdList).then((function(e){t.stepData=e.data}))}},F=z,$=(s("354f"),Object(c["a"])(F,P,G,!1,null,"d6e0efc2",null)),Z=$.exports;a["default"].use(u["a"]);var Q=[{path:"/",name:"Home",component:g},{path:"/test",name:"Test",component:y,children:[{path:"",component:I}]},{path:"/testReport",name:"TestReport",component:M},{path:"/Process",name:"Process",component:U},{path:"/dataCount",name:"dataCount",component:Z}],Y=new u["a"]({base:"/dist",mode:"hash",routes:Q}),W=Y,X=s("2f62");a["default"].use(X["a"]);var tt=new X["a"].Store({state:{projectId:0,testExampleId:0,projectNums:0,homeDataSource:[],projectName:"",testExample:[],scriptData:{},scriptDataExample:[],browserConfig:[],headless:!1,exampleIdList:[],cookie:{}},mutations:{setId:function(t,e){t.projectId=e}},actions:{},modules:{}}),et=s("f23d"),st=(s("202f"),s("d3b7"),s("bc3a")),at=s.n(st);at.a.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),at.a.interceptors.response.use((function(t){return t}),(function(t){return Promise.reject(t)}));var it=function(t,e){var s=e.method,a=void 0===s?"post":s,i=e.timeout,o=void 0===i?1e6:i,n=e.data,r=void 0===n?{}:n,c=e.baseURL,l=void 0===c?"http://127.0.0.1:13500":c,d=e.headers,u=void 0===d?{"Content-Type":"application/json;charset=UTF-8"}:d,p=e.responseType,f=void 0===p?"json":p,m={method:a,timeout:o,url:t,baseURL:l,withCredentials:!0,cache:!1,data:r,headers:u,responseType:f};return at()(m)},ot={getProject:function(){return it("/project",{method:"get"})},postProject:function(t){return it("/project",{method:"post",data:{name:t}})},delProject:function(t){return it("/project/".concat(t),{method:"delete"})},getDetail:function(t){return it("/project/".concat(t),{method:"get"})},proExecute:function(t){return it("/test/execute",{method:"post",data:t})},deleteExample:function(t){return it("report/".concat(t),{method:"delete"})},getStepData:function(t){return it("report/statistics",{method:"post",data:t})}},nt=ot;s("0fae"),s("499a");a["default"].use(h.a),a["default"].prototype.$axios=nt,a["default"].use(et["a"]),a["default"].config.productionTip=!1,new a["default"]({router:W,store:tt,render:function(t){return t(d)}}).$mount("#app")},7041:function(t,e,s){},"7c55":function(t,e,s){"use strict";s("2395")},"86a8":function(t,e,s){},a978:function(t,e,s){},b319:function(t,e,s){"use strict";s("3fd7")},bf2e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAACXBIWXMAAAsSAAALEgHS3X78AAABhElEQVQ4y5WUsXHjMBBFnzjOpcRITx2QrsAMkR2vAjs9RHQFtjtghFjugI4OIVWBqQ58KSKpAl6yuNmBMbSNhAT2/7+LBT42y7KwNkxwDbADztH6eQ27KYmZ4FqgB34WOK/AEK2fVsVMcDtgBG4V5qj+8/UuWn/+ICbbmYAtcJHKRg2WZB0wKFybtr9ZliWBJqAGTgI4r/SxiK8k3ucBE1xngptMcE+5mCRqBV8Ln831n9874F3Kvkklm+D0yZyA+/w0pTVvst19JRm2wOvK0dfAW16l4I/CbyugkdjE5+PRBJcnHOXbVMBeJjNfG7UJrlfz/7wKOPP9UeRosfaLQsdo/UHNWy2Wyuw+EbkAD9H6PGnizVW0fhRgLZ7UZO3HJlo/FDxcA5do/ZgubQId5Han8p+BX9H6Llr/XnDBQfO1N2flgg/kTGgvV6IGTtH6BuAqa2Ty22yCG4CDFhWRe7HPNtlv7QkagLusd7Nc7q1afwH64hNU8FwvWX+o0F+pfihZ7x8Pjbq/ZhdoiAAAAABJRU5ErkJggg=="},ca0d:function(t,e,s){},cbab:function(t,e,s){"use strict";s("a978")},d284:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAACXBIWXMAAAsSAAALEgHS3X78AAABf0lEQVRIx62VMVbCQBRFLzn0YGFa2AHsAOmmA1ZgKE2FKxB3kGpa4w6gMmVYgXEH0k4FK4iFfzgxTmIMeeXMP3cm778/6eV5jkt+Ek6BALgDJqXtI5ACsVE6pUK9MtxPwjEQAQua6QBsjNJZLVxumwID/q+1UTouLngdgQFe/CQMft1crMiuABc1t32wN486AgNcrPHEjgXdaWTt8SRubXQGboC5Y+8CX7aEL43SJ2Dq2JsB9G7fHvIW4Gej9FYsfa9qrNcCvBfwENjVFVbBV+Ll2TH2tkc7YNQGPpasBi6f/STcWl//gh8d61s/CadG6R2wl7VHo3TmJ+ESeGpgX+bJyJc1AGLxNZAGRtLAuAH4wyh96kvxvaNgAkRG6UC+ZCi1g6ZTat+WtMbDA/AJDBtO8ll6durLwqYmr7MmzStOpwzXd1rkoV938K68Sgh+RlEe+vWV4KAy53LAvCKedR6vymDnP7TwZwqkF5OquEkqYutxY3jpoLvygFQBi/oCF5acuG7MuIIAAAAASUVORK5CYII="},e5389:function(t,e,s){"use strict";s("86a8")},f720:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADtSURBVEhLtZUhEsIwEEVLZxAoToNCYHLsGEQNCAwCNAgMAkwFAvg7SUm36SZNwjNNZpq3P5tMO3t/qTxorc1IRillRkMG8lgpx1ekNk8iVQx8azt5jtjCHSS/tHealMAtQPJzc6BJaerj82qG5bDp69vuRIMUVpu1eBV7t2UKkC7nC/EiJMtDoGiSHKkfr1ZMDSbL0Wew3zb0lBiVIx0/rJg+u/yt59jhqBzp0FfbBruL2NTYoZgcfcVLsQfIoU/u1EUhsNtg8lQgBiTntyIH19UlL1GAO3ptySngW5v9g7aH52NU7sILScIfVfUBsb1l4inHK3AAAAAASUVORK5CYII="}});
//# sourceMappingURL=app.08c5d19d.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论