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

Unexpected character encountered (lex state 10): '>'


Are there tutorials on how the If Then operation works in keyword tests

$
0
0

Hi,

 

I'm fairly new with TestComplete and would like to see an example of how the If Then operation works.  The support article did not help with what I'm trying to do.  I can't find videos on this topic either so I'm guessing there isn't one.

 

What I'm trying to accomplish is this:

 

If there is a pop up message, then run the child operation. Else, move to the next operation.  I've attached an image of my keyword test.

 

Thank you!

TestComplete Support Tableau

$
0
0

We used the tableau as our reporting tool for new application and wanted to check TestComplete support tableau objects ?


Thanks,
Suren

Error when updating DataSource property name

$
0
0

Steps:

In a dataSource step update a property name.

execute

 

Result:

An empty error window is shown. (as per the screenshot)

 

Change the name back to what it once was and it works correctly

java.lang.NoSuchMethodError: com.eviware.soapui.config.SettingsConfig.getEncryptedContent()[B

$
0
0

 

Hi,

 

While integrating testng with soapUI5.2.0. I am getting the following exception in soapUI 5.2.0.jar file.

The below error find in SoapUIMockServiceRunner class.

 

Exception in thread "main" java.lang.NoSuchMethodError: com.eviware.soapui.config.SettingsConfig.getEncryptedContent()[B
at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:249)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:129)
at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:120)
at com.eviware.soapui.tools.AbstractSoapUIRunner.createSoapUICore(AbstractSoapUIRunner.java:202).

 

Please give me suggestions on this.

 

Thanks in advance

Naveen R

TestComplete throws weird errors

$
0
0

Hi,

 

I have written a code for reading excel file(xlsx). When ADODB connection error comes, Test Complete starts throwing strange errors. It throws errors for log.message, Aliases, Project variables etc.

After TestComplete restart it again behaves normally. I am using TestComplete 9.2

It throws errors like "wrong number of arguments.....", "Object required Project" etc..

 

Could you please help me in resolving this?

Is there any way that we clear memory in TestComplete?

 

Thanks and Regards,

Swati Nadage

Not able to copy a file to shared folder which is located in another vm though it is accessible

$
0
0

Hi

i am trying to copy a file to a shared folder which is located in another vm but my below script is failing. Later i tried with Ranorex tool for the same and i am able to do that. Please suggest how to copy that file.

'======================================================

Dim sSourceFilePath


sSourceFilePath = "C:\Files\Test.txt"


If AddNetworkDrive("\\compname\c$\destination_Folder","Z") Then
 Log.Message("Network Drive mapped")
 call oFSO.CopyFile(sSourceFilePath,"Z:\",true)
 
 If oFSO.FileExists ("Z:\Test.txt") Then
  Log.Message("File Copied")
 else
  Log.Error("File not Copied")
 end if
Else
 Log.Message("Network Drive not mapped")
End if

 

 

Function AddNetworkDrive(sPath , sDriveLater)
  dim sUserName,sPWD,res
  sUserName = "domain\userid"
  sPWD = "********"
 
  Set oFSO = CreateObject("scripting.filesystemobject")
  Set oWshNetwork = CreateObject("WScript.Network")
  If Not oFSO.DriveExists("Z:") Then
  'aDD USER NAME AND PASSWORD
  '=========
  res = aqFileSystem.MapNetworkDrive(sDriveLater, sPath)
  If res <> 0 Then
    Log.Error(aqUtils.SysErrorMessage(res) & " Error code is " & res & ".")
  Else
    Log.Message("The connection to '" & path & "' has been established successfully.")
  End If
  '========
    If Not oFSO.DriveExists("Z:") Then
      Log.Error("Network Drive not Added")
      bFound = False
    Else
      Log.Message("Network Drive Added")
      bFound = True
    End If
  Else
    Log.Message("Netowrk Drive exists")
    'bFound = True
    Set oDrives = oWshNetwork.EnumNetworkDrives
    For i = 0 to oDrives.Count - 1 Step 2

      If oDrives.Item(i) = sDriveLater &":" Then
        sUNC = LCase(oDrives.Item(i+1))
      End If
    Next

    If sUNC = LCase(sPath) Then

      bFOund = True

    Else

    'oWshNetwork.RemoveNetworkDrive sDriveLater &":", True

    If Not oFSO.DriveExists("Z:") Then
      Log.Error("Network Drive not Added")
      bFound = False
    Else
      Log.Message("Network Drive Added")
      bFound = True
    End If
    End If
  End IF
  AddNetworkDrive = bFound
End Function

Re: Not able to copy a file to shared folder which is located in another vm though it is accessible

$
0
0

strange thing is that i am able to do this using Ranorex C# code.


TC11 Object Browser does not show all java processes

$
0
0

Hi,

I just upgraded TC10 to TC11 on one of our test client, and i realize a blocking issue, if i start more java tested applications, TC11 is only able to display 1st jp2launcher process, all other jp2launcher processes cannot be found or highlighted, where TC10 displays all jp2launcher processes of tested applications.

has anybody same issue like me?

 

OS: Win8.1 64bit

TC11.0

 

Lee

JMS could not create InitialContext with weblogic server

$
0
0

Hi

I'm trying to conncet to a JMS qeue with groovy and found an example at http://www.soapui.org/jms/working-with-jms-messages.html. The server is weblogic.

I have got the  Hermes console to work.

I substituted the endpoint in the script with the endpoint created with API/JMS Destination. (bold in the code)

 

when I run the script I get an error on the line def jmsConnectionHolder (red in the code) saying:

 

An error occurred:

javax.jms.JMSException: Could not create InitialContext: t3://localhost:18080: Destination unreachable; nested exception is: java.net.ProtocolException: Empty or no response from proxy; No available router to destination error at line: 9

 

I'm totally lost here. The weblogicSession works in the Hermes console

 

When I look at the parameters in jmsConnectionHolder the look as follows:

 

Wed Aug 26 14:15:08 CEST 2015:INFO: jmsEndpoint =   jms://weblogicSession::queue_kfm/kg/lab/testApp/in::queue_kfm/kg/lab/testApp/ut

 

Wed Aug 26 14:15:08 CEST 2015:INFO:hermes = connectionFactory class=hermes.JNDIConnectionFactory, properties={port=null, securityCredentials=wlssystem, securityAuthentication=null, host=null, initialContextFactory=weblogic.jndi.WLInitialContextFactory, referral=null, stateFactories=null, objectFactories=null, batchSize=null, class=class hermes.JNDIConnectionFactory, securityProtocol=null, authoritative=null, dnsUrl=null, userPropertiesFile=null, rmiAdaptorBinding=null, userPropertiesURL=null, securityPrincipal=system, binding=javax/jms/QueueConnectionFactory, providerURL=t3://localhost:18080, language=null, urlPkgPrefixes=null}

 

 

 import com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder
 import com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils
 import com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSEndpoint
 import hermes.Hermes
 import javax.jms.*

 def jmsEndpoint = new  JMSEndpoint("jms://weblogicSession::queue_kfm/kg/lab/testApp/in::queue_kfm/kg/lab/testApp/ut");
 def hermes = HermesUtils.getHermes( context.testCase.testSuite.project, jmsEndpoint.sessionName)
 def jmsConnectionHolder = new JMSConnectionHolder( jmsEndpoint, hermes, false, null, null, null);

 Session queueSession = jmsConnectionHolder.getSession();
 Queue queueSend = jmsConnectionHolder.getQueue( jmsConnectionHolder.getJmsEndpoint().getSend() );
 Queue queueBrowse = jmsConnectionHolder.getQueue( jmsConnectionHolder.getJmsEndpoint().getReceive() );

 

 

I'm stuck here. Can anyone give me a hint what might be wrong?

Regards,

Per

Ready! API 1.4 Always refering to tcp://localhost:7222 eventough HermesJMS is correctly configured

$
0
0

Hi all,

 

I hope there is someone here who can help me out with the following scenario:

 

I installed Ready API 1.4  and I have Created an HermesJMS Connection to a remote EMS server

From within HermesJMS i was able to discover the Queues... so far so good.

 

From the "Project View" i added an End point to the Interface from which i will be using the opperation, To do this, i used the JMS endpoint wizzard here i set the "To" Queue and the "Reply" Queue.

 

After this, i switched to SoapUI NG (pro) where i created an Testcase and added an JMS step to the testcase.

i selected the operation that i wanted to use and set the correct endpoint (which was already available).

 

After filling in the details required for my JMS call i pressed the sent button....

it took some Miliseconds but it stated that the message was sent. (but there was no reply)

(Please note that i did specify the reply queue in the Wizard)

 

because there was no reply, I restarted Ready API 1.4 with the .bat file... running it in debug mode.

when i initiated the JMS call again i noticed that the Debug window stated that it could not connect to tcp://localhost:7222.

 

my question is as followed:

why is the request sent to tcp://localhost:7222 eventought the endpoint is pointing to the hermesJMS configuration and the configuration is pointing towards an remote server on which the EMS is running.

 

 

 

Hiow to execute JAR files in test complete

$
0
0

Hi,

 

I need a way to execute Jar files in Test Complete To invok specific functions.

 

Please help me out on this.

 

 

Thanks!

Verification failed

$
0
0

Hello,

 

I have been trying to get started with distributed testing.  However, I was unable to verify when connecting to the VM.  I was only able to verify if I used the remote descktop connection and set testcomplete login mode to manual.  I found out this was most likely because of the group policies one of which involved pressing 'ok' before being able to login.  This has now been disabled but now I get verification failed.  I can't even do the manual login and get it to succeed anymore.  Any help would be great

 

VerificationFailed.jpg

assertion for raw response 200 OK

$
0
0

I am trying to create an assertion for the raw response to verify the 200 OK

 

HTTP/1.1 200 OK

 

it would seem simple enough but i can't get any kind of contains assertion to pass.

 

can't use the nodes because that doesn't show up when creating an assertion.

 

how do i create an assertion for contains 200 OK in the raw response tab which passes?

 

thanks Lee

Error loading plugin class com.smartbear.mqttsupport.PluginConfig

$
0
0

Hello,

 Getting the following exception, while intigrating soapUI 5.2.0 with TestNg.

 

com.eviware.soapui.plugins.InvalidPluginException: Error loading plugin class com.smartbear.mqttsupport.PluginConfig
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:102)
at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:42)
at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:127)
at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:38)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:406)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:363)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:368)
at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:351)
at java.util.concurrent.RecursiveTask.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.execTask(Unknown Source)
at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.util.concurrent.ForkJoinPool.work(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/reflections/adapters/JavaReflectionAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaringClass0(Native Method)
at java.lang.Class.getDeclaringClass(Unknown Source)
at java.lang.Class.getEnclosingClass(Unknown Source)
at java.lang.Class.getSimpleBinaryName(Unknown Source)
at java.lang.Class.getSimpleName(Unknown Source)
at org.reflections.Reflections.<init>(Reflections.java:91)
at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:90)
at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:64)


 Please give me suggestions regarding this.

 

 Thanks in advance.

 

 Naveen


I want to close browser using Sys.Desktop.Keys("^W") and it does not work

$
0
0

I want to close browser using Sys.Desktop.Keys("^W") and it does not work. Any idea?

Screen Blinks when posting Logs?

$
0
0

This is an unusual issue... Since I got Version 11(Running 8.1), whenever a test completes, the first few lines of the log display, then the screen begins to blink rapidly (The entire application seems to go away... the desktop appears, then TC is back, then gone, then back, etc) This is not slow... I am talking 2 or 3 flips PER second... Continues for a while...perhaps 5 seconds, perhaps as much as 30 seconds. Then, the rest of the log is displayed.

 

It does not seem to be hurting the logs or the tests, just annoying to need to wait for the application to stop shivering... so I can read the log

 

Anyone else ever (see)n this?

 

can test cases be move into the test library from a Test Set

$
0
0

My team is new to QA Complete and we made a mistake.

 

There have been many tests created directly into the test set, which don't exist in the Test Library. 

 

Is there a way to copy or move these test into the Test Library?

Operations Reference in TestComplete 9?

$
0
0

I need capture one value in my aplicattion and use that value in another area, I found on the internet one option to do that.
I have find the "Operations" and after that "Statements", however i'm using TestComplete 9 and I could find this option(Operations menu and Statements).
Please, can you help me?

URI with Special Charecters leading to an issue in SOAP UI

$
0
0

Dear All, I have a webservice deployed in my weblogic server and have a Webseal server to Authenticate my request, when ever i call my webservice with a special charecter in the URI. it is leading to an error in the SOAP UI. the URL is not completely going to webseal due to special charecter in the URI.

I used special charecters like https://myserver/uri\   here "\" is  added in the URL which is causing an issue from the SOAP UI... same is working fine with Other clients.

 

May i know whether it is a Bug in the SOAP UI or is there any setting in SOAP UI to fix this issue. same issue happens even if we use below list of special charecters...

| " % ^ { } [ ] < >

 

Please let me know the resolution for this defect

 

Thanks

Anil4376

Viewing all 26529 articles
Browse latest View live