How can I design a user survey for a new feature in Instagram login?

69    Asked by AnneBell in QA Testing , Asked on Jan 31, 2024

 I am currently assigned a task which is related to designing a user survey for a new feature related to Instagram login. How can I structure a question to gauge the satisfaction of the user with the ease of logging in using their Instagram credentials across different platforms such as mobile apps, websites, and third-party apps? 

Answered by Daniel BAKER

In the context of Selenium, you can implement user survey questions on Instagram login satisfaction across platforms such as mobile apps, websites, and third-party apps by using a Likert scale question format. Here is an example given:-

“On a scale of 1 to 5, how much you are satisfied with the easiness of logging in using your Instagram credentials across different platforms such as mobile app, website, third-party apps?

Then in your backend database or even in the analytics platform, you would need to store the response along with metadata which would indicate the platform the user was logging in from mobile app, website, or third-party apps.

In terms of coding, if you are building a survey by using a web framework such as Django, then you can design a model for storing survey responses like this:-

# models.py
From django.db import models
Class InstagramLoginSurvey(models.Model):
    PLATFORM_CHOICES = [
        (‘Mobile App’, ‘Mobile App’),
        (‘Website’, ‘Website’),
        (‘Third-Party App’, ‘Third-Party App’),
    ]
    User_id = models.CharField(max_length=100)  # Assuming user ID is stored as a string
    Satisfaction_rating = models.IntegerField(choices=[(1, ‘1’), (2, ‘2’), (3, ‘3’), (4, ‘4’), (5, ‘5’)])
    Platform = models.CharField(max_length=20, choices=PLATFORM_CHOICES)
    Created_at = models.DateTimeField(auto_now_add=True)
    Def __str__(self):
        Return f”Survey response by {self.user_id} at {self.created_at}”

Then in your view handling the surgery submission, you can save the response data to the particular database:-

# views.py
From django.shortcuts import render, redirect
From .models import InstagramLoginSurvey
Def survey_submission(request):
    If request.method == ‘POST’:
        User_id = request.POST.get(‘user_id’)
        Satisfaction_rating = request.POST.get(‘satisfaction_rating’)
        Platform = request.POST.get(‘platform’)
        # Save survey response to the database
        Survey = InstagramLoginSurvey.objects.create(
            User_id=user_id,
            Satisfaction_rating=satisfaction_rating,
            Platform=platform
        )
        # Redirect to a thank you page or any other appropriate page
        Return redirect(‘thank_you_page’)    Return render(request, ‘survey_form.html’) # Render the survey form template

This above coding would assume that a Django project is set up with appropriate URL routing and even template rendering. There may be a need for adjustments based on your particular project's nature, structure, and even requirements.



Your Answer

Interviews

Parent Categories