Exemple #1
0
def loginConfig_edit(request, login_id):
    tid, model_list = model_nav(request)
    return render(request, 'page/8-1编辑登录配置.html', {
        'id': login_id,
        'tid': tid,
        'model_list': model_list
    })
Exemple #2
0
def result_see(request, result_id):
    tid, model_list = model_nav(request)
    return render(request, 'page/7-1查看测试结果.html', {
        'id': result_id,
        'tid': tid,
        'model_list': model_list
    })
Exemple #3
0
def element(request):
    project_id = request.GET.get('projectId', 'false')
    page_id = request.GET.get('pageId', 'false')
    tid, model_list = model_nav(request)
    info = {
        'projectId': project_id,
        'pageId': page_id,
        'tid': tid,
        'model_list': model_list
    }
    return render(request, 'page/4页面元素.html', info)
Exemple #4
0
def project_config(request, project_id):
    p = get_model(Project, id=project_id)
    name = p.name if p else ''
    tid, model_list = model_nav(request)
    info = {
        'projectId': project_id,
        'projectName': name,
        'tid': tid,
        'model_list': model_list
    }
    return render(request, 'page/2项目管理--环境配置.html', info)
Exemple #5
0
def keyword_edit(request, keyword_id):
    kw = get_model(Keyword, id=keyword_id)
    project_id = kw.project_id if kw else 0
    p = get_model(Project, id=project_id)
    project_name = p.name if project_id is not None and p else '通用关键字封装'
    keyword_name = kw.name if kw else ''
    tid, model_list = model_nav(request)
    info = {
        'id': project_id,
        'projectName': project_name,
        'keywordId': keyword_id,
        'keywordName': keyword_name,
        'tid': tid,
        'model_list': model_list
    }
    return render(request, 'page/5-2编辑关键字.html', info)
Exemple #6
0
def loginConfig_create(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/8-1新建登录配置.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #7
0
def task(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/9任务管理.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #8
0
def result(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/7测试结果.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #9
0
def testcase_edit(request, testcase_id):
    tid, model_list = model_nav(request)
    info = {'testcaseId': testcase_id, 'tid': tid, 'model_list': model_list}
    return render(request, 'page/6-1编辑测试用例.html', info)
Exemple #10
0
def testcase_create(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/6-1新建测试用例.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #11
0
def keyword_create(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/5-1新建关键字.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #12
0
def keyword(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/5关键字库.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #13
0
def page(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/3页面管理.html', {
        'tid': tid,
        'model_list': model_list
    })
Exemple #14
0
def project(request):
    tid, model_list = model_nav(request)
    return render(request, 'page/2项目管理.html', {
        'tid': tid,
        'model_list': model_list
    })