def METHOD_NAME(cls):
    testClient = super(TestMaxHyperviosrLimit, cls).getClsTestClient()
    cls.apiclient = testClient.getApiClient()
    cls.testdata = testClient.getParsedTestDataConfig()
    cls.hypervisor = cls.testClient.getHypervisorInfo()
    # Get Zone, Domain and templates
    cls.domain = get_domain(cls.apiclient)
    cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests())
    cls.template = get_template(
        cls.apiclient,
        cls.zone.id,
        cls.testdata["ostype"])
    cls._cleanup = []
    try:
        cls.skiptest = False
        if cls.hypervisor.lower() not in ['xenserver']:
            cls.skiptest = True
            return
        # Create an account
        cls.account = Account.create(
            cls.apiclient,
            cls.testdata["account"],
            domainid=cls.domain.id
        )
        # Create user api client of the account
        cls.userapiclient = testClient.getUserApiClient(
            UserName=cls.account.name,
            DomainName=cls.account.domain
        )
        # Create Service offering
        cls.service_offering = ServiceOffering.create(
            cls.apiclient,
            cls.testdata["service_offering"],
            hosttags="host1"
        )
        cls._cleanup = [
            cls.account,
            cls.service_offering,
        ]
    except Exception as e:
        cls.tearDownClass()
        raise e
    return