Télécharger Part 3 | Broery Marantika - Angin Malam | Toshishita no Otoko

XML Integration Testing

All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
 5 views
of 31

Please download to get full document.

View again

Description
OBST. XMLT. XML Integration Testing. XML Portals connect distributed Components Composition of a Component Component Integration Testing Web-based Test Environment XML Testbed XML Document Type Defintion Structure of an XML Interface XML Connectors XML Data Tree
Share
Transcript
OBSTXMLTXML Integration Testing XML Portals connect distributed ComponentsComposition of a ComponentComponent Integration TestingWeb-based Test EnvironmentXML TestbedXML Document Type DefintionStructure of an XML InterfaceXML ConnectorsXML Data TreeA Letter as a Data interchange ProtocolDevelopment of an XML InterfaceInterface Test CycleSample Order Entry InterfacesObject Structure of an Order Entry SystemData Structure of an OrderOrder Test ProcedureDTD for an OrderXML Document for an OrderOrder Test DataCustomer Test ProcedureCustomer Test DataArticle Test ProcedureArticle Test DataInvoice Test ProcedureDTD for an InvoiceXML Document for an invoiceSample InvoiceSummary11521631741851962072182223910242511261227132814OBSTXMLT-1XML Portals connect distributed Components------------------------------------------Data Data Data Data Data Data Data ComponentComponentComponentComponentComponentComponentComponentComponentData exchange in Form of XML DocumentsOBSTXMLT-2Composition of a Component--------------XML InputDocumentsXML ReaderClassGuiClassesXML WriterClassXML OutputDocumentsImportClassesProcessingClassesExportClasses11AccessClassAccessClassPersistent ObjectsOBSTXMLT-3Component Integration TestingPredecessorComponentComponent under Test (CUT)XMLImportComponentXMLExportTestdata aregenerated oredited or replayedfrom a previous testTest Results are scanned or validated or recorded for future useSuccessorComponentTesting the Interfaces between distributed ComponentsOBSTXMLT-4Web-based Test EnvironmentHTMLHTMLFront EndBack EndTestWork StationWebWork StationXMLGeneratorXMLValidatorClientCompo-nentsXMLDocumentsMessageQueueXMLDocumentsServerCompo-nentsXMLDocumentsSOAPMQ-SeriesDatabaseOBSTXMLT-5XML TestbedComponentInterfaceInterfaceBaseClassSubClassSubClass1*TestdataGeneratorExpectedResultsValidatorValidationReportXML Instances XML ComparisonXMLDocumentXMLDocumentImportExportTestdataGeneratorDatabaseValidatorValidationReportSQLSQLOBSTXMLT-6XML Document Type DefintionXML DeclarationStylesheet ReferenceStylesheet(XSL, CSS)Prolog?DOCTYPE_Declaration[Reference to external DTD Subset][internal DTD Subset]externalDTD_Subset XML-Daten<Entity> <Attributes></Entity><Entity> <Attributes></Entity><Entity> <Attributes></Entity>external Data(Entity)XMLDocumentvalidInstance+external Data(Entity)external Data(Entity)OBSTXMLT-7Structure of an XML Interface<!DOCTYPE name [<!ATTLIST elementname (attributename attributetype presetting)> attributetype := (CDATA | ID | IDREFS | ENTITIY | ENTITIES | NMTOKEN | NMTOKENS | NOTATION (name (I name)...) presetting := (#REQUIRED | #IMPLIED | [#FIXED]) Value wert := (“literal" | ‘literal' | entity_reference)<!ELEMENT name contentmodel><contentmodel := EMPTY | ANY | data | modelgroup | mixed data := (#PCDATA) modelgroup := (Connector | sequence) [?|*|+]]OBSTXMLT-8XML ConnectorsConnectors: , z.B. X,Y = Sequence X and Y | z.B. X|Y = or X or Y ? z.B. X? = optional X can occur optionally + z.B. X+ = 1:n X can occur 1 to n times * z.B. X* = 0:n X can occur 0 to n timesOBSTXMLT-9XML Data TreeInterfaceHeaderBodyFooting+ElemElemElemElemGroupElemElemElemElem|??ElemElemOBSTXMLT-10A Letter as a Data Interchange ProtocolLetter?*ReferenceDateAddressReceiverTextGreetingSender++?NameStreetCityNameTitleOBSTXMLT-11Development of an XML InterfaceXMLParserInterfaceAnalyzerDTDDesignerXMLEditorRequestDocument Type Definition (DTD)or a Schema (XSD)Req.-AnalysisDocumentAnalysisInterfaceSpecificationStructureDesignDocumentDesignXMLGeneratorXML-DTDTestOBSTXMLT-12Interface Test CycleResultsArgu-mentsStorageStoreTesterTesterEnterTestdataEnterexpectedResultsActualInputsGenerateInput Docu-mentsExpectedOutputsGenerateOutput Docu-mentsCapture/ReplayFeedback XMLDocumentXMLDocumentGeneratorTestValidatorComparisonReportOBSTXMLT-13Sample Order Entry InterfacesHeaderItemsInvoiceCustomerOrderClassXMLDocumentBillingClassCustomerCustomerClassArticleClassSQL-Tab.SQL-Tab.CustomerDataArticleDataOBSTXMLT-14Object Structure of an Order Entry SystemOrder+OrdernumberCustomernumberDeliverymodeDeliverydateOrderItem CustomerItemnumberArticlenumberItemamount?CustomernumberCustomeraddressCustomercreditrateCustomerpointsArticle++NameStreetCityArticlenumberArticlenameArticleamountArticlepriceMinimumamountOBSTXMLT-15Data Structure of an OrderOrderCustomernumberCustomeraddressOrdernumberDateNr_Items_orderedItems++NameStreetCityDayMonthYearOrderItemItemnumberArticlenumberItemamountOBSTXMLT-16Order Test ProcedureXML.Object:: Order{ assert pre CustomerNr = range (00000001:99999999); assert pre OrderNr = range (1+1); assert pre OrderDate = Day, Month, Year; assert pre Day = range (01:31); assert pre Month = range (01:12); assert pre Year = range (00:99); assert pre Nr_Items_ordered = set (1, 5, 9); assert pre OrderItem [1:9] = ItemNr, ArticleNr, itemAmount); assert pre ItemNr = range (1+1); assert pre ArticleNr = set (0, 400, 650, 900, 942, 969, 988, 999); assert pre ItemAmount = range (1+99);}OBSTXMLT-17DTD for an Order<?xml version = '1.0'?><!DOCTYPE Auftrag [<!--* Customer Order for Underwear *--><!ELEMENT Order (CustomerNumber, OrderNumber, OrderDate, Nr_Items_ordered, OrderItem*)><!ELEMENT CustomerNr (#PCDATA)><!ELEMENT OrderNr (#PCDATA)><!ELEMENT OrderDate (Day, Month, Year)><!ELEMENT Day (#PCDATA)><!ELEMENT Month (#PCDATA)><!ELEMENT Year (#PCDATA)><!ELEMENT Nr_Items_ordered (#PCDATA)><!ELEMENT OrderItem (ItemNr, ArticleNr, ItemAmount)><!ELEMENT ItemNr (#PCDATA)><!ELEMENT ArticleNr (#PCDATA)><!ELEMENT ItemAmount (#PCDATA)>]>OBSTXMLT-18XML Document for an Order<Order> <CustomerNr>00000001</CustomerNr> <OrderNr>000001</OrderNr> <OrderDate> <Day>01</Day> <Month>03</Month> <Year>00</Year> </OrderDate> <Nr_Items_ordered>3</Nr_Items_ordered> <Order_Item> <ItemNr>1</ItemNr> <ArticleNr>969</ArticleNr> <ItemAmount>1</ItemAmount> </Order_Item> <Order_Item> <ItemNr>2</ItemNr> <ArticleNr>942</ArticleNr> <ItemAmount>100</ItemAmount> </OrderItem> <OrderItem> <ItemNr>3</ItemNr> <ArticleNr>988</ArticleNr> <ItemAmount>199</ItemAmount> </OrderItem></Order>OBSTXMLT-19Order Test DataCustomerNrOrderNrOrderDateItems_orderedOrderItemsDayMonYearNrArtNrArticleNameItemAmount0000000100000101030031969Büstenhalter 12942Straps1003988Slip200001262540000000002030021650Panties3002400Unterrock400999999990000000003030051942Straps5002969Büstenhalter9993988Slip9994650Panties9995400Unterrock999OBSTXMLT-20Customer Test ProcedureSQL.Object:: Customer{ assert pre CustomerNr = range (00000001:99999999); assert pre CusomerAddress = Name, Street, Zip, City; assert pre Name = set ("Feldbusch, Verona", "Schiffer, Claudia", "Illner, Maybritt", "Christiansen, Sabine", "Buster, Dolly"); assert pre Street = set ("Eroticastr. 9", "Modellstr. 66", "Ossistr. 89", "Wessistr. 49", "Pornostr. 77"); assert pre Zip = set ("55555", "44444", "11111", "22222", "66666"); assert pre City = set ("Koeln", "Duesseldorf", "Berlin", "Hamburg", "Prag"); assert pre Credit = set (1, 2, 3, 4, 0); assert pre Points = range (1000 + 1000);}OBSTXMLT-21Customer Test DataCustomerNrCustomerAddressCreditPointsNameStreetZipCity00000001Feldbusch, VeronaEroticastr. 955555Köln1100000126254Schiffer, ClaudiaModellstr. 6644444Düsseldorf2150011117777Illner, MaybrittOssistr. 8911111Berlin3200055555555Christiansen, SabineWessistr. 4922222Hamburg4400099999999Buster, DollyPornostr. 7766666Prag00OBSTXMLT-22Article Test ProcedureSQL:Object:: Article{ assert pre ArticleNr = set (400, 650, 942, 969, 988, 999); assert pre ArticleName = set ("Unterrock", "Panties", "Straps", "Büstenhalter", "Slip", "Bluse"); assert pre ArticlesonStock = range (1000 - 100); assert pre ArticlePrice = range (0 + 99,99); assert pre MinimumAmount = range (100 + 100); assert post ArticlesonStock = ArticlesonStock - Order.OrderItem.ItemAmount if (ArticlesonStock > Order.OrderItem.ItemAmount); assert post BackOrderSwitch = 1 if (ArticlesonStock < MinimumAmount);}OBSTXMLT-23Article Test DataArticleNrArticleNameArticlesonStockArticlePriceMinimumAmount400Unterrock 500199,99100650Panties1500 59,99500942Straps1000 99,99500969Büstenhalter 600 82,50200988Slip 300150,00200999Bluse 200150,40200OBSTXMLT-24.1Invoice Test ProcedureXML.Object:: Invoice{ assert post InvoiceNr = set (1:9999); assert post InvoiceDate = Day, Month, Year; assert post Day = OrderDate.Day; assert post Month = OrderDate.Month; assert post Year = OrderDate.Year; assert post DueDate = DueDay, DueMonth, DueYear; assert post DueDay = Day + 15 if (Day < 16 & Month ! = 2); assert post DueDay = Day - 15 if (Day < 15 & Month ! = 2); assert post DueDay = Day + 14 if (Day > 15 & Month = 2); assert post DueDay = Day - 14 if (Day > 14 & Month = 2); assert post DueMonth = Month if (Day < 16 & Month ! = 2) | (Day < 15 & Month = 2)); assert post DueMonth = Month + 1 if (Day > 15 & Month ! = 2) | (Day > 14 & Month = 2) & (Month < 12)); assert post DueMonth = 1 if (Day > 15 & Month = 12); assert post DueYear = Year if (Month < 12) | (Month = 12 & Day < 16); assert post DueYear = Year + 1 if (Month = 12 & Day > 16); assert post BillingItem = ArticleNr, Articlename, ArticlePrice, ItemAmount, ItemPrice; assert post ArticlePrice = ArticleNr -> Article.ArticlePrice; assert post ItemAmount = OrderNr -> Order.ItemNr -> OrderItem.ItemAmount; assert post itemPrice = ArticlePrice * ItemAmount; assert post TotalPrice = sum (ItemPrice [1:9]; assert post SalesTax = TotalPrice * TaxRate; asssert post AmouuntDue = TotalPrice + SalesTax;}OBSTXMLT-24.2OBSTXMLT-25DTD for an Invoice<?xml version = '1.0'?><!DOCTYPE Invoice [<!--* Invoice for a Customer Order *--><!ELEMENT Invoice ( InvoiceNr, CustomerName, InvoiceDate, DueDate, BillingItem+, TotalPrice, SalesTax, AmountDue)><!ELEMENT InvoiceNr (#PCDATA)><!ELEMENT CustomerName (#PCDATA)><!ELEMENT InvoiceDate (Day, Month, Year)><!ELEMENT DueDate (Day, Month, Year)><!ELEMENT Day (#PCDATA)><!ELEMENT Month (#PCDATA)><!ELEMENT Year (#PCDATA)><!ELEMENT BillingItem (ArticleNr, Articlename, ArticlePrice, ItemAmount, ItemPrice)><!ELEMENT ArticleNr (#PCDATA)><!ELEMENT ArticleName (#PCDATA)><!ELEMENT ArticlePrice (#PCDATA)><!ELEMENT ItemAmount (#PCDATA)><!ELEMENT ItemPrice (#PCDATA)><!ELEMENT TotalPrice (#PCDATA)><!ELEMENT SalesTax (#PCDATA)><!ELEMENT AmountDue (#PCDATA)> ]>OBSTXMLT-26.1XML Document for an Invoice<Invoice> <InvoiceNr>0001</InvoiceNr> <CustomerName>Feldbusch,Verone</CustomerName> <InvoiceDate> <Day>01</Day> <Month>03</Month> <Year>00</Year> </InvoiceDate> <DueDate> <Day>16</Day> <Month>03</Month> <Year>00</Year> </DueDate> <BillingItem> <ArticleNr>969</ArticleNr> <Articlename>Buestenhalter</Articlename> <ArticlePrice>82,50</ArticlePrice> <ItemAmount>1</ItemAmount> <ItemPrice>82,50</ItemPrice> </BillingItem>OBSTXMLT-26.2 <BillingItem> <ArticleNr>942</ArticleNr> <Articlename>Straps</Articlename> <ArticlePrice>99,99</ArticlePrice> <ItemAmount>100</ItemAmount> <ItemPrice>9999,00</ItemPrice> </BillingItem> <BillingItem> <ArticleNr>988</ArticleNr> <Articlename>Slip</Articlename> <ArticlePrice>150,00</ArticlePrice> <ItemAmount>200</ItemAmount> <ItemPrice>30000,00</ItemPrice> </BillingItem> <TotalPrice>40081,50</TotalPrice> <SalesTax>6413,04</SalesTax> <AmountDue>46494,54</AmouuntDue></Invoice>OBSTXMLT-27Sample InvoiceInvoice Nr: 0001 Invoice Date: 01.03.00Customer Name: Feldbusch, Verona Due Date: 16.03.00ArticleNrArticlenameArticlePriceItemAmountitemPrice969 Büstenhalter 82,50 1 82,50942 Straps 99,99 100 9999,00988 Slip 150,00 200 30000,00 Total Price: 40081,50 Sales Tax: 6413,04 Amount Due: 46494,54OBSTXMLT-28Summary Analyize the Component Interactions & Interfaces  Specifiy the Input Testdata Procedures Specifiy the Output Validation Procedures Generate the XML Testdata Documents Execute the Test Validate the XML Output Documents Control the Interface & Interaction Coverage
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks