How to use the robotframework.models.Email.objects.create 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 add_email_recevier(request):
    username = request.session.get('user', '')
    emails = Email.objects.all()
    if request.method == "POST":
        sender_email_site = request.POST.get("sender_email_site")
        recevier_email_sites = request.POST.get("recevier_email_sites")
        email_subject = request.POST.get("email_subject")
        recevier_email_port = request.POST.get("recevier_email_port")
        email_body = request.POST.get("email_body")
        Email.objects.create(sender=sender_email_site,receivers=recevier_email_sites,body=email_body,email_port=recevier_email_port,subject=email_subject)
    return  render(request,"email_add_page.html",{"user": username,"emails": emails})
github Wesly-Yu / AutoZone / robotframework / webviews.py View on Github external
def add_email_sender(request):
    username = request.session.get('user', '')
    emails = Email.objects.all()
    if request.method == "POST":
        sender_site = request.POST.get("sender_site")
        sender_email_password = request.POST.get("sender_email_password")
        smtpserver = request.POST.get("smtpserver")
        Email.objects.create(username=sender_site,passwd=sender_email_password,email_server=smtpserver)
    return  render(request,"email_add_page.html",{"user": username,"emails": emails})