header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 23, 2008, 04:22:41 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: zxsoap
Welcome, Guest. Please login or register.
November 23, 2008, 04:22:41 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1] 2
1  soapUI / soapUI / Re: Create Groovy library? on: July 09, 2008, 02:55:27 pm
It worked...thank alot.
2  soapUI / soapUI / Re: Create Groovy library? on: July 08, 2008, 05:32:40 pm
Ole,

Here's my code used under Grooyy script. (If I remove the "testRunner.testCase.name" under println. It's working ok.)


def wReports = new soapui.Report.Rwrite()
wReports.fw ()

Here's class with .groovy

package soapui.Report
public class Rwrite
{
   import com.eviware.soapui.model.testsuite.TestRunner
   
public void  fw (TestRunner testRunner)
   {
       
    println "TestCase: " + testRunner.testCase.name
   }

}


Thanks,
zx


3  soapUI / soapUI / Re: Create Groovy library? on: July 07, 2008, 09:22:07 pm
Hi Ole,

It's still return Null as I used the following code.

public class Rwrite
{
   
   
public void  fw (TestRunner testRunner)
   {
       
    println "TestCase: " + testRunner.testCase.name
   }

}

Thanks,
zx
4  soapUI / soapUI / Re: Create Groovy library? on: July 01, 2008, 03:50:13 pm
Hi Ole,

Thank for you helps. Yes, I want to build groovy library class ( I used 2.0.2 Pro). I have an issue how to use "testRunner.testCase.name". I did include "import com.eviware.soapui.model.testsuite.TestRunner". But it could get a test case name (null value) at run time.

Here's what I want to do. I want to build a class which's going to get the test case name and write to text file at run time. I'm using  "testRunner.testCase.name". But have issue with it. Here's the I tried to build (not 100% complete yet)



package soapui.Report

import com.eviware.soapui.SoapUI
import com.eviware.soapui.model.testsuite.TestRunner

public class Rwrite
{
   
   
public void  fw ()
   {
     TestRunner testRunner
 
    println "TestCase: " + testRunner.testCase.name
   
}

Did I do something wrong? why testRunner.testCase.name's always return  NULL.

Thanks,
zx
5  soapUI / soapUI / Re: DataSource problem on: June 25, 2008, 10:09:26 pm
Hi Ole,

How can I refer to the corresponding DataSource steps for the start/end_date values? I have Start_date, End_date on the same Excel file with different sheet, but could not know how to set them up on the script values.

Thanks,
zx
6  soapUI / soapUI / Re: How to write test result to an excel file? on: June 23, 2008, 08:58:55 pm
Hi Ole,

Can you please tell me more detail on it? I could not get it.

Thanks,
zx
7  soapUI / soapUI / How to write a test result report from Groovy script? on: June 20, 2008, 06:12:19 pm
All,

I would like to like a test result from groovy script which iterates through data source (excel)? Basicly, I want to have a test result say like ..

Testcasexxx  run_datasource_1 Passed
Testcasexxx  run_datasource_2 Passed
Testcasexxx  run_datasource_3 Passed
Testcasexxx  run_datasource_4 Passed

Any suggestions?

Thanks,
zx


8  soapUI / soapUI / Re: Create Groovy library? on: June 20, 2008, 03:54:03 pm
All,

Here's my groovy scrip look like and I want to share it by all my testcases. Is it possible to create a library to hold it. I want to use it like a function library. I tried to create a java class but got the issue with import eviware....

groovyUtils = new com.eviware.soapui.support.GroovyUtils(context )
holder = groovyUtils.getXmlHolder ("searchTempT#Response")
def nname= holder.getNodeValues ("//name") 

for (n in nname)
{
 println n
}

Thanks,
zx
9  soapUI / soapUI / Re: DataSource problem on: June 20, 2008, 03:48:57 pm
Hi Ole,

Is it possible to have each of property response to one sheet in excel file? Yes, how to do it?

I could not able to configure this way. Ex, the request have start_date and end_date. I want to configure in the same excel file which have two sheets and start_date will get data from sheet1 and end_date will have data from sheet2. So far, I have no luck.

Thanks,
zx
10  soapUI / soapUI / Re: Where'a "Create Report" button in toolbar on: June 19, 2008, 07:27:43 pm
Hi Ole,

Here's it.

Thanks,
zx
11  soapUI / soapUI / Where'a "Create Report" button in toolbar on: June 19, 2008, 06:54:09 pm
All,

I used 2.0.2 Pro, I could not find "Create Report" button in toolbar. Anyone knows where's it?

Thanks,
zx
12  soapUI / soapUI / Re: How to write test result to an excel file? on: June 19, 2008, 05:03:13 pm
Hi Ole,

Can you tell us what directory from jexcelapi contains .java files should I include?

Thanks,
zx
13  soapUI / soapUI / Re: Help getting node value with groovy script on: June 18, 2008, 10:00:02 pm
Hi OLE,

How can I get a value node (ALL account_ID) which's occuring more then one time (see below respone)? Ex, my response return more than one account_id. Now I'm only get just the first accountID on xml response. But, I need to get all? I want to return all account_id (14,68,22,41).

Here's what I used:

roovyUtils = new com.eviware.soapui.support.GroovyUtils(context )
holder = groovyUtils.getXmlHolder ("getAccountPricingGroupsByPriceGroupID#Response")

accid = holder.getNodeValue("//account_id")
log.info (accid)


Here's the response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <ser-root:getIDResponse xmlns:ser-root="http://......com/amAccountDataServices.services">
         <getAccountPricingGroupsByPriceGroupIDRes>
            <responseStatus>
               <code>Success</code>
            </responseStatus>
            <pricingGroupAccount>
               <ArrayOfpricingGroupAccountItem>
                  <account_id>14</account_id>
                  <account_number>3819178372</account_number>
                  <account_type_code>123</account_type_code>
                 .......
                  <state_code>68</state_code>
               </ArrayOfpricingGroupAccountItem>
               <ArrayOfpricingGroupAccountItem>
                  <account_id>17</account_id>
                  <account_number>6099471829</account_number>
                  <account_type_code>123</account_type_code>
                  .......
               </ArrayOfpricingGroupAccountItem>
               <ArrayOfpricingGroupAccountItem>
                  <account_id>22</account_id>
                  <account_number>6092357899</account_number>
                  <account_type_code>123</account_type_code>
                  ....
               </ArrayOfpricingGroupAccountItem>
               <ArrayOfpricingGroupAccountItem>
                  <account_id>41</account_id>
                  <account_number>0451471007</account_number>
                  .......
               </ArrayOfpricingGroupAccountItem>
            </pricingGroupAccount>
         </getAccountPricingGroupsByPriceGroupIDRes>
      </ser-root:getIDResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks,
ZX
14  soapUI / soapUI / Re: groovy log to file on: June 18, 2008, 07:48:50 pm
Hi Ole,

I used 2.0.2 Pro Ver, but could not find <installdir>\bin\soapui-log4j.xml.

Do I need to store something else to get it?

Thanks,
zx
15  soapUI / soapUI / Create Groovy library? on: June 17, 2008, 11:08:47 pm
Hi All,

I want to create a Groovy library. Anyone tried it yet? Please, let me know.  I'm able to create a Java class, not Groogy scripts?

Thanks,
Tim
Pages: [1] 2


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header