示例#1
0
        public void MSADMINS_S02_TC13_CreateSiteFailed_OwnerLoginEmpty()
        {
            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid            = lcids.Languages[0];
            string title           = TestSuiteBase.GenerateUniqueSiteTitle();
            string url             = TestSuiteBase.GenerateUrlPrefixWithPortNumber() + title;
            string description     = TestSuiteBase.GenerateRandomString(20);
            string webTemplate     = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLoginEmpty = string.Empty;
            string ownerName       = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail      = TestSuiteBase.GenerateEmail(20);
            string portalUrl       = TestSuiteBase.GeneratePortalUrl(20);
            string portalName      = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite to create a site collection with empty ownerLogin.
                string result = this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, ownerLoginEmpty, ownerName, ownerEmail, portalUrl, portalName);
                Site.Assert.IsFalse(Uri.IsWellFormedUriString(result, UriKind.Absolute), "Create site operation should fail.");
            }
            catch (SoapException)
            {
                Site.Log.Add(LogEntryKind.Debug, "Create site operation should fail with empty OwnerLogin.");
            }
        }
示例#2
0
        public void MSADMINS_S02_TC10_CreateSiteFailed_WebTemplateInvalid()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");
            int    lcid               = lcids.Languages[0];
            string title              = TestSuiteBase.GenerateUniqueSiteTitle();
            string url                = TestSuiteBase.GenerateUrlPrefixWithPortNumber() + title;
            string description        = TestSuiteBase.GenerateRandomString(20);
            string webTemplateInvalid = TestSuiteBase.GenerateRandomString(5);
            string ownerLogin         = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName          = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail         = TestSuiteBase.GenerateEmail(20);
            string portalUrl          = TestSuiteBase.GeneratePortalUrl(20);
            string portalName         = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method to create a site collection with invalid WebTemplate.
                this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplateInvalid, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            // If a SOAP fault is returned, then MS-ADMINS_R19 can be captured.
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                19,
                @"[In CreateSiteSoapIn]If WebTemplate is not empty, and if it is not available in the list of templates and it is not a custom template, then the server MUST return a SOAP fault.");
        }
示例#3
0
        public void MSADMINS_S02_TC05_CreateSiteFailed_UrlExisted()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int lcid = lcids.Languages[0];

            string title       = TestSuiteBase.GenerateUniqueSiteTitle();
            string url         = Common.GetConfigurationPropertyValue("UrlWithOutPort", this.Site) + title;
            string description = TestSuiteBase.GenerateRandomString(20);
            string webTemplate = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLogin  = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName   = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail  = TestSuiteBase.GenerateEmail(20);
            string portalUrl   = TestSuiteBase.GeneratePortalUrl(20);
            string portalName  = TestSuiteBase.GenerateUniquePortalName();

            // Call CreateSite method to create a site collection.
            string result = this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);

            Site.Assert.IsTrue(Uri.IsWellFormedUriString(result, UriKind.Absolute), "Create site should succeed.");

            string titleSnd       = TestSuiteBase.GenerateUniqueSiteTitle();
            string descriptionSnd = TestSuiteBase.GenerateRandomString(30);
            string webTemplateSnd = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLoginSnd  = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerNameSnd   = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmailSnd  = TestSuiteBase.GenerateEmail(20);
            string portalUrlSnd   = TestSuiteBase.GeneratePortalUrl(20);
            string portalNameSnd  = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method again to create a site collection with existed Url.
                this.adminsAdapter.CreateSite(url, titleSnd, descriptionSnd, lcid, webTemplateSnd, ownerLoginSnd, ownerNameSnd, ownerEmailSnd, portalUrlSnd, portalNameSnd);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            Site.Log.Add(LogEntryKind.Debug, "If the Soap fault returned when give an existed Url, MS-ADMINS_R17 can be verified.");

            // Verify MS-ADMINS requirement: MS-ADMINS_R17
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                17,
                @"[In CreateSiteSoapIn][The request message is governed by the following rules:]If the URL already exists, the server MUST return a SOAP fault.");

            // Call DeleteSite method to delete the site collection created in above steps.
            this.adminsAdapter.DeleteSite(result);
        }
        /// <summary>
        /// Validate GetLanguages response data getLanguagesResult when the response is received successfully.
        /// </summary>
        /// <param name="getLanguagesResult">The return value of GetLanguages operation.</param>
        private void ValidateGetLanguagesResponseData(GetLanguagesResponseGetLanguagesResult getLanguagesResult)
        {
            // If the response data is not null, which means the response have been received successfully, then the following requirement can be captured.
            Site.CaptureRequirementIfIsNotNull(
                getLanguagesResult,
                2075,
                @"[In GetLanguages][The schema of GetLanguages operation is defined as:] <wsdl:operation name=""GetLanguages"">
                        <wsdl:input message=""tns:GetLanguagesSoapIn"" />
                        <wsdl:output message=""tns:GetLanguagesSoapOut"" />
                    </wsdl:operation>");

            // If the response data is not null, which means the response have been received successfully, then the following requirement can be captured.
            Site.CaptureRequirementIfIsNotNull(
                getLanguagesResult,
                2082,
                @"[In GetLanguagesResponse][The schema of DeleteSiteResponse element is defined as:] <s:element name=""GetLanguagesResponse"">
                    <s:complexType>
                    <s:sequence>
                        <s:element minOccurs=""1"" maxOccurs=""1"" name=""GetLanguagesResult"">
                            <s:complexType>
                            <s:sequence>
                            <s:element name=""Languages"">
                                <s:complexType>
                                <s:sequence>
                                    <s:element maxOccurs=""unbounded"" name=""LCID"" type=""s:int"" />
                                </s:sequence>
                                </s:complexType>
                            </s:element>
                            </s:sequence>
                        </s:complexType>
                        </s:element>
                    </s:sequence>
                    </s:complexType>
                </s:element>");

            // The response have been received successfully, then the following requirement can be captured.
            // If the following requirement is failed, the response can't be received successfully.
            Site.CaptureRequirement(
                93,
                @"[In GetLanguages]The client sends a GetLanguagesSoapIn request message and the server responds with a GetLanguagesSoapOut response message.");

            // The response have been received successfully, then the following requirement can be captured.
            // If the response is not received and parsed successfully, the test case will fail before this requirement is captured.
            Site.CaptureRequirement(
                98,
                @"[In GetLanguagesSoapOut]The SOAP body contains a GetLanguagesResponse element.");

            // If the lcid list in the response is not empty, then the following requirement can be captured.
            Site.CaptureRequirementIfIsTrue(
                getLanguagesResult.Languages.Length > 0,
                94,
                @"[In GetLanguagesResponse]GetLanguagesResult: Provides the locale identifiers (LCIDs) of languages used in the deployment.");
        }
示例#5
0
        public void MSADMINS_S02_TC12_CreateSiteFailed_OwnerLoginAbsent()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid        = lcids.Languages[0];
            string title       = TestSuiteBase.GenerateUniqueSiteTitle();
            string url         = TestSuiteBase.GenerateUrlPrefixWithPortNumber() + title;
            string description = TestSuiteBase.GenerateRandomString(20);
            string webTemplate = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerName   = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail  = TestSuiteBase.GenerateEmail(20);
            string portalUrl   = TestSuiteBase.GeneratePortalUrl(20);
            string portalName  = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method to create a site collection without owner login.
                this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, null, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            // If a SOAP fault is returned, then MS-ADMINS_R2050 can be captured.
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                2050,
                @"[In CreateSite]If it[OwnerLogin] is missing, the server MUST return a SOAP fault.");

            isSoapFaultReturn = false;
            try
            {
                // Call CreateSite method to create a site collection with empty owner login.
                this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, string.Empty, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            // If a SOAP fault is returned, then MS-ADMINS_R2050 can be captured.
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                2050001,
                @"[In CreateSite]If it[OwnerLogin] is empty, the server MUST return a SOAP fault.");
        }
示例#6
0
        public void MSADMINS_S02_TC15_DeleteSiteFailed_UrlNameInvalid()
        {
            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            // Call CreateSite method to create a site collection without port number.
            int    lcid        = lcids.Languages[0];
            string title       = TestSuiteBase.GenerateUniqueSiteTitle();
            string url         = Common.GetConfigurationPropertyValue("UrlWithOutPort", this.Site) + title;
            string description = TestSuiteBase.GenerateRandomString(20);
            string webTemplate = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLogin  = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName   = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail  = TestSuiteBase.GenerateEmail(20);
            string portalUrl   = TestSuiteBase.GeneratePortalUrl(20);
            string portalName  = TestSuiteBase.GenerateUniquePortalName();

            string result = this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);

            Site.Assert.IsTrue(Uri.IsWellFormedUriString(result, UriKind.Absolute), "Create site should succeed.");

            bool isSoapFaultReturn = false;

            try
            {
                string invalidUrl = Common.GetConfigurationPropertyValue("TransportType", this.Site) + TestSuiteBase.GenerateRandomString(5) + "/sites/" + title;

                // Call DeleteSite method with invalid URL.
                this.adminsAdapter.DeleteSite(invalidUrl);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            // If a SOAP fault is returned, then MS-ADMINS_R122 can be captured.
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                122,
                @"[In DeleteSiteSoapIn][The request message is governed by the following rules:] If the URL is not valid, the server MUST return a SOAP fault.");

            // Call DeleteSite to delete the site collection created in above steps.
            this.adminsAdapter.DeleteSite(result);
        }
示例#7
0
        public void MSADMINS_S02_TC06_CreateSiteFailed_UrlAbsent()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid        = lcids.Languages[0];
            string title       = TestSuiteBase.GenerateUniqueSiteTitle();
            string description = TestSuiteBase.GenerateRandomString(20);
            string webTemplate = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLogin  = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName   = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail  = TestSuiteBase.GenerateEmail(20);
            string portalUrl   = TestSuiteBase.GeneratePortalUrl(20);
            string portalName  = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method to create a site collection with Url absent.
                this.adminsAdapter.CreateSite(null, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            Site.Log.Add(LogEntryKind.Debug, "If the Soap fault returned when Url absent, MS-ADMINS_R14 and MS-ADMINS_R2041 can be verified.");

            // Verify MS-ADMINS requirement: MS-ADMINS_R14
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                14,
                @"[In CreateSiteSoapIn][The request message is governed by the following rules:]If the URL is missing, the server MUST return a SOAP fault.");

            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                2041,
                @"[In CreateSite]If it[Url] is missing or absent, the server MUST return a SOAP fault.");
        }
示例#8
0
        /// <summary>
        /// Returns information about the languages which are used in the protocol server deployment.
        /// </summary>
        /// <returns>The GetLanguages result.</returns>
        public GetLanguagesResponseGetLanguagesResult GetLanguages()
        {
            GetLanguagesResponseGetLanguagesResult getLanguagesResult = null;

            try
            {
                getLanguagesResult = this.adminService.GetLanguages();

                // Capture the transport related requirements and verify GetLanguages response requirements.
                this.VerifyTransportRelatedRequirements();
                this.ValidateGetLanguagesResponseData(getLanguagesResult);
            }
            catch (SoapException ex)
            {
                Site.Log.Add(LogEntryKind.Debug, "Throw exceptions while get LCID values that specify the languages used in the protocol server deployment: {0}.", ex.Message);

                throw new SoapException(ex.Detail.InnerText, ex.Code, ex.Actor, ex.Detail, ex);
            }

            return(getLanguagesResult);
        }
示例#9
0
        public void MSADMINS_S02_TC01_CreateSiteFailed_UrlExceedMaxLength()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid  = lcids.Languages[0];
            string title = TestSuiteBase.GenerateUniqueSiteTitle();
            string urlExceedMaxLength = TestSuiteBase.GenerateUrlWithoutPort(129);
            string description        = TestSuiteBase.GenerateRandomString(20);
            string webTemplate        = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLogin         = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName          = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail         = TestSuiteBase.GenerateEmail(20);
            string portalUrl          = TestSuiteBase.GeneratePortalUrl(20);
            string portalName         = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method to create a site collection with Url exceeding the max length.
                this.adminsAdapter.CreateSite(urlExceedMaxLength, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            Site.Log.Add(LogEntryKind.Debug, "If the Soap fault returned when set the length of Url exceeding 128 characters, MS-ADMINS_R1028 can be verified.");

            // Verify MS-ADMINS requirement: MS-ADMINS_R1028
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                1028,
                @"[In CreateSiteSoapIn]If Url's length not including ""http://ServerName""  exceeds 128 characters, the server  MUST return a SOAP fault.");
        }
示例#10
0
        public void MSADMINS_S02_TC04_CreateSiteFailed_UrlInvalidFormat()
        {
            bool isSoapFaultReturn = false;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid             = lcids.Languages[0];
            string title            = TestSuiteBase.GenerateUniqueSiteTitle();
            string urlInvalidFormat = Common.GetConfigurationPropertyValue("TransportType", this.Site) + "://" + "sites/" + title;
            string description      = TestSuiteBase.GenerateRandomString(20);
            string webTemplate      = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLogin       = Common.GetConfigurationPropertyValue("OwnerLogin", this.Site);
            string ownerName        = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail       = TestSuiteBase.GenerateEmail(20);
            string portalUrl        = TestSuiteBase.GeneratePortalUrl(20);
            string portalName       = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call CreateSite method to create a site collection with invalid Url format.
                this.adminsAdapter.CreateSite(urlInvalidFormat, title, description, lcid, webTemplate, ownerLogin, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException)
            {
                isSoapFaultReturn = true;
            }

            Site.Log.Add(LogEntryKind.Debug, "If the Soap fault returned when set the url format invalid, MS-ADMINS_R1026 can be verified.");

            // Verify MS-ADMINS requirement: MS-ADMINS_R1026
            Site.CaptureRequirementIfIsTrue(
                isSoapFaultReturn,
                1026,
                @"[In CreateSiteSoapIn]If the URL does not comply with either of the two formats: http://ServerName:PortNumber/sites/SiteCollectionName or http://ServerName/sites/SiteCollectionName, the server  MUST return a SOAP fault.");
        }
示例#11
0
        public void MSADMINS_S02_TC11_CreateSiteFailed_OwnerLoginAccountNotExisted()
        {
            string strErrorCode = string.Empty;

            // Call GetLanguages method to obtain LCID values used in the protocol server deployment.
            GetLanguagesResponseGetLanguagesResult lcids = this.adminsAdapter.GetLanguages();

            Site.Assert.IsNotNull(lcids, "Get languages should succeed and a list of LCIDs should return. If no LCID returns the get languages method is failed.");

            int    lcid                 = lcids.Languages[0];
            string title                = TestSuiteBase.GenerateUniqueSiteTitle();
            string url                  = TestSuiteBase.GenerateUrlPrefixWithPortNumber() + title;
            string description          = TestSuiteBase.GenerateRandomString(20);
            string webTemplate          = Common.GetConfigurationPropertyValue("CustomizedTemplate", this.Site);
            string ownerLoginNotExisted = TestSuiteBase.GenerateRandomString(10);
            string ownerName            = TestSuiteBase.GenerateUniqueOwnerName();
            string ownerEmail           = TestSuiteBase.GenerateEmail(20);
            string portalUrl            = TestSuiteBase.GeneratePortalUrl(20);
            string portalName           = TestSuiteBase.GenerateUniquePortalName();

            try
            {
                // Call the CreateSite method to create a site collection with owner login name not existed.
                this.adminsAdapter.CreateSite(url, title, description, lcid, webTemplate, ownerLoginNotExisted, ownerName, ownerEmail, portalUrl, portalName);
            }
            catch (SoapException exp)
            {
                strErrorCode = Common.ExtractErrorCodeFromSoapFault(exp);
            }

            // If the returned error code equals to 0x80131600, then MS-ADMINS_R1022 can be captured.
            Site.CaptureRequirementIfAreEqual <string>(
                "0x80131600",
                strErrorCode,
                1022,
                @"[In CreateSiteSoapIn]If OwnerLogin is not an existing domain user account, the server MUST return a SOAP fault with error code 0x80131600.");
        }
        /// <summary>
        /// Validate GetLanguages response data getLanguagesResult when the response is received successfully.
        /// </summary>
        /// <param name="getLanguagesResult">The return value of GetLanguages operation.</param>
        private void ValidateGetLanguagesResponseData(GetLanguagesResponseGetLanguagesResult getLanguagesResult)
        {
            // If the response data is not null, which means the response have been received successfully, then the following requirement can be captured.
            Site.CaptureRequirementIfIsNotNull(
                getLanguagesResult,
                2075,
                @"[In GetLanguages][The schema of GetLanguages operation is defined as:] <wsdl:operation name=""GetLanguages"">
                        <wsdl:input message=""tns:GetLanguagesSoapIn"" />
                        <wsdl:output message=""tns:GetLanguagesSoapOut"" />
                    </wsdl:operation>");

            // If the response data is not null, which means the response have been received successfully, then the following requirement can be captured.
            Site.CaptureRequirementIfIsNotNull(
                getLanguagesResult,
                2082,
                @"[In GetLanguagesResponse][The schema of DeleteSiteResponse element is defined as:] <s:element name=""GetLanguagesResponse"">
                    <s:complexType>
                    <s:sequence>
                        <s:element minOccurs=""1"" maxOccurs=""1"" name=""GetLanguagesResult"">
                            <s:complexType>
                            <s:sequence>
                            <s:element name=""Languages"">
                                <s:complexType>
                                <s:sequence>
                                    <s:element maxOccurs=""unbounded"" name=""LCID"" type=""s:int"" />
                                </s:sequence>
                                </s:complexType>
                            </s:element>
                            </s:sequence>
                        </s:complexType>
                        </s:element>
                    </s:sequence>
                    </s:complexType>
                </s:element>");

            // The response have been received successfully, then the following requirement can be captured. 
            // If the following requirement is failed, the response can't be received successfully.
            Site.CaptureRequirement(
                93,
                @"[In GetLanguages]The client sends a GetLanguagesSoapIn request message and the server responds with a GetLanguagesSoapOut response message.");

            // The response have been received successfully, then the following requirement can be captured.
            // If the response is not received and parsed successfully, the test case will fail before this requirement is captured.
            Site.CaptureRequirement(
                98,
                @"[In GetLanguagesSoapOut]The SOAP body contains a GetLanguagesResponse element.");

            // If the lcid list in the response is not empty, then the following requirement can be captured.
            Site.CaptureRequirementIfIsTrue(
                getLanguagesResult.Languages.Length > 0,
                94,
                @"[In GetLanguagesResponse]GetLanguagesResult: Provides the locale identifiers (LCIDs) of languages used in the deployment.");
        }