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

Is Garbage collection (destroying the objects after usage) automatic in Test Complete?

$
0
0

Dear Experts,

 

Summary: Is garbage collection is automatic in Test Complete scripts?

 

Description:

 

Can any one clarify me that after when we create some objects in Test Complete sripts, do we manually need to destroy/dispose the objects after usage by writing corresponding script lines as shown below, or garbage collection is automatic?

 

ex: Set objHello = CreateObject("WScript.Shell)

----

-----

 

objHello = Nothing ' is this necesary to destroy the object like this?

 

Thanks and Regards,

Jayakoti


Plug-ins for SOAPUI 5.2.0 or only for PRO version?

$
0
0

Hello Everyone!

 

The plug-ins can only be installed in the SOAPUI Pro version, I've got the free version and I don't find the plugins folder and I tried to install them by adding them to the C:\Program Files\SmartBear\SoapUI-5.1.3\bin folder and restarting it, but nothing.

Does that mean that plug-ins are only for the PRO version?

 

Thank you for your attention

 

Have great day Smiley Very Happy

 

Read XML and Json data returned from WebAPI

$
0
0

My lead developer has had an idea that rather than calling the data we need for testing directly frome the database using an ADO object, we should call a WebAPI that will return Json or XML.

 

Does anybody know how to do this in Test Complete?

Different behavior between TestComplete and TestExecute

$
0
0

Hi,

 

I have a test which is not really different than the others (another function of the same program to test...) .

The problem is that with TestExecute this mapped named if understood by TestComplete :

 

Aliases.MyProgram.MyForm.AdvToolBarPager.AdvMyPage.AdvMyToolBar.AdvMyGlowButton.Click();

etc...

 

So this script continues till its end.

 

When I try it on TestExecute (on a VM, I tried TSE or VSphere) it waits for the controls to appear... even if it exists. Like if the debug infos wasn't available anymore.

 

Of course, 1) we didn't changes our compilation directives and 2) it's the same software, with plenty of tests already running...

 

Any help would be much appreciated

 

Mehdi

Using Wildcard in property checkpoint

$
0
0

Hi, 

 

I want to verify if a panel contains string. 

 

aqObject.CheckProperty(page.panelWorkHistoryNotesContent, "contentText", cmpContains, "*", false);

"*" instead of "Workhistory Notes".

 

So, if the application is in different language, I wouldn't have to parameterise all those checkpoints values. All I need to check if the grid contains something. 

 

Thanks in advance,

Shiva

 

 

Please point me how to install a trial or purchased license on Linux that doesn't have GUI support?

$
0
0

Can someone please point me how to install a trial or purchased license on linux that doesn't have GUI support?

 

I have installed Ready API on Linux. I have also bought two licenses for windows, which I'm using fine.

On Linux, I wanted to try Ready API first with a trial license. I downloaded th trial license but I'm not sure how to add the license to Ready API on Linux that doesn't have GUI supported.

 

Network Suite Job with multiple tasks not running consistently

$
0
0

Hello,

 

I have a project that runs a series of tests using distributed testing with multiple computers.

 

There is a job set up that has two tasks. Each task runs the same suite of tests but runs the suite on a different computer.

 

If I run this job from within TestComplete it runs successfully (ie it runs the suite on both computers simultaneously)

 

We also schedule this job to run using a batch job and the following command:

TestExecute.exe Script.pjs /pSmiley Tongueroject /tNetworkSuite|Jobs|JobName|JobName /run /SilentMode  /exit 

 

When running the job using the command prompt and TestExecute, the results are flaky. Some runs finish without problems. Other runs give error messages in the log:

 

"The operation cannot be performed because the user session is disconnected."

 

If I run the batch job to kick off the run again it normally runs successfully. I thought at first that it might be a timeout issue but looking at the runs that failed, it doesn't seem to be happening at the same time in the run (ie after 15 minutes.) One run will be okay under 25 minutes in, another will give the message closer to 45. Nothing is consistent with when the message is showing up.

 

What is also weird is that it will continue to perform activities on the remote PC. In the included picture, after the error message, it still parses an install log on the workstation.

 

Does anyone have any suggestions on how to fix this consistency issue?

How to debug regular expressions in soapUI?

$
0
0

To allow more flexible testing I am trying to define misc. regular expressions that our received responses have to match. However, I am having some severe trouble getting this to work in soapUI. 

 

Since my regular expressions are somewhat huge all attempts to debug them within soapUI turned out to be hopeless. Just getting a thumbs up/down response is not enough to debug a more complex regexp when applying them to pretty large received response.

 

So I changed my approach and I am now not entering the regex itself into the assertion field but rather a small piece of code that reads the regex from a file and then uses that to verify the received response.

That allows me to develop and debug my regex using misc. tools (the best of which for me turned out to be RegexBuddy btw.)

 

Thus my assertion script (a bit simplified) looks like this:

 

def rulename = 'rulename'
def path = "some_path/"
# read the regexp from a file: def pattern = new File(path + rulename + ".pattern").getText('UTF-8') # get the response def response = messageExchange.response.responseContent

# assert that the response satisfies the regex: assert response =~ pattern

 

That approach is indeed working nicely, at least if things are simple. But for more complex rules I have now bumped into several cases, where some legal responses are accepted, but others are not, even though they SHOULD match!

 

Annoyingly, when I feed the same rule and both, matching and not-matching responses to RegexBuddy, then they both are accepted. So, somehow the exact operation and handling of regular expressions must be slightly different between the two tools, even though RegexBuddy has different modes that allow to mimic different environments and programming languages and I am using "Groovy/Java 1.8" which are (supposedly) the settings closest to soapUI. 

 

(Later edit: meanwhile I also wrote me a little Java test program that also compares the response with my regex using the plain vanilla java.util.regex.Pattern.matches(...)-method and it also declares that the two match perfectly, so soapUI's =~ operator must be handling things differenty that the vanilla Java regex handler!)

 

How can one make the assertion (or rather the regex evaluation within soapUI) more "verbose", so that one can find some clue, why some legal responses fail to match, so that I can correct the regex? 

 

I suspect that the handling of white-space may be different between the two, but there don't seem to be any options in soapUI to control that nor any flags to get some indication at which position of the response and/or the regex the matcher fails and then starts to backtrack. Any idea how to analyze or debug that?


How to make objects index dynamic

$
0
0

Hi,

 

I have two applications which performs same fuctions. I have same script for these two applications.

 

The only difference in these aplications is one more screen is Added in say app 2.

 

My code is as follows:-

 

App 1 with one extra screen:- 

Sys.Process("abc").SWTObject("Shell", "PCW").SWTObject("Composite", "").SWTObject("Composite", "").SWTObject("Composite", "", 1).SWTObject("Composite", "", 1).SWTObject("Composite", "", 4).SWTObject("PCC", "").SWTObject("Button", "Validate", 3)

 

 

App 2:- 

Sys.Process("xyz").SWTObject("Shell", "PCW").SWTObject("Composite", "").SWTObject("Composite", "").SWTObject("Composite", "", 1).SWTObject("Composite", "", 1).SWTObject("Composite", "", 3).SWTObject("PCC", "").SWTObject("Button", "Validate", 3)

 

How to make this one dynamic, so my script will run on both app with same index?

 

Thanks in Advance.

 

 

Error Message : Not enough storage is available to process this command

$
0
0

Hi ,

 

I am getting  "Not enough storage is available to process this command " and not able to proceed with my work.

The message comes when I clcik on script file .The project suite opens sucessfully .

Please help me .

Object identifier Issue while running on multiple instance

$
0
0

Hi

 

I have an application which i used to run on multiple instances. It was running perfect previously but now for the toggle object the script gives error for the object identifier property saying object identifier not matches with the mapped value but the same runs perfectly for another instance. And if i update the property it still gives error.

 

If anybody has a solution that would be very helpful.

 

 

How to read excel file from sharepoint in TestComplete

$
0
0

I have uploaded an excel file in sharepoint and would like to read its context.

 

How can I do it?

 

Thanks for your kind attention

Large REST API Response 10.0 MB+ taking a long time to load in SOAP UI NG Pro

$
0
0

Hi,

 

I have a API that returns a large amount of data, 10MB+. This is having a significant effect on SoapUI performance. Is this due to the response been put into the 'Overview' and 'Outline' tabs? Is there a way this lag of performance can be looked at. If I call the API in a web browser it will take approx 1.4 Mins to return a response, in soap ui this can take approx 5 mins for soap ui to become responsive.

 

Thanks.

Testcomplete 11 unable to identify elements of web page in chrome 43.

$
0
0

Hello,

 

I have installed trial version of Testcomplete 11 to test our web product. It worked on FF and IE browser but on chrome browser its unable to identify the elements of web page instead it selects the whole page. I also installed the patches for chrome 43 version still issue exists, please help.

 

Thanks,

Sandeep 

URL behind "Search Forum" seems wrong

$
0
0

The URL behind the Help => Search Forum funtion is wrong / out-dated. Whatever one enters into the search box, one ends on a page "http://community.smartbear.com/search.php?keywords=foobar" which displays "Page not found -

The page you are trying to access was not found. Please check your URL for typos and try again."

 

Using soapUI v5.1.3


How to call Java code from soapUI?

$
0
0

Hi - this may be a Groovy question rather than a real soapUI question, but soapUI is the reason I am now digging into Groovy, so please bear with me:

 

I am trying to get a bit more information why one of my regular expressions doesn't match. Unfortunately, a statement like "assert response =~ pattern" returns essentially just yields a thumbs up/down result without any indication whatsoever why something didn't match.

 

I was thus trying to use some good, ol' Java code to get a bit more feedback. The PatternSyntaxException that Pattern throws if a match fails would allow to get a bit more details (error index, etc.). So I was trying a code snippet like the below:

 

def matches = false 

try {
   log.info('1')
   matches = java.util.regex.Pattern.matches(pattern, response)
   log.info('2: ' + matches)
} catch (java.util.regex.PatternSyntaxException psx) {
   log.info(psx.getMessage()) 
} catch (Exception ex) {
   log.info(ex)
}

assert matches

 

Why does this always only reach the "log.info('1')" statement and then ends in an "Error: null" popup?

I though, one of the big advantages of Groovy is that I can use plain Java code whenever I want or need to. Why does this not work here? What am I missing?

Finding Amgibuous Objects

$
0
0

I've removed extended find from all items and in the process of explicitly re-mapping all objects. I've run across several 'Ambiguous recognition' warnings and turned this support article. I'm not sure what to do with "additional information...maycontain the names of several objects". 

...

3. Switch to the Additional Info panel.
This panel contains additional information about the cause of the warning. For instance, it may contain the names of several objects that meet the mapping conditions.

 

What is even more perplexing is the next line of code refers to the same object and doesn't receive the warning:

 

This is the object referenced which causes the ambiguous warning

Aliases.browser.CribMaster.PrimaryWrapper.PrimaryContent.CraftCodeProperties.sectionActionwrapper.headerActionheader.navActionbar.section.Okay

 

And this does not.

Aliases.browser.CribMaster.PrimaryWrapper.PrimaryContent.CraftCodeProperties.sectionActionwrapper.headerActionheader.navActionbar.section.Okay

how to use User headers in Soap UI?

Sign into gmail after dynamic reload of everything previously mapped in Name Mapping

$
0
0

My script will successfully sign into Gmail, click on an email, and click on the link in that email if and only if I do not sign out of Gmail or close the browser.  As soon as the user is no longer signed into Gmail, even though my automation script can successfully sign the same user into Gmail, the mapping is no longer correct for what Gmail has at that point.  Gmail ( and even mail.com for that fact ) changes the links dynamically upon page load.  I can not stay signed into Gmail the whole time. 

 

Also, when I signed out of Gmail and signed back in, Test Complete wanted me to check out the Name Mapping again to create new links when I tried another property check point.  Test Complete made a new mapping that was not the same as the one that worked before I signed out of Gmail.  So, I am very certain that Gmail is changing things on me when I sign back in as the same user.

 

So, in my automation script, how can I still sign out of Gmail, sign back into Gmail and click the link in the email if the site dynamically changes objects each time I sign into Gmail?

Can I run Test Suites in the Latest ReadyUI 1.4 for tests build and running in 1.3.1?They fail.

$
0
0

I have a new laptop and wanted to set it up to run our ReadyUI test suites on it. 

They are currently running on a laptop with ReadyUI 1.3.1 on it.

 

I downloaded 1.4 and installed it taking all the defaults

I then imported our tests taking all the defaults. 

 

I attempted to run then test and all teh ones I attemped to run failed. 

 

I then uninstalled 1.4 and found a download of 1.3.1.  I installed that and all my tests run normally. 

 

So, should then run in 1.4?

Is there some process to upgrade the test suites so that they run on a 1.4 environment??

 

Thank you. 

 

 

Viewing all 26529 articles
Browse latest View live