Need help in running a simple custom test using redline.

46 views
Skip to first unread message

Neha Gupta

unread,
Jan 10, 2022, 4:29:04 PM1/10/22
to RedLine13
Can you please help me with a simple test case that i can use to run custom test using redline. One i tried is not working

from load_testing_test import LoadTestingTest


class CustomLoadTest(LoadTestingTest):
    """ Custom load test template to test out arbitrary functionality """

    def __init__(self, test_num, rand):
        """Constructor
        :param test_num: int Test number
        :param rand: string Random token for test
        """
        # Call parent constructor
        super(CustomLoadTest, self).__init__(test_num, rand)

    def start_test(self):
        """ Start test """
        url = 'http://www.echoecho.com/htmlforms11.htm'
        page = self.session.go_to_url(url=url, save_data=True)

Thanks
Neha
Reply all
Reply to author
Forward
0 new messages