-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from __future__ import unicode_literals | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
smart_QC/templates/test_api/run_case_selected_confirm1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +0,0 @@ | ||
{% extends base_template %} | ||
{% load i18n l10n %} | ||
{% load staticfiles %} | ||
{% block extrastyle %}{{ block.super }} | ||
<style> | ||
.controls { | ||
background-color: white; | ||
padding: 0 !important; | ||
} | ||
.form-control{ | ||
width:90% | ||
} | ||
.fl{float:left} | ||
</style> | ||
<link type="text/css" rel="stylesheet" href="{% static "vendor/jquery-ui/css/jquery-ui.css" %}" /> | ||
<link type="text/css" rel="stylesheet" href="{% static "xadmin/css/xadmin.form.css" %}" /> | ||
<script type="text/javascript" src="{% static "xadmin/vendor/jquery/jquery.js" %}"></script> | ||
<script type="text/javascript" src="{% static "common/js/common.js" %}"></script> | ||
<script type="text/javascript" src="{% static "test_api/js/run-case.js" %}"></script> | ||
{% endblock %} | ||
{% load xadmin_tags %} | ||
|
||
{% block breadcrumbs %} | ||
<ul class="breadcrumb"> | ||
<li><a href="{% url 'xadmin:index' %}">{% trans 'Home' %}</a></li> | ||
<li><a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a></li> | ||
<li>{% trans 'Run Selected ' %} {{ objects_name|capfirst }}</li> | ||
</ul> | ||
{% endblock %}S | ||
{% block nav_title %}{{ title }}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="alert alert-warning">{% blocktrans %}You can run selected cases in below ways:</br> | ||
1. As an one-time task</br> | ||
2. Copy the arguments and add a periodic task in Djcelery{% endblocktrans %}</div> | ||
<div class="form-group col-sm-4"> | ||
<label class="control-label fl" style="line-height: 40px">Test Environment</label><span class="asteriskField fl" style="color: red;line-height: 40px;margin:0 5px 0 5px"> *</span> | ||
<div class="controls fl" style="width:75%;"> | ||
<div class="control-wrap" style="float:left;width:100%"> | ||
<select id="id_test_environment" name="test_environment" class="input-md form-control fl" style="width:80%;margin:5px;"> | ||
<option value="0"> ------ </option> | ||
{% for test_environment in test_environments %} | ||
<option value="{{ test_environment.id }}">{{ test_environment.name }}</option> | ||
{% endfor %} | ||
</select> | ||
<a href="/test_api/testenvironment/add/" title="Create New Test Environment" | ||
class="btn btn-primary btn-sm btn-ajax pull-right" | ||
target="_blank"><i | ||
class="fa fa-plus"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="control" style="clear:both"> | ||
<h4 style="color:#447e9b;background:lightblue;padding: 5px;width:auto;float: left;clear:both">{% blocktrans %} | ||
Drag and pull rows to adjust order!{% endblocktrans %}</h4> | ||
<table id="id_case" class="table table-bordered table-striped table-hover"> | ||
{# <caption>Drag and pull rows to adjust order!</caption>#} | ||
<thead> | ||
<tr> | ||
<th scope="col" class="sortable"> | ||
<div class="dropdown pull-left"> | ||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | ||
ID | ||
</a> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li><a href="?o=id" class="active"><i class="fa fa-caret-up"></i> Sort ASC</a></li> | ||
<li><a href="?o=-id" class="active"><i class="fa fa-caret-down"></i> Sort DESC</a></li> | ||
</ul> | ||
</div> | ||
</th> | ||
{# <th>ID</th>#} | ||
<th scope="col" class="sortable"> | ||
<div class="dropdown pull-left"> | ||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | ||
Name | ||
</a> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li><a href="?o=id" class="active"><i class="fa fa-caret-up"></i> Sort ASC</a></li> | ||
<li><a href="?o=-id" class="active"><i class="fa fa-caret-down"></i> Sort DESC</a></li> | ||
</ul> | ||
</div> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for obj in queryset %} | ||
<tr> | ||
<td>{{ obj.id }}</td> | ||
<td>{{ obj.name }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<form action="" method="post">{% csrf_token %} | ||
<div> | ||
{% for obj in queryset %} | ||
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}"/> | ||
{% endfor %} | ||
<input type="hidden" name="action" value="run_selected"/> | ||
<input type="hidden" name="post" value="yes"/> | ||
{% view_block 'form_fields' %} | ||
<div class="form-actions well well-sm fixed"> | ||
<input class="btn btn-danger btn-lg" type="submit" value="{% trans "Yes, run only once!" %}"/> | ||
<input class="btn btn-danger btn-lg" type="button" onclick="getAguments('keyword');" | ||
value="{% trans 'Copy arguments' %}"/> | ||
<input class="btn btn-danger btn-lg" type="button" onclick="javascript:history.back();" | ||
value="{% trans 'Copy keyword arguments' %}"/> | ||
<a class="btn btn-default pull-right" onclick="javascript:history.back();">{% trans 'Cancel' %}</a> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} | ||