Exemplo n.º 1
0
        private void set_StServiceCallActivity7_checkpoints(STActivityBase activity)
        {
            VTDPropertyInfoBase         stracturalOutputEnvelope = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)=\'Envelope\'][1]");
            IList <VTDPropertyInfoBase> stracturalPropsInfo      = new List <VTDPropertyInfoBase>();
            CpValObj ExpectedSchema = new CpValObj("<?xml version=\"1.0\" encoding=\"utf-16\"?><xs:schema xmlns=\"http://schemas.xmlsoap.o" +
                                                   "rg/soap/envelope/\" xmlns:vtd=\"hp.visual_test_designer\" elementFormDefault=\"quali" +
                                                   "fied\" targetNamespace=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http" +
                                                   "://www.w3.org/2001/XMLSchema\"><xs:import schemaLocation=\"EmbeddedResources/Fligh" +
                                                   "ts_SO\\webServices\\Flights_SO\\_5.xsd\" namespace=\"HP.SOAQ.SampleApp/Imports\" /><xs" +
                                                   ":attribute name=\"fullName\" type=\"xs:string\" /><xs:attribute name=\"group\" type=\"x" +
                                                   "s:string\" /><xs:attribute name=\"serialize\" type=\"xs:string\" /><xs:attribute name" +
                                                   "=\"argType\" type=\"xs:string\" /><xs:element name=\"Envelope\" type=\"Envelope\" /><xs:" +
                                                   "complexType name=\"Envelope\"><xs:sequence><xs:element minOccurs=\"0\" ref=\"Header\" " +
                                                   "/><xs:element minOccurs=\"1\" ref=\"Body\" /></xs:sequence><xs:anyAttribute processC" +
                                                   "ontents=\"lax\" /></xs:complexType><xs:element name=\"Header\" type=\"Header\" /><xs:c" +
                                                   "omplexType name=\"Header\"><xs:sequence xmlns=\"\"><xs:any minOccurs=\"0\" maxOccurs=\"" +
                                                   "unbounded\" processContents=\"lax\" /></xs:sequence><xs:anyAttribute processContent" +
                                                   "s=\"lax\" /></xs:complexType><xs:element name=\"Body\" type=\"Body\" /><xs:complexType" +
                                                   " name=\"Body\"><xs:sequence xmlns=\"\"><xs:element xmlns:q1=\"HP.SOAQ.SampleApp\" ref=" +
                                                   "\"q1:CreateFlightOrderResponse\" /></xs:sequence><xs:anyAttribute namespace=\"##any" +
                                                   "\" processContents=\"lax\"><xs:annotation><xs:documentation>Prose in the spec does " +
                                                   "not specify that attributes are allowed on the Body element</xs:documentation></" +
                                                   "xs:annotation></xs:anyAttribute></xs:complexType><xs:attribute name=\"mustUnderst" +
                                                   "and\"><xs:simpleType><xs:restriction base=\"xs:boolean\"><xs:pattern value=\"0|1\" />" +
                                                   "</xs:restriction></xs:simpleType></xs:attribute><xs:attribute name=\"actor\" type=" +
                                                   "\"xs:anyURI\" /><xs:simpleType name=\"encodingStyle\"><xs:annotation><xs:documentati" +
                                                   "on>\'encodingStyle\' indicates any canonicalization conventions followed in the co" +
                                                   "ntents of the containing element.  For example, the value \'http://schemas.xmlsoa" +
                                                   "p.org/soap/encoding/\' indicates the pattern described in SOAP specification</xs:" +
                                                   "documentation></xs:annotation><xs:list itemType=\"xs:anyURI\" /></xs:simpleType><x" +
                                                   "s:attribute name=\"encodingStyle\" type=\"encodingStyle\" /><xs:attributeGroup name=" +
                                                   "\"encodingStyle\"><xs:attribute ref=\"encodingStyle\" /></xs:attributeGroup><xs:elem" +
                                                   "ent name=\"Fault\" type=\"Fault\" /><xs:complexType name=\"Fault\" final=\"extension\"><" +
                                                   "xs:annotation><xs:documentation>Fault reporting structure</xs:documentation></xs" +
                                                   ":annotation><xs:sequence><xs:element name=\"faultcode\" type=\"xs:QName\" /><xs:elem" +
                                                   "ent name=\"faultstring\" type=\"xs:string\" /><xs:element minOccurs=\"0\" name=\"faulta" +
                                                   "ctor\" type=\"xs:anyURI\" /><xs:element minOccurs=\"0\" name=\"detail\" type=\"detail\" /" +
                                                   "></xs:sequence></xs:complexType><xs:complexType name=\"detail\"><xs:sequence><xs:a" +
                                                   "ny minOccurs=\"0\" maxOccurs=\"unbounded\" namespace=\"##any\" processContents=\"lax\" /" +
                                                   "></xs:sequence><xs:anyAttribute namespace=\"##any\" processContents=\"lax\" /></xs:c" +
                                                   "omplexType></xs:schema>", XmlTypeCode.None);

            stracturalPropsInfo.Add(stracturalOutputEnvelope);
            BaseCPRule StracturalRule = new StracturalRule(activity, ExpectedSchema, stracturalPropsInfo);

            activity.AddCheckpointRule(StracturalRule);

            // Checkpoint 2
            IVTDGetter    actualValueGetter2   = new VTDXPathGetter(new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='CreateFlightOrderResponse'][1]/*[local-name(.)='CreateFlightOrderResult'][1]/*[local-name(.)='TotalPrice'][1]"), XmlTypeCode.Float, false);
            IVTDSetter    actualValueSetter2   = new VTDCheckpointSetter(XmlTypeCode.Float);
            BindDirection actualBindDirection2 = new BindDirection(_flow.StServiceCallActivity7, actualValueGetter2, actualValueSetter2);
            CpValObj      valueActualObject2   = new CpValObj(actualBindDirection2, XmlTypeCode.Float, false);


            CpValObj    valueExpectedObject2 = new CpValObj(bind_dir7);
            ValueCPRule cpRule2 = new ValueCPRule(valueActualObject2, valueExpectedObject2, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule2);
        }
Exemplo n.º 2
0
        private void set_HTTPActivity5_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDObjectGetter(new VTDPropertyInfoBase("StatusCode"));
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.Int);
            BindDirection actualBindDirection1 = new BindDirection(_flow.HTTPActivity5, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.Int, false);
            CpValObj      valueExpectedObject1 = new CpValObj("200", XmlTypeCode.Int);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 3
0
        private void set_StServiceCallActivity10_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDXPathGetter(new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)='Envelope'][1]/*[local-name(.)='Body'][1]/*[local-name(.)='AccountDeleteResponse'][1]/*[local-name(.)='StatusMessage'][1]/*[local-name(.)='success'][1]"), XmlTypeCode.Boolean, false);
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.Boolean);
            BindDirection actualBindDirection1 = new BindDirection(_flow.StServiceCallActivity10, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.Boolean, false);
            CpValObj      valueExpectedObject1 = new CpValObj("true", XmlTypeCode.Boolean);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 4
0
        private void set_ConcatenateStringsActivity5_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDObjectGetter(new VTDPropertyInfoBase("Result"));
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.String);
            BindDirection actualBindDirection1 = new BindDirection(_flow.ConcatenateStringsActivity5, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.String, false);
            CpValObj      valueExpectedObject1 = new CpValObj("heybye", XmlTypeCode.String);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, StringCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 5
0
        private void set_ValidateXmlActivityRun11_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDXPathGetter(new VTDPropertyInfoBase("OutputProperties", "/*[local-name(.)='Arguments'][1]/*[local-name(.)='Result'][1]/*[local-name(.)='Valid'][1]"), XmlTypeCode.Boolean, false);
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.Boolean);
            BindDirection actualBindDirection1 = new BindDirection(_flow.ValidateXmlActivityRun11, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.Boolean, false);
            CpValObj      valueExpectedObject1 = new CpValObj("true", XmlTypeCode.Boolean);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 6
0
        private void set_AddActivity4_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDObjectGetter(new VTDPropertyInfoBase("Result"));
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.Decimal);
            BindDirection actualBindDirection1 = new BindDirection(_flow.AddActivity4, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.Decimal, false);


            CpValObj    valueExpectedObject1 = new CpValObj(bind_dir18);
            ValueCPRule cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 7
0
        private void set_ReplaceStringActivity4_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDObjectGetter(new VTDPropertyInfoBase("Result"));
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.String);
            BindDirection actualBindDirection1 = new BindDirection(_flow.ReplaceStringActivity4, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.String, false);


            CpValObj    valueExpectedObject1 = new CpValObj("{DataSource.Cambiar Texto_InputPropertiesOutputProperties_1!MainDetails.Result}", bind_dir11);
            ValueCPRule cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, StringCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);
        }
Exemplo n.º 8
0
        private void set_StServiceCallActivity4_checkpoints(STActivityBase activity)
        {
            VTDPropertyInfoBase         stracturalOutputEnvelope = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)=\'Envelope\'][1]");
            IList <VTDPropertyInfoBase> stracturalPropsInfo      = new List <VTDPropertyInfoBase>();
            CpValObj ExpectedSchema = new CpValObj("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<xs:schema xmlns:tns=\"http://schemas.xml" +
                                                   "soap.org/soap/envelope/\" targetNamespace=\"http://schemas.xmlsoap.org/soap/envelo" +
                                                   "pe/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\r\n  <xs:element name=\"Envelope\"" +
                                                   " type=\"tns:Envelope\" />\r\n  <xs:complexType name=\"Envelope\">\r\n    <xs:sequence>\r\n" +
                                                   "      <xs:element minOccurs=\"0\" ref=\"tns:Header\" />\r\n      <xs:element minOccurs" +
                                                   "=\"1\" ref=\"tns:Body\" />\r\n      <xs:any minOccurs=\"0\" maxOccurs=\"unbounded\" proces" +
                                                   "sContents=\"lax\" />\r\n    </xs:sequence>\r\n    <xs:anyAttribute processContents=\"la" +
                                                   "x\" />\r\n  </xs:complexType>\r\n  <xs:element name=\"Header\" type=\"tns:Header\" />\r\n  " +
                                                   "<xs:complexType name=\"Header\">\r\n    <xs:sequence>\r\n      <xs:any minOccurs=\"0\" m" +
                                                   "axOccurs=\"unbounded\" processContents=\"lax\" />\r\n    </xs:sequence>\r\n    <xs:anyAt" +
                                                   "tribute processContents=\"lax\" />\r\n  </xs:complexType>\r\n  <xs:element name=\"Body\"" +
                                                   " type=\"tns:Body\" />\r\n  <xs:complexType name=\"Body\">\r\n    <xs:sequence>\r\n      <x" +
                                                   "s:any minOccurs=\"0\" maxOccurs=\"unbounded\" namespace=\"##any\" processContents=\"lax" +
                                                   "\" />\r\n    </xs:sequence>\r\n    <xs:anyAttribute namespace=\"##any\" processContents" +
                                                   "=\"lax\">\r\n      <xs:annotation>\r\n        <xs:documentation>Prose in the spec does" +
                                                   " not specify that attributes are allowed on the Body element</xs:documentation>\r" +
                                                   "\n      </xs:annotation>\r\n    </xs:anyAttribute>\r\n  </xs:complexType>\r\n  <xs:attr" +
                                                   "ibute name=\"mustUnderstand\">\r\n    <xs:simpleType>\r\n      <xs:restriction base=\"x" +
                                                   "s:boolean\">\r\n        <xs:pattern value=\"0|1\" />\r\n      </xs:restriction>\r\n    </" +
                                                   "xs:simpleType>\r\n  </xs:attribute>\r\n  <xs:attribute name=\"actor\" type=\"xs:anyURI\"" +
                                                   " />\r\n  <xs:simpleType name=\"encodingStyle\">\r\n    <xs:annotation>\r\n      <xs:docu" +
                                                   "mentation>\'encodingStyle\' indicates any canonicalization conventions followed in" +
                                                   " the contents of the containing element.  For example, the value \'http://schemas" +
                                                   ".xmlsoap.org/soap/encoding/\' indicates the pattern described in SOAP specificati" +
                                                   "on</xs:documentation>\r\n    </xs:annotation>\r\n    <xs:list itemType=\"xs:anyURI\" /" +
                                                   ">\r\n  </xs:simpleType>\r\n  <xs:attribute name=\"encodingStyle\" type=\"tns:encodingSt" +
                                                   "yle\" />\r\n  <xs:attributeGroup name=\"encodingStyle\">\r\n    <xs:attribute ref=\"tns:" +
                                                   "encodingStyle\" />\r\n  </xs:attributeGroup>\r\n  <xs:element name=\"Fault\" type=\"tns:" +
                                                   "Fault\" />\r\n  <xs:complexType name=\"Fault\" final=\"extension\">\r\n    <xs:annotation" +
                                                   ">\r\n      <xs:documentation>Fault reporting structure</xs:documentation>\r\n    </x" +
                                                   "s:annotation>\r\n    <xs:sequence>\r\n      <xs:element name=\"faultcode\" type=\"xs:QN" +
                                                   "ame\" />\r\n      <xs:element name=\"faultstring\" type=\"xs:string\" />\r\n      <xs:ele" +
                                                   "ment minOccurs=\"0\" name=\"faultactor\" type=\"xs:anyURI\" />\r\n      <xs:element minO" +
                                                   "ccurs=\"0\" name=\"detail\" type=\"tns:detail\" />\r\n    </xs:sequence>\r\n  </xs:complex" +
                                                   "Type>\r\n  <xs:complexType name=\"detail\">\r\n    <xs:sequence>\r\n      <xs:any minOcc" +
                                                   "urs=\"0\" maxOccurs=\"unbounded\" namespace=\"##any\" processContents=\"lax\" />\r\n    </" +
                                                   "xs:sequence>\r\n    <xs:anyAttribute namespace=\"##any\" processContents=\"lax\" />\r\n " +
                                                   " </xs:complexType>\r\n</xs:schema>", XmlTypeCode.None);

            stracturalPropsInfo.Add(stracturalOutputEnvelope);
            BaseCPRule StracturalRule = new StracturalRule(activity, ExpectedSchema, stracturalPropsInfo);

            activity.AddCheckpointRule(StracturalRule);
        }
Exemplo n.º 9
0
        private void set_StServiceCallActivity4_checkpoints(STActivityBase activity)
        {
            VTDPropertyInfoBase         stracturalOutputEnvelope = new VTDPropertyInfoBase("OutputEnvelope", "/*[local-name(.)=\'Envelope\'][1]");
            IList <VTDPropertyInfoBase> stracturalPropsInfo      = new List <VTDPropertyInfoBase>();
            CpValObj ExpectedSchema = new CpValObj("<?xml version=\"1.0\" encoding=\"utf-16\"?><xs:schema xmlns=\"http://schemas.xmlsoap.o" +
                                                   "rg/soap/envelope/\" xmlns:vtd=\"hp.visual_test_designer\" elementFormDefault=\"quali" +
                                                   "fied\" targetNamespace=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http" +
                                                   "://www.w3.org/2001/XMLSchema\"><xs:import schemaLocation=\"EmbeddedResources/Claim" +
                                                   "Proce\\webServices\\ClaimProce\\_4.xsd\" namespace=\"http://hp.com/SOAQ/ServiceSimula" +
                                                   "tion/2010/demo/01/Imports\" /><xs:attribute name=\"fullName\" type=\"xs:string\" /><x" +
                                                   "s:attribute name=\"group\" type=\"xs:string\" /><xs:attribute name=\"serialize\" type=" +
                                                   "\"xs:string\" /><xs:attribute name=\"argType\" type=\"xs:string\" /><xs:element name=\"" +
                                                   "Envelope\" type=\"Envelope\" /><xs:complexType name=\"Envelope\"><xs:sequence><xs:ele" +
                                                   "ment minOccurs=\"0\" ref=\"Header\" /><xs:element minOccurs=\"1\" ref=\"Body\" /></xs:se" +
                                                   "quence><xs:anyAttribute processContents=\"lax\" /></xs:complexType><xs:element nam" +
                                                   "e=\"Header\" type=\"Header\" /><xs:complexType name=\"Header\"><xs:sequence xmlns=\"\"><" +
                                                   "xs:any minOccurs=\"0\" maxOccurs=\"unbounded\" processContents=\"lax\" /></xs:sequence" +
                                                   "><xs:anyAttribute processContents=\"lax\" /></xs:complexType><xs:element name=\"Bod" +
                                                   "y\" type=\"Body\" /><xs:complexType name=\"Body\"><xs:sequence xmlns=\"\"><xs:element x" +
                                                   "mlns:q1=\"http://hp.com/SOAQ/ServiceSimulation/2010/demo/01\" ref=\"q1:enterClaimRe" +
                                                   "sponse\" /></xs:sequence><xs:anyAttribute namespace=\"##any\" processContents=\"lax\"" +
                                                   "><xs:annotation><xs:documentation>Prose in the spec does not specify that attrib" +
                                                   "utes are allowed on the Body element</xs:documentation></xs:annotation></xs:anyA" +
                                                   "ttribute></xs:complexType><xs:attribute name=\"mustUnderstand\"><xs:simpleType><xs" +
                                                   ":restriction base=\"xs:boolean\"><xs:pattern value=\"0|1\" /></xs:restriction></xs:s" +
                                                   "impleType></xs:attribute><xs:attribute name=\"actor\" type=\"xs:anyURI\" /><xs:simpl" +
                                                   "eType name=\"encodingStyle\"><xs:annotation><xs:documentation>\'encodingStyle\' indi" +
                                                   "cates any canonicalization conventions followed in the contents of the containin" +
                                                   "g element.  For example, the value \'http://schemas.xmlsoap.org/soap/encoding/\' i" +
                                                   "ndicates the pattern described in SOAP specification</xs:documentation></xs:anno" +
                                                   "tation><xs:list itemType=\"xs:anyURI\" /></xs:simpleType><xs:attribute name=\"encod" +
                                                   "ingStyle\" type=\"encodingStyle\" /><xs:attributeGroup name=\"encodingStyle\"><xs:att" +
                                                   "ribute ref=\"encodingStyle\" /></xs:attributeGroup><xs:element name=\"Fault\" type=\"" +
                                                   "Fault\" /><xs:complexType name=\"Fault\" final=\"extension\"><xs:annotation><xs:docum" +
                                                   "entation>Fault reporting structure</xs:documentation></xs:annotation><xs:sequenc" +
                                                   "e><xs:element name=\"faultcode\" type=\"xs:QName\" /><xs:element name=\"faultstring\" " +
                                                   "type=\"xs:string\" /><xs:element minOccurs=\"0\" name=\"faultactor\" type=\"xs:anyURI\" " +
                                                   "/><xs:element minOccurs=\"0\" name=\"detail\" type=\"detail\" /></xs:sequence></xs:com" +
                                                   "plexType><xs:complexType name=\"detail\"><xs:sequence><xs:any minOccurs=\"0\" maxOcc" +
                                                   "urs=\"unbounded\" namespace=\"##any\" processContents=\"lax\" /></xs:sequence><xs:anyA" +
                                                   "ttribute namespace=\"##any\" processContents=\"lax\" /></xs:complexType></xs:schema>" +
                                                   "", XmlTypeCode.None);

            stracturalPropsInfo.Add(stracturalOutputEnvelope);
            BaseCPRule StracturalRule = new StracturalRule(activity, ExpectedSchema, stracturalPropsInfo);

            activity.AddCheckpointRule(StracturalRule);
        }
Exemplo n.º 10
0
        private void set_RESTActivityV24_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDXPathGetter(new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='CreatedOrderParams'][1]/*[local-name(.)='OrderNumber'][1]"), XmlTypeCode.UnsignedShort, false);
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.UnsignedShort);
            BindDirection actualBindDirection1 = new BindDirection(_flow.RESTActivityV24, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.UnsignedShort, false);
            CpValObj      valueExpectedObject1 = new CpValObj("0", XmlTypeCode.UnsignedShort);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.LargerThan, ">", false);

            activity.AddCheckpointRule(cpRule1);

            // Checkpoint 2
            IVTDGetter    actualValueGetter2   = new VTDXPathGetter(new VTDPropertyInfoBase("XMLResponse", "/*[local-name(.)='CreatedOrderParams'][1]/*[local-name(.)='TotalPrice'][1]"), XmlTypeCode.Decimal, false);
            IVTDSetter    actualValueSetter2   = new VTDCheckpointSetter(XmlTypeCode.Decimal);
            BindDirection actualBindDirection2 = new BindDirection(_flow.RESTActivityV24, actualValueGetter2, actualValueSetter2);
            CpValObj      valueActualObject2   = new CpValObj(actualBindDirection2, XmlTypeCode.Decimal, false);
            CpValObj      valueExpectedObject2 = new CpValObj("332.4", XmlTypeCode.Decimal);
            ValueCPRule   cpRule2 = new ValueCPRule(valueActualObject2, valueExpectedObject2, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule2);
        }
Exemplo n.º 11
0
        private void set_HTTPActivity4_checkpoints(STActivityBase activity)
        {
            // Checkpoint 1
            IVTDGetter    actualValueGetter1   = new VTDObjectGetter(new VTDPropertyInfoBase("StatusCode"));
            IVTDSetter    actualValueSetter1   = new VTDCheckpointSetter(XmlTypeCode.Int);
            BindDirection actualBindDirection1 = new BindDirection(_flow.HTTPActivity4, actualValueGetter1, actualValueSetter1);
            CpValObj      valueActualObject1   = new CpValObj(actualBindDirection1, XmlTypeCode.Int, false);
            CpValObj      valueExpectedObject1 = new CpValObj("200", XmlTypeCode.Int);
            ValueCPRule   cpRule1 = new ValueCPRule(valueActualObject1, valueExpectedObject1, PrimitiveTypeCP.EqualTo, "=", false);

            activity.AddCheckpointRule(cpRule1);

            // Checkpoint 2
            IVTDGetter    actualValueGetter2   = new VTDObjectGetter(new VTDPropertyInfoBase("ResponseBody"));
            IVTDSetter    actualValueSetter2   = new VTDCheckpointSetter(XmlTypeCode.String);
            BindDirection actualBindDirection2 = new BindDirection(_flow.HTTPActivity4, actualValueGetter2, actualValueSetter2);
            CpValObj      valueActualObject2   = new CpValObj(actualBindDirection2, XmlTypeCode.String, false);
            CpValObj      valueExpectedObject2 = new CpValObj("bears all <span style=\"font-style:italic;\">things</span>, believes all <span styl" +
                                                              "e=\"font-style:italic;\">things</span>, hopes all <span style=\"font-style:italic;\"" +
                                                              ">things</span>, endures all <span style=\"font-style:italic;\">things</span>.", XmlTypeCode.String);
            ValueCPRule cpRule2 = new ValueCPRule(valueActualObject2, valueExpectedObject2, StringCP.Contains, "Contains", false);

            activity.AddCheckpointRule(cpRule2);
        }