Quantcast
Channel: New board topics in SmartBear Community
Viewing all 26529 articles
Browse latest View live

Can anyone give a guide on on to code(in Jscript) the selection of items in an Accordion?

$
0
0

Can anyone give a guide on how to code(in J script) the selection of items in an Accordion?


Does SoapUi version 5.2.0 non pro version allow for load testing without having LoadUI?

Script Libary - making it work when running from another step (eg. while looping)?

$
0
0

Can anyone help with a little issue when using a script Library (Like described here: https://community.smartbear.com/t5/SoapUI-Pro/How-to-write-a-reusable-script-Library/td-p/29499)

I use Ready Api 2.2, but my work should be possible to run at older versions and non pro versions of soapui.


I have a script that fetches some data and does some string manipulation in a property step just after my script. My script already uses testRunner and context - it works as a charm when just running a single testcase, BUT when I add a loop in my testcase, the context from the loop is passed to my script and suddenly it does not work.

I call my step from the loop teststep with:

 

testRunner.testCase.getTestStepByName("ContainerHelper 1").run(testRunner, context)

 

In my script this time named "ContainerHelper 1" I use the context to get the current step and the step afterwards.

 

def thisTestStepLocal = context.getCurrentStep()
def nextStepLocal = testRunner.testCase.getTestStepAt(currentStepIndLocal + 1)

 

However - now the context is the one from the loop-step, instead of the context from "ContainerHelper 1". For fun I just tried to add a property-step after my loop, and as expected it now uses this step for output instead of the property-step just after "ContainerHelper 1".

 

Can anyone help my: eg. by another way of getting the the current step and the step afterwards in my "ContainerHelper 1" when the script is run from another step,  eg. without using context or testRunner. Or another solution. I really like the idea of using a shared code Library and would like to keep it.

:-)

 

 

 

 

splitting PDF text to array

$
0
0

Hi,

I'm testing PDF file using PDFBox java class.

Everything properly set up and could strip text from pdf.

But problem is converting text to array...my function is like below

 

function ABCD(){
  var docObj = loadDocument("E:\\Temp\\Report100.pdf");
   //Create a text stripper object to get text 
  var textStripperObj = JavaClasses.org_apache_pdfbox_util.PDFTextStripper.newInstance();
  var text = textStripperObj.getText_2(docObj);  
  Log.Message('',text);
  var textArray = text.split('\r');
  Log.Message(textArray.Length);
  for (var i=0; i<25; i++){
    Log.Message( String(textArray[i])+ String(i));
  } 
}

From log message I could see correct text

but not in textArray... when debug it shows like below

 

debug resultsdebug results

 It is not possible to direct compare Old pdf with new pdf because page structure is defferent.

But contents are same (except dates ) for eg Old pdf has 6 pages but New pdf has 5 pages. 

 

Error when signing into QAComplete via Chrome

$
0
0

Has anyone else encountered the attached error when signing into QAComplete via Chrome?

 

It says "You do not have security authority to access, contact your security administrator for more information"

 

I am the security administrator and there is nothing wrong with my profile, verified by the fact I can successfully sign in via MS Edge.

 

Any ideas?

reading file from excel file

$
0
0

dear all,

I am new in soapUI and groovy scripts.

I am trying to retrieve data from excel files that I can insert into soapUI (not soapUI pro). I am trying some always get an error.

Right now, what I have is this:

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;

import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;


public class readExcelFile3 {
    public void readXLSXFile(String fileName) {
        InputStream XlsxFileToRead = null;
        XSSFWorkbook workbook = null;
        try {
            XlsxFileToRead = new FileInputStream(fileName);
            
            //Getting the workbook instance for xlsx file
            workbook = new XSSFWorkbook(XlsxFileToRead);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

        //getting the first sheet from the workbook using sheet name.
        // We can also pass the index of the sheet which starts from '0'.
        XSSFSheet sheet = workbook.getSheet("Sheet1");
        XSSFRow row;
        XSSFCell cell;
        
        //Iterating all the rows in the sheet
        Iterator rows = sheet.rowIterator();

        while (rows.hasNext()) {
            row = (XSSFRow) rows.next();
            
            //Iterating all the cells of the current row
            Iterator cells = row.cellIterator();

            while (cells.hasNext()) {
                cell = (XSSFCell) cells.next();

                if (cell.getCellType() == XSSFCell.CELL_TYPE_STRING) {
                    System.out.print(cell.getStringCellValue() + " ");
                } else if (cell.getCellType() == XSSFCell.CELL_TYPE_NUMERIC) {
                    System.out.print(cell.getNumericCellValue() + " ");
                } else if (cell.getCellType() == XSSFCell.CELL_TYPE_BOOLEAN) {
                    System.out.print(cell.getBooleanCellValue() + " ");

                } else { // //Here if require, we can also add below methods to
                            // read the cell content
                            // XSSFCell.CELL_TYPE_BLANK
                            // XSSFCell.CELL_TYPE_FORMULA
                            // XSSFCell.CELL_TYPE_ERROR
                }
            }
            System.out.println();
            try {
                XlsxFileToRead.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
    
    public static void main(String[] args) {
        readExcelFile3 readXlsx = new readExcelFile3();
        readXlsx.readXLSXFile("/Users/Documents/soapUIworkspace/skyvva/testExcelFile.xlsx");    
    }
}

 

----

this script is just basic script to tell me the basic concepts the works. When I run the code in eclipse, it works. But when I run it in soapUI, I have errors.

error messages:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script4.groovy: 9: unable to resolve class org.apache.poi.xssf.usermodel.XSSFSheet @ line 9, column 1. import org.apache.poi.xssf.usermodel.XSSFSheet; ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class org.apache.poi.xssf.usermodel.XSSFSheet @ line 9, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1225) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:178) at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Script4.groovy: 8: unable to resolve class org.apache.poi.xssf.usermodel.XSSFRow @ line 8, column 1. import org.apache.poi.xssf.usermodel.XSSFRow; ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class org.apache.poi.xssf.usermodel.XSSFRow @ line 8, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1225) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:178) at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Script4.groovy: 7: unable to resolve class org.apache.poi.xssf.usermodel.XSSFCell @ line 7, column 1. import org.apache.poi.xssf.usermodel.XSSFCell; ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class org.apache.poi.xssf.usermodel.XSSFCell @ line 7, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1225) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:178) at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Script4.groovy: 10: unable to resolve class org.apache.poi.xssf.usermodel.XSSFWorkbook @ line 10, column 1. import org.apache.poi.xssf.usermodel.XSSFWorkbook; ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class org.apache.poi.xssf.usermodel.XSSFWorkbook @ line 10, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:149) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1225) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:178) at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 4 errors

 

 

please help. I want to retrieve data from excel files and insert in the xml in the soapUI via parameter and I do not know how to  set parameter in soapUI.

 

thanks in advance.

 

TestComplete 12.41 and Microsoft Edge Issue

$
0
0

Testcases not working on Edge, It just navigate to the URL but not able to detect all objects within the page.
I  already followed the setup for Microsoft Edge. 

How i can save only limited (say first 100 lines) SOAP UI response in excel sheet using groovy scrip

$
0
0

I want to save only first 100 lines from response which is in JSON format.

 

Because when my response is too big then excel can not hold the entire response in one cell.

so it gets crashed, and i am not able to save a single response in excel.

 

I am using SOAP UI free version. so need groovy script to limit the response, so that excel didnt get crashed.


File invalid after transfer via mtom

$
0
0

Hi!

 

I'm trying to transfer a html file with some long lines via SoapUI / Mtom. After transfering the file is invalid. The long lines are splittet. (We tried with open source SoapUI Version 5.2.1 and with the latest version 5.4.0)

 

Example:

 

line before transfering:

<link rel="colorSchemeMapping" href="https://www.mosaico.bonfiglioli.com/eGenius/eGeniushelp/MOSAICO/SERIEA/A050_file/colorschememapping.xml">

 

line after tranfering:

<link rel=3D"themeData" href=3D"https://www.mosaico.bonfiglioli.com/eGenius=
/eGeniushelp/MOSAICO/SERIEA/A050_file/themedata.thmx">

 

I Is there any possibility to avoid this behavior?

 

Thanks for your help!

 

Regards,

Hanna

 

Running test step from other project with custom property with different value?

$
0
0

Hi,

 

I'm using groovy script to run a test step in one project from a different project. This work very well, however, in project one I would like to run the test step from a different project with custom property with value x. And in project two I would like to run the same test step from a different project but with custom property with value y. Is there a way to do this?

an internal error occurred while running the mozila firefox in test complete

$
0
0

I update my firefox and now it's not working on Test Complete script.
I reinstall firefox 39.0.3 but was not successfull to excute it on Test Complete.
Please tell me  settings for firefox , so finally i can excute it 

Create a test for remote applications

$
0
0

Hello,

We have a machine for running the test but the Java applications are on remote computers. We would like to test these applications, how can we create automated tests for this applications and then test them?

Is it possible to create a shared folder in our network with the *.jar files for adding the location of the application when creating an automated test or the application needs to be in the same machine that TestComplete?

Thank you for your time.

Regards,

Maite

 

 

Multiply insetning at one request

$
0
0

Dear team, 

I am a new at SoaPUI tool, but have one task. 

The task is to upload new clients with a help of simple request and I have to do it one by one, it is ok, for 1-10 clients but not for 20+ up to 230. So how can I do multiply uploading or running current script putting clients list at once? 

 

So in bold at the first part I have to put one by one client numbers, and it is ok for couple, but not for many.

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" *******************************">
<soapenv:Header/>
<soapenv:Body>
<****Smiley FrustratedFData>
<!--Optional:-->
<PRID>675907</PRID>
</****Smiley FrustratedFData>
</soapenv:Body>
</soapenv:Envelope>

 

 

here is in bold I get a system respond equally to customer number I've put it before at the request. 

 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ns0Smiley FrustratederviceStatus xmlns:ns0="http://***************************">
<OverallStatus>Success</OverallStatus>
<StatusMessage>
<StatusMessageCode>0000</StatusMessageCode>
<StatusMessageDescription>Oracle Account Number:***** with Party ID:************** has been created successfully.</StatusMessageDescription>
</StatusMessage>
</ns0Smiley FrustratederviceStatus>
</s:Body>
</s:Envelope>

 

 

 

How can I improve this request for customer list? 

How to edit the existing excel sheet using groovy, without creating a copy of the same excel.

$
0
0

Want To edit the existing excel sheet using groovy, without creating a copy of the same excel 

Want to  Update the Results in the same excel from which the data is fetched only the output  should be  written in different cells.

 

I m  new to Soap UI.

 

 

Qt Testing Modules (12.41.2879)

$
0
0

Hello,

 

Is there an E.T.A for the Qt Testing Modules, specifically Qt 4.8 for TestComplete 12.41?

 

Thanks,

 

James


what are different ways to can create object repository.

$
0
0

I was working in one application where control properties changes in every build and customer requirement is to design a framework to accommodate this behavior .how I can design the object repository.

Corrupted UTF-8 content when reloading a source file in a Properties step

$
0
0

Hi,

 

In both 5.3.0 and 5.4.0 versions of SoapUI (free version), I load a properties source file which contains a property value containing the character Ã.

If I use the "Loads property value from an external file" button, the import is ok: I can see the à in the loaded value.

But if I click on the "Reloads the current properties from the selected file" button (after having chosen the same file on disk), the loaded value is corrupted.

 

It seems to be a bug. Thanks in advance for your support.

How to find the date differences in terms of days?

$
0
0

I there way to find the date differences in terms of day?

ex. Date1 - Date2 = x days

 

Is there wait method for download to complete?

$
0
0

I want to pause the test complete execution until the file downloading completes. 

How can I do that?

Overwriting log file - command line

$
0
0

How to force test complete to overwrite test results (Log file) when starting tests from command line ?

I tried to use exportLog parameter but each time it requires non-existing log file name. How to resolve it?

 

My command line:

TestComplete.exe "C:\[path to project]" /r /pSmiley TonguerojectName /t:"Group1" /exportLog:"C:\TestLogs\Log.html"

Viewing all 26529 articles
Browse latest View live