http://www.soapui.org/Web-and-HTTP/getting-started.html
This is how to add assertions once you have recorded the web session



Anything about Java, WebLogic, OSB, Linux etc.... this is my logbook of a navigation in the IT Technology ocean.
public static HttpClient wrapClient(HttpClient base) { try { SSLContext ctx = SSLContext.getInstance("TLS"); X509TrustManager tm = new X509TrustManager() { @Override public void checkClientTrusted( java.security.cert.X509Certificate[] arg0, String arg1) throws java.security.cert.CertificateException { // TODO Auto-generated method stub } @Override public void checkServerTrusted( java.security.cert.X509Certificate[] arg0, String arg1) throws java.security.cert.CertificateException { // TODO Auto-generated method stub } @Override public java.security.cert.X509Certificate[] getAcceptedIssuers() { // TODO Auto-generated method stub return null; } }; ctx.init(null, new TrustManager[]{tm}, null); SSLSocketFactory ssf = new SSLSocketFactory(ctx); ssf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); ClientConnectionManager ccm = base.getConnectionManager(); SchemeRegistry sr = ccm.getSchemeRegistry(); sr.register(new Scheme("https", ssf, 443)); return new DefaultHttpClient(ccm, base.getParams()); } catch (Exception ex) { return null; } }
fileName = sys.argv[1] print 'Loading properties from ', fileName propInputStream = FileInputStream(fileName) configProps = Properties() configProps.load(propInputStream) adminURL = configProps.get("admin.url") adminUserName = configProps.get("admin.userName") adminPassword = configProps.get("admin.password") connect(adminUserName, adminPassword, adminURL) try: edit() startEdit() cd('/') .... your code here validate() save() activate() except: dumpVariables() dumpStack() print 'Some error message here' print '' undo('true', 'y') cancelEdit('y')
xquery version "1.0" encoding "Cp1252"; declare namespace xf = "http://tempuri.org/FindPrice/"; declare function xf:FindPriceBinarySearch($loopDepth as xs:integer, $intProdId as xs:string, $prices as element()*, $startIndex as xs:integer, $endIndex as xs:integer) as element() { let $middleIndex := xs:integer( xs:integer(($endIndex - $startIndex) div 2) + xs:integer($startIndex)) let $middleElement := $prices[$middleIndex] let $middleProductId := $middleElement/product_id/text() return if ($loopDepth < 15 and $middleProductId < $intProdId) then xf:FindPriceBinarySearch($loopDepth + 1, $intProdId, $prices, $middleIndex, $endIndex) else if ($loopDepth < 15 and $middleProductId > $intProdId) then xf:FindPriceBinarySearch($loopDepth+ 1, $intProdId, $prices, $startIndex, $middleIndex) else $middleElement }; declare function xf:FindPrice($intProdId as xs:string, $prices as element()) as element() { xf:FindPriceBinarySearch(0, $intProdId, $prices//price, 1, count($prices//price)) }; declare variable $product_id as xs:string external; declare variable $prices as element() external; xf:FindPrice($product_id, $prices)
xquery version "1.0" encoding "Cp1252"; (:: pragma parameter="$anyType1" type="xs:anyType" ::) (:: pragma type="xs:anyType" ::) declare namespace xf = "http://tempuri.org/OSB%20Project%201/Sample/"; declare function xf:Sample($anyType1 as element(*)) as element(*) {{count($anyType1)} }; declare variable $anyType1 as element(*) external; xf:Sample($anyType1)
import java.util.ArrayList; import java.util.List; import java.util.concurrent.ConcurrentHashMap; import org.apache.xmlbeans.XmlObject; public class ArrayListMultimap { private ConcurrentHashMap<String, List> theMap = new ConcurrentHashMap<String, List<XmlObject>>(); public static ArrayListMultimap create(int i, int j) { return new ArrayListMultimap(); } public List<XmlObject> put(String key, XmlObject value) { List<XmlObject> previousvalue = (List<XmlObject>)theMap.get(key); if (previousvalue == null) { previousvalue = new ArrayList<XmlObject>(); previousvalue.add(value); theMap.put(key, previousvalue); } return previousvalue; } public int size() { return theMap.size(); } }
public class MultiThreadCPUEater implements Runnable { public static void main(String[] args) { for (int i = 0; i < 8; i++) { MultiThreadCPUEater multiThreadCPUEater = new MultiThreadCPUEater(); Thread thread = new Thread(multiThreadCPUEater); thread.start(); } } @Override public void run() { for (;;) { } } }I run top, press 1 and...
Cpu0 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu8 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu9 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu10 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu11 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu12 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu13 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu14 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu15 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu16 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu17 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu18 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu19 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu20 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu21 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu22 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu23 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
_ALSB_1342038918975.ear ResourceDescription_jms/QueueName_ResourceLink_13420390539690 ResourceDescription_jms/QueueName_JNDIName_13420390539711 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_RunAsPrincipalName_13420390539712 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_NetworkAccessPoint_13420390539723 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_DispatchPolicy_13420390539724 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_PassivateAsPrincipalName_13420390539725 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_JNDIName_13420390539736 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_RemoveAsPrincipalName_13420390539737 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_LocalJNDIName_13420390539738 WeblogicEnterpriseBean_RequestEJB-8889852126214353195--458f8ecd.13877990470.-7fd7_CreateAsPrincipalName_13420390539739 Pool_MaxBeansInFreePool_134203905397410 Pool_IdleTimeoutSeconds_134203905397411 TransactionDescriptor_TransTimeoutSeconds_134203905397412 ResourceDescription_jms/ConnectionFactory_ResourceLink_134203905397413 ResourceDescription_jms/ConnectionFactory_JNDIName_134203905397514 MessageDrivenDescriptor_ConnectionFactoryResourceLink_134203905397515 MessageDrivenDescriptor_DurableSubscriptionDeletion_134203905397516 MessageDrivenDescriptor_DistributedDestinationConnection_134203905397517 MessageDrivenDescriptor_DestinationResourceLink_134203905397618 MessageDrivenDescriptor_DestinationJNDIName_134203905398119 MessageDrivenDescriptor_JmsPollingIntervalSeconds_134203905398120 MessageDrivenDescriptor_MaxSuspendSeconds_134203905398121 MessageDrivenDescriptor_ProviderUrl_134203905398222 MessageDrivenDescriptor_ResourceAdapterJNDIName_134203905398223 MessageDrivenDescriptor_Use81StylePolling_134203905398224 MessageDrivenDescriptor_JmsClientId_134203905398225 MessageDrivenDescriptor_GenerateUniqueJmsClientId_134203905398226 MessageDrivenDescriptor_InitSuspendSeconds_134203905398327 MessageDrivenDescriptor_InitialContextFactory_134203905398328 MessageDrivenDescriptor_MaxMessagesInTransaction_134203905398329 MessageDrivenDescriptor_ConnectionFactoryJNDIName_134203905398330 WeblogicEjbJar_WorkManagers_134203905398431 SessionDescriptor_DebugEnabled_134203905400332 SessionDescriptor_CookieMaxAgeSecs_134203905400333 SessionDescriptor_InvalidationIntervalSecs_134203905400334 SessionDescriptor_TimeoutSecs_134203905400435 SessionDescriptor_MonitoringAttributeName_134203905400436 SessionDescriptor_MaxInMemorySessions_134203905400437 WeblogicApplication_FairShareRequests_134203905400438 WeblogicApplication_ResponseTimeRequests_134203905400439