<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="./spec.xsl" ?>

<spec title="BPEL Mapper Test Specification" version="1.4" author = "Victoria Zhukovskaya" author-email="VictoriaZ@netbeans.org"  last-updated = "03 September 2007">
<intro>This specification provides a usecases of work with help BPEL Mapper in the Java Studio Enterpris. </intro>



<caseblock name="Test of BPEL Mapper View">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Travel Reservation Example.</setup>
        
	<usecase name ="Open/close BPEL Mapper View">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper".</action>
            <action>Close the View.</action>
            <result>BPEL Mapper View should be opened and empty.</result>
            <result>BPEL Mapper View should be closed.</result>
	</usecase>
	<usecase name ="Check content of BPEL Mapper View">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper".</action>
            <action>Select TrevelReservationService.bpel node on Projects Tree and double click on the node.</action>
            <action>Select CopyItineraryIn Assign activity on bpel diagram.</action>
            <action>Close the View of Mapper.</action>
            <action>CopyItineraryIn Assign activity is selected. Invoke from main menu "Window"->"Other"->"BPEL Mapper".</action>            
            <action>Close the View of Mapper.</action>
            <result>BPEL Mapper View should be opened and empty.</result>
            <result>BPEL Mapper View should be opened and empty.</result>
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>BPEL Mapper View should be closed.</result>
            <result>BPEL Mapper View has a content.</result>
	</usecase>
	<usecase name ="Check Datetime button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper".Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>            
            <action>Press on Datetime button.</action>
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>There are 'Duration Literal', 'Current Date', 'Curent Time' and 'Current Date <![CDATA[&]]> Time' subitems.</result>
 	</usecase>
	<usecase name ="Check Operator button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>            
            <action>Press on Operator button.</action>
  
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>There are 'Greater Then', 'Greater or Equal', 'Less Then', 'Less or Equal', 'Addition', 'Subtraction', 'Multiplication', 'Div', 'Mod', 'Negativ', 'EQUAL', 'Not Equal' subitems.</result>
 	</usecase>
	<usecase name ="Check Boolean button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Press on Boolean button.</action>
 
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>There are 'True', 'False', 'AND', 'OR', 'Not', 'Lang', 'Boolean'  subitems.</result>
 	</usecase>
            
	<usecase name ="Check  String button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Press on String button.</action>

            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>>There are 'Starts With', 'Substring Before', 'Contains', 'String', 'Translate', 'Normalize Space', 'String length', 'Substring After', 'Concat', 'String Literal', 'Substring' subitems.</result>
	</usecase>
	
        <usecase name ="Check Nodes button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Press on Nodes button.</action>
      
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>>There are 'last', 'Count', 'ID', 'Local Name', 'Name', 'Position', 'Namespace URI' subitems.</result>
	</usecase>
	<usecase name ="Check  Number button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Press on Number button.</action>

            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>>There are 'Number literal', 'Sum', 'Ceiling', 'Floor', 'Number', 'Round' subitems.</result>
	</usecase>
	<usecase name ="Check  BPEL button">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Press on BPEL button.</action>

            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.  There are seven buttons on the top of view: Datetime, Operator, Boolean, String, Nodes, Number, BPEL.</result>
            <result>>There is 'doXslTransform'.</result>
	</usecase>
        
	<usecase name ="Expand/Collapse Variables">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>          
            <action>Right click on Variables node on left panel of Mapper View and select Collapse.</action>
            <action>Right click on Variables node on left panel of Mapper View and select Expand</action>
            <action>Right click on Variables node on right panel of Mapper View and select Collapse.</action>
            <action>Right click on Variables node on right panel of Mapper View and select Expand</action>
            <result>BPEL Mapper View has a content. There are two Variables tree trees:  input and output trees.</result>
            <result>Variables tree is collapsed.</result>
            <result>Variables tree is expanded.</result>
            <result>Variables tree is collapsed.</result>
            <result>Variables tree is expanded.</result>
	</usecase>
	<usecase name ="Check BPEL Mapper View for While, If, Wait, ForEach, Assign, RepeatUntil activities">
            <action>Invoke from main menu "Window"->"Other"->"BPEL Mapper". Select TrevelReservationService.bpel node on Projects Tree and double click on the node. Select CopyItineraryIn Assign activity on bpel diagram.</action>           
            <action>Select HasAirline (If activity).</action>
            <action>Select Timer (Wait activity).</action>
            <action>Drag from Palette ForEach activity and drop on diagramm, select this activity.</action>
            <action>Drag from Palette While activity and drop on diagramm, select this activity.</action>
            <action>Drag from Palette While activity and drop on diagramm, select this activity.</action>
            <result>BPEL Mapper View has a content. There are two Variables trees:  input and output trees.</result>
            <result>BPEL Mapper View has a content for If activity.</result>
            <result>BPEL Mapper View has a content for Wait activity.</result>
            <result>>BPEL Mapper View has a content for While activity.</result>
            <result>>BPEL Mapper View has a content for  ForEach activity.</result>
            <result>>BPEL Mapper View has a content for  RepeatUntil activity.</result>
	</usecase>
        
        
</caseblock>        

<caseblock name="Test Operator Support for BPEL Mapper">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Synchronous BPEL Process Example. Bpel file has three integer variables and three boolean variables: <![CDATA[ <variable name="Variable1" type="xsd:int"/>  <variable name="Variable2" type="xsd:int"/> <variable name="Variable3" type="xsd:int"/> <variable name="Variable1b" type="xsd:boolean"/>  <variable name="Variable2b" type="xsd:boolean"/> <variable name="Variable3b" type="xsd:boolean"/>]]>  
        </setup>
        
	<usecase name ="Check Addition Operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Addition.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for addition operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on number2 for addition operator</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for addition operator</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select addition operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Addition Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 + $Variable2 ) </from><to variable="Variable3"/>  </copy>]]></result>
	</usecase>
	<usecase name ="Check Div operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Div.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for div operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on number2 for div operator</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for div operator</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select div operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Div Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy><from> ( $Variable1 div $Variable2 ) </from><to variable="Variable3"/>  </copy>]]></result>
	</usecase>
	<usecase name ="Check Mod operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Mod.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for Mod operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on number2 for Mod operator.</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for Mod operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select Mod operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Mod Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 mod $Variable2 ) </from><to variable="Variable3"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Multiplication operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Multiplication</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for Multiplication operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on number2 for Multiplication operator.</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for Multiplication operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select Multiplication operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Multiplication Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 * $Variable2 ) </from><to variable="Variable3"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Subtraction operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Subtraction</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for Subtraction operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on number2 for Subtraction operator.</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for Subtraction operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select Subtraction operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Subtraction Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 - $Variable2 ) </from><to variable="Variable3"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check EQUAL operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select EQUAL</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for EQUAL operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for EQUAL operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for EQUAL operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select EQUAL operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is EQUAL Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 = $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Greater or Equal operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select greater or equal</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for greater or equal operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for greater or equal operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for greater or equal operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select greater or equal operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is greater or equal Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 >= $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Greater Then operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select greater then.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for greater then operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for greater then operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for greater then operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select greater then operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is greater then Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 > $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Lesser or Equal operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select lesser or equal</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for lesser or equal operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for lesser or equal operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for lesser or equal operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select lesser or equal operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is lesser or equal Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 &lt;= $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>  
            
	<usecase name ="Check Lesser Then operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select greater then.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for lesser then operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for lesser then operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for lesser then operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select greater then operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is lesser then Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 &lt; $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Lesser Then operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select greater then.</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for lesser then operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for lesser then operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for lesser then operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select greater then operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is lesser then Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 &lt; $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Not Equal operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select EQUAL</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on any1 for not equal operator.</action>
            <action>Select Variable2 on left panel, drag Variable2, and drop on any2 for not equal operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return not_equal:boolean for not equal operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select not equal operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is not equal Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  any1.</result>
            <result>There is connection between Variable2 and  any2.</result>
            <result>There is connection between Variable3b and  return not_equal:boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1 != $Variable2 ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>        
	<usecase name ="Check Negative operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select Negative</action>
            <action>Select Variable1 on left panel, drag Variable1, and drop on number1 for Negative operator.</action>
            <action>Select Variable3 on right panel, drag Variable3, and drop on return number for Negative operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select Negative operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is Negative Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  number1.</result>
            <result>There is connection between Variable3 and  return number.</result>
            <result>There is <![CDATA[  <copy> <from>-$Variable1</from><to variable="Variable3"/> </copy>]]></result>
	</usecase>
</caseblock>        


<caseblock name="Test Boolean Support for BPEL Mapper">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Synchronous BPEL Process Example. Add to bpel Assign activity. Bpel file has three integer variables and three boolean variables: <![CDATA[ <variable name="Variable1" type="xsd:int"/>  <variable name="Variable2" type="xsd:int"/> <variable name="Variable3" type="xsd:int"/> <variable name="Variable1b" type="xsd:boolean"/>  <variable name="Variable2b" type="xsd:boolean"/> <variable name="Variable3b" type="xsd:boolean"/>]]>  
        </setup>    
	<usecase name ="Check Boolean operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Boolean button and select boolean.</action>
            <action>Select Variable1 on left panel, drag Variable1 and drop on object1 for boolean operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for boolean operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select boolean operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is boolean Operator on Mapper view.</result>
            <result>There is connection between Variable1 and  object1.</result>
            <result>There is connection between Varb3 and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>boolean($Variable1)</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check NOT operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Boolean button and select NOT</action>
            <action>Select Variable1b on left panel, drag Variable1 and drop on boolean1 for NOT operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for NOT operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select NOT operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
        <result>There is NOT Operator on Mapper view.</result>
            <result>There is connection between Variable1b and  boolean1.</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>not($Variable1b)</from><to variable="Variable3b" </copy>]]></result>
	</usecase>
	<usecase name ="Check True operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Boolean button and select true</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for true operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select true operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is true Operator on Mapper view.</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>true()</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check False operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Boolean button and select false</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for false operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select false operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is false Operator on Mapper view.</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>false()</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Lang operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select string literal.</action>
            <action>Press on Boolean button and select lang</action>
            <action>Select string literal on view, drag it  and drop on string1 lang false operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for lang operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select false operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is string literal Operator on Mapper view.</result>
            <result>There is lang Operator on Mapper view.</result>
            <result>There is connection between string literal and  string1</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>lang('')</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
        	<usecase name ="Check AND operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select AND</action>
            <action>Select Variable1b on left panel, drag Variable1b, and drop on boolean1 for AND operator.</action>
            <action>Select Variable2b on left panel, drag Variable2b, and drop on boolean2 for AND operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for AND operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select AND operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is AND Operator on Mapper view.</result>
            <result>There is connection between Variable1b and  boolean1.</result>
            <result>There is connection between Variable2b and  boolean2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1b and $Variable2b ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check OR operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on Operator button and select OR</action>
            <action>Select Variable1b on left panel, drag Variable1b, and drop on boolean1 for OR operator.</action>
            <action>Select Variable2b on left panel, drag Variable2b, and drop on boolean2 for OR operator.</action>
            <action>Select Variable3b on right panel, drag Variable3b, and drop on return boolean for OR operator.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select OR operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is OR Operator on Mapper view.</result>
            <result>There is connection between Variable1b and  boolean1.</result>
            <result>There is connection between Variable2b and  boolean2.</result>
            <result>There is connection between Variable3b and  return boolean.</result>
            <result>There is <![CDATA[  <copy> <from> ( $Variable1b or $Variable2b ) </from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>

</caseblock>        

<caseblock name="Test String Support for BPEL Mapper">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Synchronous BPEL Process Example. Add to bpel Assign activity. Bpel file has four string, three boolean and three integer variables: <![CDATA[ <variable name="Variable1b" type="xsd:boolean"/>  <variable name="Variable2b" type="xsd:boolean"/> <variable name="Variable3b" type="xsd:boolean"/> <variable name="Variable1str" type="xsd:string"/>  
<variable name="Variable2str" type="xsd:string"/> 
<variable name="Variable3str" type="xsd:string"/>
<variable name="Variable4str" type="xsd:string"/>
     <variable name="Variable1" type="xsd:int"/>  
    <variable name="Variable2" type="xsd:int"/> 
    <variable name="Variable3" type="xsd:int"/> 
    
]]>  
        </setup>        
	<usecase name ="Check Concat operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select concat.</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string for concat.</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on str(string) for concat.</action>
            <action>Select Variable3str on right panel, drag Variable3str and drop on return string for concat.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select concat operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is concat Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string.</result>
            <result>There is connection between Variable2str and  str(string). And there is one more  str(string) argument on concat operator element.</result>
            <result>There is connection between Variable3str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>concat($Variable1str, $Variable2str)</from><to variable="Variable3str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Substring After operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select substring after.</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for substring after.</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on string2 for substring after.</action>
            <action>Select Variable3str on right panel, drag Variable3str and drop on return string for substring after.</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select substring after operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is substring after Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2str and  string2.</result>
            <result>There is connection between Variable3str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>substring-after($Variable1str, $Variable2str)</from><to variable="Variable3str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Substring Before operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select substring before</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for substring before</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on string2 for substring before</action>
            <action>Select Variable3str on right panel, drag Variable3str and drop on return string for substring before</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select substring before operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is substring before Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2str and  string2.</result>
            <result>There is connection between Variable3str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>substring-before($Variable1str, $Variable2str)</from><to variable="Variable3str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Starts With operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select starts with</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for starts with</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on string2 for starts with</action>
            <action>Select Variable3str on right panel, drag Variable3b and drop on return boolean for starts with</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select starts with operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is starts with Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2str and  string2.</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>starts-with($Variable1str, $Variable2str)</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Contains operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select contains</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for contains</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on string2 for contains</action>
            <action>Select Variable3str on right panel, drag Variable3b and drop on return boolean for contains</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select contains operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is contains Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2str and  string2.</result>
            <result>There is connection between Variable3b and  return boolean</result>
            <result>There is <![CDATA[  <copy> <from>contains($Variable1str, $Variable2str)</from><to variable="Variable3b"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check String operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select string</action>
            <action>Select Variable1str on left panel, drag Variable1b and drop on object1? for string</action>
            <action>Select Variable3str on right panel, drag Variable3str and drop on return string for string</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select string operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is string Operator on Mapper view.</result>
            <result>There is connection between Variable1b and  object1?.</result>
            <result>There is connection between Variable3str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>string($Variable1b)</from><to variable="Variable3str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check String Literal operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select string literal.</action>
            <action>Double click on string literal element and enter 'mystring'. Press enter.</action>
            <action>Select Variable3str on right panel, drag Variable4str and drop on 'mystring' for string literal</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select string literal operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is string literal Operator on Mapper view.</result>
            <result>There is 'mystring' in string literal Operator.</result>
            <result>There is connection between Variable4str and  'mystring'.</result>
            <result>There is <![CDATA[  <copy> <from>'mystring'</from><to variable="Variable4str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Translate operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select translate</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for translate</action>
            <action>Select Variable2str on left panel, drag Variable2str and drop on string2 for translate</action>
            <action>Select Variable3str on left panel, drag Variable3str and drop on string3 for translate</action>
            <action>Select Variable4str on right panel, drag Variable4str and drop on return string for translate</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select translate operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is translate Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2str and  string2.</result>
            <result>There is connection between Variable3str and  string3.</result>
            <result>There is connection between Variable4str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>translate($Variable1str, $Variable2str, $Variable3str)</from><to variable="Variable4str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Substring operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select substring</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1 for substring</action>
            <action>Select Variable2str on left panel, drag Variable2 and drop on number2 for substring</action>
            <action>Select Variable3str on left panel, drag Variable3 and drop on number3? for substring</action>
            <action>Select Variable4str on right panel, drag Variable4str and drop on return string for substring</action>
            <action>Select Source View for bpel file.</action>
            <action>Select Design View for bpel file. Select substring operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is substring Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1.</result>
            <result>There is connection between Variable2 and  number2.</result>
            <result>There is connection between Variable3 and  number3?.</result>
            <result>There is connection between Variable4str and  return string.</result>
            <result>There is <![CDATA[  <copy> <from>substring($Variable1str, $Variable2, $Variable3)</from><to variable="Variable4str"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check String Length operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select string length</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1? for string length</action>
            <action>Select Variable3str on right panel, drag Variable3 and drop on return number for string length</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select string length operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is string length Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1?.</result>
            <result>There is connection between Variable3 and  return number</result>
            <result>There is <![CDATA[  <copy> <from>string-length($Variable1str)</from><to variable="Variable3"/> </copy>]]></result>
	</usecase>
	<usecase name ="Check Normalize Space operator">
            <action>Select Assign Activity. Invoke from main menu "Window"->"Other"->"BPEL Mapper". </action>
            <action>Press on String button and select string length</action>
            <action>Select Variable1str on left panel, drag Variable1str and drop on string1? for normalize space</action>
            <action>Select Variable3str on right panel, drag Variable4str and drop on return string for normalize space</action>
            <action>Select Source View for bpel file.</action>
        <action>Select Design View for bpel file. Select normalize space operator on BPEL Mapper View. Press Del. Save All.</action>
            <result>BPEL Mapper View has a content.</result>
            <result>There is normalize space Operator on Mapper view.</result>
            <result>There is connection between Variable1str and  string1?.</result>
            <result>There is connection between Variable4str and  return string</result>
            <result>There is <![CDATA[  <copy> from>normalize-space($Variable1str)</from><to variable="Variable4str"/> </copy>]]></result>
	</usecase>
</caseblock>        
<caseblock name="Test Number Support for BPEL Mapper">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Synchronous BPEL Process Example. Add to bpel Assign activity. Bpel file has two integer variables and one string variable: <![CDATA[ <variable name="Variable1" type="xsd:int"/>  <variable name="Variable2" type="xsd:int"/> <variable name="Variable1str" type="xsd:string"/> ]]>. Change element element name="paramA" to xsd file to  element: <![CDATA[<element name="paramA" type="xsd:string" minOccurs="0" maxOccurs="18" id="MyID1"></element>]]>.
        </setup>        
	<usecase name ="Check Cailing operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select ceiling item.</action>
            <action>Connect Variable1 from left panel of Mapper view  and number1 on ceiling operator on Mapper view.</action>
            <action>Connect Variable2 from right panel of Mapper view  and return number on ceiling operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select ceiling element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is ceiling element on Mapper view.</result>
            <result>There is connection between Variable1 on left panel of Mapper view and number1 on ceiling operator on Mapper view.</result>
            <result>There is connection between Variable2 on right panel of Mapper view and return number on ceiling operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>ceiling($Variable1)</from><to variable="Variable2"/> </copy> ]]> for assign activity.</result>
            <result>There is no ceiling element on Mapper view.</result>
	</usecase>
       	<usecase name ="Check Floor operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select floor item.</action>
            <action>Connect Variable1 from left panel of Mapper view  and number1 on floor operator on Mapper view.</action>
            <action>Connect Variable2 from right panel of Mapper view  and return number on floor operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select floor element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is floor element on Mapper view.</result>
            <result>There is connection between Variable1 on left panel of Mapper view and number1 on floor operator on Mapper view.</result>
            <result>There is connection between Variable2 on right panel of Mapper view and return number on floor operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>floor($Variable1)</from> <to variable="Variable2"/> </copy> ]]> for assign activity.</result>
            <result>There is no floor element on Mapper view.</result>
	</usecase>
        <usecase name ="Check Round operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select round item.</action>
            <action>Connect Variable1 from left panel of Mapper view  and number1 on round operator on Mapper view.</action>
            <action>Connect Variable2 from right panel of Mapper view  and return number on round operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select round element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is round element on Mapper view.</result>
            <result>There is connection between Variable1 on left panel of Mapper view and number1 on round operator on Mapper view.</result>
            <result>There is connection between Variable2 on right panel of Mapper view and return number on round operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>round($Variable1)</from><to variable="Variable2"/> </copy> ]]> for assign activity.</result>
            <result>There is no round element on Mapper view.</result>
	</usecase>
        <usecase name ="Check Number operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select number item.</action>
            <action>Connect Variable1str from left panel of Mapper view  and object1? on number operator on Mapper view.</action>
            <action>Connect Variable2 from right panel of Mapper view  and return number on number operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select number element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is number element on Mapper view.</result>
            <result>There is connection between Variable1str on left panel of Mapper view and object1? on number operator on Mapper view.</result>
            <result>There is connection between Variable2 on right panel of Mapper view and return number on number operator on Mapper view.</result>
            <result>There is <![CDATA[<copy><from>number($Variable1str)</from><to variable="Variable2"/> </copy> ]]> for assign activity.</result>
            <result>There is no number element on Mapper view.</result>
	</usecase>
        <usecase name ="Check Number literal operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select number literal item.</action>
            <action>Double click on number literal element on Mapper view and enter '18'. Press Enter.</action>
            <action>Connect Variable2 from right panel of Mapper view  and '18' on number literal operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select number literal element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is number literal element on Mapper view.</result>
            <result>There is '18' on number literal on Mapper view.</result>
            <result>There is connection between Variable2 on right panel of Mapper view and '18' on number literal operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>18</from><to variable="Variable2"/> </copy> ]]> for assign activity.</result>
            <result>There is no number literal element on Mapper view.</result>
	</usecase>
            <usecase name ="Check Sum operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Number button and select Sum item.</action>
            <action>Connect inputVar/inputType/paramA from left panel of Mapper view  and node-set1 on Sum operator on Mapper view.</action>
             <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return number on Sum operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select number literal element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Sum element on Mapper view.</result>
            <result>There is connection between inputVar/inputType/paramA on right panel of Mapper view and node-set1 on Sum operator on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return number on Sum operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>sum($inputVar.inputType/paramA)</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no Sum element on Mapper view.</result>
	</usecase>

</caseblock> 
<caseblock name="Test Node Support for BPEL Mapper">
	<purpose>Work with windows of the BPEL Mapper.</purpose>
        <setup>Start IDE. Create Synchronous BPEL Process Example. Add to bpel Assign activity. Bpel file has two integer variables and one string variable: <![CDATA[ <variable name="Variable1" type="xsd:int"/>  <variable name="Variable2" type="xsd:int"/> <variable name="Variable1str" type="xsd:string"/> ]]>. Change element name="paramA" from xsd file to  element: <![CDATA[<element name="paramA" type="xsd:string" minOccurs="0" maxOccurs="18" id="MyID1"></element>]]>.
        </setup>        
	<usecase name ="Check Count operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Node button and select Count item.</action>
            <action>Connect inputVar/inputType/paramA from left panel of Mapper view  and node-set1 on Count operator on Mapper view.</action>
            <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return number on Count operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select Count element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Count element on Mapper view.</result>
            <result>There is connection between inputVar/inputType/paramA on left panel of Mapper view and node-set1 on Count operator on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return number on Count operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>count($inputVar.inputType/paramA)</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no Count element on Mapper view.</result>
	</usecase>
	<usecase name ="Check Local Name operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Node button and select Local Name item.</action>
            <action>Connect inputVar/inputType/paramA from left panel of Mapper view  and node-set1? on Local Name operator on Mapper view.</action>
            <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return string on Local Name operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select Local Name element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Local Name element on Mapper view.</result>
            <result>There is connection between inputVar/inputType/paramA on left panel of Mapper view and node-set1? on Local Name operator on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return string on Local Name operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>local-name($inputVar.inputType/paramA)</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no Local Name element on Mapper view.</result>
	</usecase>
	<usecase name ="Check  Name operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Node button and select Name item.</action>
            <action>Connect inputVar/inputType/paramA from left panel of Mapper view  and node-set1? on  Name operator on Mapper view.</action>
            <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return string on  Name operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select  Name element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Name element on Mapper view.</result>
            <result>There is connection between inputVar/inputType/paramA on left panel of Mapper view and node-set1? on  Name operator on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return string on  Name operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>name($inputVar.inputType/paramA)</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no  Name element on Mapper view.</result>
	</usecase>
	<usecase name ="Check  Namespace URI operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Node button and select Namespace URI item.</action>
            <action>Connect inputVar/inputType/paramA from left panel of Mapper view  and node-set1? on  Namespace URI operator on Mapper view.</action>
            <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return string on  Namespace URI operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select Namespace URI element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Namespace URI element on Mapper view.</result>
            <result>There is connection between inputVar/inputType/paramA on left panel of Mapper view and node-set1? on  Namespace URI operator on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return string on  Namespace URI operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>namespace-uri($inputVar.inputType/paramA)</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no  Namespace URI element on Mapper view.</result>
	</usecase>
	<usecase name ="Check  Position operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Press Node button and select Position item.</action>
            <action>Connect outputVar/resultType/paramA from right panel of Mapper view  and return number on  Position operator on Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select  Position element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Position element on Mapper view.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and return number on  Position operator on Mapper view.</result>
            <result>There is <![CDATA[<copy> <from>position()</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no  Position element on Mapper view.</result>
	</usecase>    
	<usecase name ="Check Last operator">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Right-Click on  inputVar/inputType/paramA from left  panel of Mapper view and select "New Predicate".</action>
            <action>Press Node button and select Last item on Predicate window.</action>
            <action>Connect Predicate from right panel of Predicate view  and return number on Last operator on Predicate view.</action>
            <action>Press Ok.</action>
            <action>Connect inputVar/inputType/paramA[last()] from left panel of Mapper view  and outputVar/resultType/paramA from right panel of Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Select  Last element on Mapper view and press Del. </action>
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Predicate window.</result>
            <result>There is Last element on Mapper view.</result>
            <result>There is connection between Predicate on left panel of Predicate view and return number on  Last operator on Predicate view.</result>
            <result>Predicate window is closed.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and inputVar/inputType/paramA[last()] from left panel of Mapper view.</result>
            <result>There is <![CDATA[<copy>  <from>$inputVar.inputType/paramA[last()]</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is no connection between outputVar/resultType/paramA on right panel of Mapper view and inputVar/inputType/paramA[last()] from left panel of Mapper view.</result>
	</usecase>    
	<usecase name ="Check New/Edit/Delete Predicate menu items">
            <action>Invoke "Window" -> "Mapper" from main menu. Select assign activity on design view for bpel file.</action>
            <action>Right-Click on  inputVar/inputType/paramA from left  panel of Mapper view and select "New Predicate".</action>
            <action>Press Node button and select Last item on Predicate window.</action>
            <action>Connect Predicate from right panel of Predicate view  and return number on Last operator on Predicate view.</action>
            <action>Press Ok.</action>
            <action>Connect inputVar/inputType/paramA[last()] from left panel of Mapper view  and outputVar/resultType/paramA from right panel of Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view. Right click on  inputVar/inputType/paramA[last()] from left panel and select Edit Predicate. </action>
            <action>Select Last operator and press Del.</action>
            <action>Press Node button and select Position item on Predicate window.</action>
            <action>Connect Predicate from right panel of Predicate view  and return number on Position operator on Predicate view.</action>
            <action>Press Ok.</action>
            <action>Connect inputVar/inputType/paramA[position()] from left panel of Mapper view  and outputVar/resultType/paramA from right panel of Mapper view.</action>
            <action>Select Source view of bpel file.</action>
            <action>Select Design view of bpel file. Select assign activity on bpel view.  Right click on  inputVar/inputType/paramA[last()] from left panel and select Delete Predicate.Press Yes.</action>
            
            
            <result>There is Mapper view and the view has a content.</result>
            <result>There is Predicate window.</result>
            <result>There is Last element on Mapper view.</result>
            <result>There is connection between Predicate on left panel of Predicate view and return number on  Last operator on Predicate view.</result>
            <result>Predicate window is closed.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and inputVar/inputType/paramA[last()] from left panel of Mapper view.</result>
            <result>There is <![CDATA[<copy>  <from>$inputVar.inputType/paramA[last()]</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            <result>There is Predicate window. There is Last operator on Predicate view.</result>
            <result>There is no Last operator on Predicate view.</result>
            <result>There is Position element on Mapper view.</result>
            <result>There is connection between Predicate on left panel of Predicate view and return number on Position operator on Predicate view.</result>
            <result>Predicate window is closed.</result>
            <result>There is connection between outputVar/resultType/paramA on right panel of Mapper view and inputVar/inputType/paramA[position()] from left panel of Mapper view.</result>
            <result>There is <![CDATA[<copy>  <from>$inputVar.inputType/paramA[position()]</from><to>$outputVar.resultType/paramA</to> </copy> ]]> for assign activity.</result>
            
            <result>There is no connection between outputVar/resultType/paramA on right panel of Mapper view and inputVar/inputType/paramA[position()] from left panel of Mapper view.</result>
	</usecase>    
        
        
</caseblock>  
</spec>
