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 })
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 })
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)
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)
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)
def loginConfig_create(request): tid, model_list = model_nav(request) return render(request, 'page/8-1新建登录配置.html', { 'tid': tid, 'model_list': model_list })
def task(request): tid, model_list = model_nav(request) return render(request, 'page/9任务管理.html', { 'tid': tid, 'model_list': model_list })
def result(request): tid, model_list = model_nav(request) return render(request, 'page/7测试结果.html', { 'tid': tid, 'model_list': model_list })
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)
def testcase_create(request): tid, model_list = model_nav(request) return render(request, 'page/6-1新建测试用例.html', { 'tid': tid, 'model_list': model_list })
def keyword_create(request): tid, model_list = model_nav(request) return render(request, 'page/5-1新建关键字.html', { 'tid': tid, 'model_list': model_list })
def keyword(request): tid, model_list = model_nav(request) return render(request, 'page/5关键字库.html', { 'tid': tid, 'model_list': model_list })
def page(request): tid, model_list = model_nav(request) return render(request, 'page/3页面管理.html', { 'tid': tid, 'model_list': model_list })
def project(request): tid, model_list = model_nav(request) return render(request, 'page/2项目管理.html', { 'tid': tid, 'model_list': model_list })