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

SoapUI 5.4.0: testrunner.bat/testrunner.sh skips resources

$
0
0

I use simple project with single step in my testcase: POST request to ENDPOINT/api/users. And it has one simple assertion for 200 status.

When I run the test case in SoapUI 5.3.0 then I see results and everything is ok. But in 5.4.0 version I get 404 error because it sends requests to ENDPOINT/

It's not reproducible in GUI. It is reproducible via testrunner.bat and testrunner.sh


Cannot download resolved swagger.json thru API ?

How to see the progress of a subtestcase

$
0
0

In case I execute a test case , I can see which test step is running right now.

But How can I see if this test case is called by an another test case.

In Soap ui free I just doubleclicked of the called test case and it opened in a new window .

I also can not see the results of the test steps, the xml which was sent and the response .

 

Reducing time of test maintanence

$
0
0
I'm wondering what are your solutions/tips to reduce test maintenance time ? What's your experience in that area ?

In TestComplete ,The object properties changes adhoc. See details below

$
0
0

Details of the Application

Desktop Application, objects are identified as Winforms object. Few objects are not identified in testcomplete. So We are using Open Application. Please find the below settings that are used. but the object browser changes frequently. Even it changes Winform Objects.

 

In Current Project Properties,

General - Native TextObjects on Top, Native MSAA in last but one, NativeUIA is at the bottom

MSAA - * (For All Objects)

UI Automation - * (For All objects)

Text Recognition - * (For Accepted windows & Extended Support)

 

Additional information:

 

Objects Class Name : WindowsForms10.Windo.8.app.0.1ca0192_r40_ad1

For same object, We are getting UIA object (UIAObject) & MSAA objects too.

When we are using Highlight options, it is not highlighting correctly

The picture showed in object browser is not clear

We are using Descriptive Programming.

 

Please let me know if any more information is required.

 

Thanks in Advance.

 

 

Please suggest an Object browser settings for Winform  + Windows Combination.

 

JMS Endpoint String does not contain a parameter at index 2

$
0
0

Hi

 

I want test an MQSeries Queue with SOAPUI 5.3 and HERMES. When i launch my test i have following error message ?

 

JMS Endpoint String does not contain a parameter at index 2, parameters:  [DTESTAPPLI2QDN_QVI001QA, queue_D.TEST.APPLI2.QDN_QVI.001.QA]

 

Why ?

Regards

 

 

how to close mongodb connection

$
0
0

I have a script that fetches data from mongodb

@Grab(group='com.gmongo', module='gmongo', version='1.5')

import com.gmongo.GMongo
import com.mongodb.MongoCredential
import com.mongodb.*
import com.mongodb.ServerAddress
import com.gmongo.*
import com.mongodb.MongoURI
import com.mongodb.DBCursor;
import com.mongodb.BasicDBObject;
import com.mongodb.BasicDBList
import org.bson.types.ObjectId

//define variables from mongo document
def mongo_name
def mongo_description
def mongo_type


//define mongo_variables and initiate mongo connection
def mongoendpoint = context.expand( '${#Project#mongoendpoint}' )
def mongocollection=context.expand( '${#Project#mongocollection_products}' )
def mongo= new GMongo (new MongoURI(mongoendpoint))
def db = mongo.getDB(mongocollection)
def collection = db.getCollection("ProductItems")

//define elements from API response
def api_productId = context.expand('${#Project#package_parent}')

//get document from mongo
DBCursor cursor=collection.find(_id : api_productId)
//log.info cursor

if (cursor.hasNext() )
{ DBObject obj = cursor.next()
//mongo_name=obj.name.toString()
}

 //close cursor
cursor.close()

My problem is that connection stays open until I shut down ReadyAPI which leads to too many open (and not closed) connections.

 

Is it anyway to explicitly close connection? (googled, but couldn't find a solution which would work)

error mesage java.lang.noclassdeffounderror

$
0
0

dear all

I have this script run

---

import org.apache.poi.ss.usermodel.*
import org.apache.poi.hssf.usermodel.*
import org.apache.poi.xssf.usermodel.*
import org.apache.poi.ss.util.*

def fs = new FileInputStream ("/Users/Documents/soapUIworkspace/logindata.xlsx")
Workbook wb = WorkbookFactory.create(fs)
def ws = wb.getSheet("Sheet1")
def r = ws.getPhysicalNumberOfRows()

for (def i=0; i<r; i++) {
    def row = ws.getRow(i)
    def c = row.getPhysicalNumberOfCells()

    for(def j=0; j<c;j++) {
        def cell = row.getCell(j)
        log.info cell.getStringCellValue()
    }
}
log.info r
 
wb.close()

 

.....

when I ran it, I got an error message "java.lang.noclassdeffounderror org/openxmlformats/schemas/spreadsheets/x2006/main/ctextensionlist" (attached). I am using soapUI-5.4.0 EB.

 

I already insert the jar files in the ext and lib folders.

 

please help


Can somebody suggest me what can be done if we are dealing forms having same name ?

Groovy sample script for cosmos DB connection

$
0
0

Please share a Sample groovy script on how to make connection with Azure cosmos db

Firefox Is Running In MultiProcess Mode .. TestComplete May Work With Firefox Incorrectly......

$
0
0

TestComplete May Work With FireFox Incorrectly.......PNGFireFox_Fix_Browser.Tabs.Remote.AutoStart_1And_2 - Changed_To_False.PNG

 

 

I ran a browser-based test (from: https://support.smartbear.com/testcomplete/videos/smartbear-academy-testcomplete-101-april-2017/), and, I got the error in the 1st screen shot.

 

Action Taken So Far:

A.) Used Test Complete Help Menu To Change FireFox To Single Process Mode. The Parameters: “browser.tabs.remote.autostart” and “browser.tabs.remote.autostart.2” have been set to “False” – as per instructions from the TestComplete Help File Regarding This Issue.




B.) Re-Recorded The Test. But, The Same Issue Arises.

 

 

Let me know what your thoughts are please.

 

 

 

 

 

 

ManualSAMLEntry - Outgoing WS-Security Configuration - WSSEntry (SAML (XML))

$
0
0

Hi

 

I was exploring option to add ManualSAMLEntry using groovy, which I do not have issues with. I am able to add ManualSAMLEntry using SoapUI API, however after adding I do not see the SAML assertion immediately under "Enter SAML Assertion" panel.

 

In order to see the updated Assertion I have to save the project (which is not an issue) and reload it to see the updated SAML Assertion.

 

Could someone please let me know how can I see the SAML Assertions immediately after adding using API.

 

image.png

 

 

I am getting the following error when i work with Hermes JMS (java.lang.NoClassDefFoundError: org/)

$
0
0

I am facing the following NoClassDefintionFound error: Please provide some solution

 

java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager
at com.fedex.mi.decorator.jms.FedexTibcoInitialContext.<init>(FedexTibcoInitialContext.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:261)
at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:80)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:122)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92)
at hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionSharedManager.java:81)
at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:91)
at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:104)
at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:142)
at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:190)
at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:570)
at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:387)
at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:323)
at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:122)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager
at java.net.URLClassLoader.findClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.findClass(LoaderSupport.java:130)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 26 more

 

 

Smartbear Test Extension in Google Chrome is corrupted

$
0
0

I have been using TestComplete to create automation tests in Google Chrome. Then it stopped connecting to Google Chrome and when I checked the extensions list in Chrome it has a warning on it that reads:

 

This extension may have been corrupted.

 

It will not allow me to Enable it. I tried deleting the extension and re installing it but it immediately had the warning message on it and cannot be enabled. I have also tried uninstalling Chrome and reinstalling it and it did not fix the issue either.

 

Any help would be greatly appreciated.

Could Not Set Up BreakPoint In Google Chrome; Among Other Issues

$
0
0

I ran a browser-based test (from: https://support.smartbear.com/testcomplete/videos/smartbear-academy-testcomplete-101-april-2017/), and, I was not able to set up a breakpoint (using Google Chrome).

I Could Not Set Up A BreakPoint In The Test. The BreakPoint Was For A Text Entry. But The BreakPoint Red Highlight Window Covered The Entire Browser Window… Could It Be Due To Compatibility Issues ?

I Am Using Google Chrome Version 6.2.03202.94 (Official Build) [64-Bit]

Also, I Noticed That There Were Fewer Steps Than I Expected (i.e. Compared To Test Steps) In The Steps Window.

On Replaying The Test, I Get: "System TimeOut" Errors From Internet Explorer & Not The Google Chrome Browser That I Used During The Test.
Google_Chrome_Replay_Errors.PNG


TestComplete upgrade for chrome v63

$
0
0

After every few months due to Chrome updates we have to update TestComplete. Having a node lock license its a pain. I end up spending hours for each upgrade running into new issues every time no matter how carefully done.The process I use for new release:

 

Deactivate license
Uninstall TC (if version change instead o patch, e.g. 10.6 -> 12.1)
Upgrade new version
Activate license

 

Some of the problems I run into:
- License does not deactivate -
- Have to do offline deactivation,
- then offline deactivation does not work,
- then when it does complete finally, it does not deactivate on my licence page.

- Sentinel (the license manager) with TestComplete does uninstall correctly, restart the VM and do the whole process again

- Then sometime we run into problems with regenerating licenses
- Then it does not activate, have to do offline activation sometimes.

 

We have 5 VMs and I start getting nightmares when I have to upgrade.

 

project cannot be run, because there are no enabled test items that can be run.

$
0
0

Hi everyone,

I have a TestComplete project with several test items, some f them are selected  in the Test Items page of the project editor (especially the top item is, and some directly below). 

If I right-click the project in the Project Explorer and click "run myProject [Project]", the tests run as desired.

 

In Visual Studio, when I add a "TestComplete 12 test" item and select the project suite containing the project (.pjs file) or the project itself (mds file), the tree structure appears as in the Test Items view, with the same items selected.

 

However, a test run will fail, saying that the "project cannot be run, because there are no enabled test items that can be run. ".

 

Strange thing is that all is perfectly fine for other projects in the same project suite.

 

Thanks in advance,

Florian.

Showing Alerts on the Userforms

$
0
0

Hello,

 

I'm using the Userforms to triggers some tests. To do some user input validations on the Userform itself, I wanted to use Alerts, but couldn't find a way to do it for the Userforms. Any suggestions or ideas would be really appreciated!

 

Thank you

Abhi

I am getting the following error when i work with Hermes JMS (java.lang.NoClassDefFoundError: org/)

$
0
0

I am facing the following NoClassDefintionFound error: Please provide some solution

 

java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager
at com.fedex.mi.decorator.jms.FedexTibcoInitialContext.<init>(FedexTibcoInitialContext.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:261)
at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:80)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:122)
at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92)
at hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionSharedManager.java:81)
at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:91)
at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:104)
at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:142)
at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:190)
at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:570)
at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:387)
at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:323)
at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:122)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager
at java.net.URLClassLoader.findClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.findClass(LoaderSupport.java:130)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 26 more

 

 

Is it possible save a SOAP UI project in multiple files instead to have everything in an XML file?

$
0
0

Hi Guys,

 

I'm working with the free version of SOAP UI but I'm having problems because my project is saved in one XML so it make more difficult make marge if multiple people are working on the same project.

 

Is there any way to save the project in multiple files? Preferably divided in folder/sub-folder how is showed in SOAP UI?

 

Thanks so much

Carlo

Viewing all 26529 articles
Browse latest View live