How to use the robotframework.models.Webcase function in robotframework

To help you get started, we’ve selected a few robotframework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Wesly-Yu / AutoZone / robotframework / webviews.py View on Github external
def searche_web_casename(request):
    username = request.session.get('user', '')
    webcases = Webcase.objects.all()
    return  render(request,"Web_test_robotframework.html", {"user": username, "webcases":webcases})
github Wesly-Yu / AutoZone / robotframework / admin.py View on Github external
class WebcasestepAdmin(admin.TabularInline):
    list_display = ['webtestlocation','webfindmethod','webkwargesone','webkwargestwo','webkwargesthree','webassertdata','webtestresult','webcomments','Webcase','id']
    model = Webcasestep
    extra = 0
    search_fields = ('webfindmethod')
    def delete_queryset(self,request,queryset):
        for object in queryset.filter():
            object.state =0
            object.update_time = datetime.now()
            object.save()

class WebcaseAdmin(admin.ModelAdmin):
    list_display = ['webcasename','id']
    inlines = [WebcasestepAdmin]
admin.site.register(Webcase,WebcaseAdmin)