修复用例类型判断的Bug

This commit is contained in:
seagull 2022-04-07 15:16:57 +08:00
parent 6a5e631021
commit b35a997f50
4 changed files with 7 additions and 6 deletions

View File

@ -27,7 +27,8 @@ public class WebDebugExecute extends TestControl{
PropertyConfigurator.configure(RunService.APPLICATION_HOME + File.separator + "log4j.conf");
String caseIdStr = args[0];
String userIdStr = args[1];
WebTestCaseDebug.oneCaseDebug(caseIdStr, userIdStr);
String caseTypeStr = args[2];
WebTestCaseDebug.oneCaseDebug(caseIdStr, userIdStr, caseTypeStr);
} catch (Exception e) {
LogUtil.APP.error("启动用例调试主函数出现异常,请检查!",e);
} finally{

View File

@ -39,11 +39,11 @@ public class WebTestCaseDebug {
* 用于在WEB页面上调试用例时提供的接口
* @param caseIdStr 用例ID
* @param userIdStr 用户ID
* @param caseTypeStr 用例类型针对0或者2
* @param caseTypeStr 用例类型HTTP接口 0, Web UI, 1, API驱动, 2, 移动端, 3
*/
public static void oneCaseDebug(String caseIdStr, String userIdStr,String caseTypeStr) {
//修改点
if (Integer.parseInt(caseTypeStr)==0||Integer.parseInt(caseTypeStr)==2){
if (3!=Integer.parseInt(caseTypeStr)){
Map<String, String> variable = new HashMap<>(0);
serverOperation.exetype=1;
String packagename;

View File

@ -17,11 +17,11 @@ public class ProjectSuite extends BaseEntity {
private Integer suitePlanCount;
/** 项目ID */
private Integer projectId;
/** 创建者 */
private String createBy;
/** 创建时间 */
private Date createTime;
/** 更新者 */
private String updateBy;
/** 更新时间 */
private Date updateTime;

View File

@ -19,7 +19,7 @@ public class WebDebugCaseEntity implements Serializable {
private Integer caseId;
private Integer userId;
private String loadpath;
//修改点
//修改点 HTTP接口 0, Web UI, 1, API驱动, 2, 移动端, 3
private Integer caseType;
private Integer browserType;