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

Can you transfer a result value from within a Script Assertion?

$
0
0

I tried every path possible and can't seem to send a result value from within a Scdript Assertion.  Is this possible?

 

Reason I'm doing this is my Script Assertion is performing a division equation.  I don't feel like creating a Groovy Step if I don't have to.


TC10 Trial Version - ToolbarWindow32 Issues

$
0
0

Hi there,

 

I am a new user for TC10, but I suspect my issue is not user-error.

 

To familarise myself with the application, I have been building basic login/logout functionality scripts for one of our sites using JScript.  I firstly recorded the script using Firefox, then customized the code.  It worked like a charm.

 

Next, I attempted the same process for Internet Explorer...

 

This issue here is, even with the untouched recorded script it fails to run beyond a call to the ToolbarWindow32 object.

 

The line it fails at:

browser.wndBaseBar.MenuSite.SysPager.ToolbarWindow32.ClickItemXY("Monisend MI Test", 56, 3, false);

Additional Info from Fail Log:

An error occurred while accessing the "ClickItemXY" method or property of the "ToolbarWindow32" object.
The object or one of its parent objects was not found.

As this is script is generated from the record function, I cannot fault it.

 

I attempted to construct the line manually and noticed ClickItemXY() was not a method that was offered (surprise, surprise).  Click() and ClickItem() were present and I tried both to no avail.

 

If there is another way to construct the toolbar clicks other than using the ToolbarWindow32 object, please advise.

 

Otherwise, if this is somehow a user-error please help.

 

Kind Regards,

Ben.

I have download the google maps sample project and run each testsuite. Most tests failed.

$
0
0

I have download the google maps sample project and run each testsuite. Most tests failed. This was due to assertions not being met. Does this mean the assertions are no longer correct? I have not edited anything.

Thanks

What is ExecuteGlobal? Where to find documentation regarding this function

$
0
0

What is Execute Global?

Where to find documentation regarding this function?

 

How to find controls in a sub form which is called from a main vb form?

$
0
0

I am testing a vb form. I am able to map the controls in the main form. But how to find the controls in a sub form which is called from the main form.

TestComplete doesn't be executed with Error Log.

$
0
0

Hi,

I had downloaded and installed TestComplete.

But when I execute, TestComplete doesn't be executed with error log.

Sometime it's work, but 50% doesn't be work.

The following is error log.

Please let me know why didn't work.

 

-------------------------------------


Name: AppHangB1
Program Name: TestComplete.exe
Program Timestamp: 2a425e19
Signature: f9e5
Type: 0
OS Version: 6.1.7601.2.1.0.256.4
Local ID: 1042
signature 1: f9e5c2472b15c3541b12350ebb9a0155
signature 2: cee0
signature 3: cee0d9227a56b6ee648e3d5tebd0b257
signature 4: f9e5
signature 5: f9e5c2472b15c3541b1230ebb9a0155
signature 6: cee0
signature 7: cee0d9227a56b6ee648e3d5ebd0b257

===========================================================


Name: AppHangB1
Program Name: TestComplete.exe
Program Version: 10.60.3387.7
Program Timestamp: 2a425e19
OS Version: 6.1.7601.2.1.0.256.4
Local ID: 1042
signature 1: 96fba833b7f132b562ce4dbf52db29ed
signature 2: 0e22
signature 3: 0e22f984488ade3cd109e3f90d22e104
signature 4: 96fb
signature 5: 96fba833b7f132b562ce4dbf52db29ed
signature 6: 0e22
signature 7: 0e22f984488ade3cd109e3f90d22e104

Unable to access Swing objects

$
0
0

Hello Folks,

 

We are not able to access below Swing object(Table), no methods are available to access the Table row/column or even cell !!

 

Sys.Process("javaw").SwingObject("UIServices$2", "TradeBlade:  User: TUTFUS31(kevinwise): raw://170.198.112.32:5463", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JDesktopPane", "", 0).SwingObject("JInternalFrame", "RFQ Manager", 0).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JideScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("CollapsiblePanes", "", 0).SwingObject("JideSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("JideSplitPane", "", 0).SwingObject("JPanel", "", 0).SwingObject("PreviewQuoteRequestPanel", "", 0).SwingObject("JViewport", "", 0).SwingObject("FXOPreviewQuoteRequestTable", "", 0)

Swingobj.jpg

 

 * While recording this table in testcomplete it creates below code where it only clicks on the object instead of accessing the methods to select cell or operate cell.

 

  Set FXOPreviewQuoteRequestTable = internalFrame.PreviewQuoteRequestPanel.Viewport.FXOPreviewQuoteRequestTable
  Call FXOPreviewQuoteRequestTable.Click(21, 8)
  Call FXOPreviewQuoteRequestTable.Click(307, 7)
  Call FXOPreviewQuoteRequestTable.Click(615, 60)
  Call javaw.dialog03.RootPane.null_layeredPane.null_contentPane.RFQCreateQuotePanel.Panel.JideButton2.Click(18, 14)

App.jpg

 

If anyone have faced this issue, please share the methods/way to access these objects.

 

Thanks in Advance..

 

Cheers !!

Kavan Shah

is LoadUI(pro) Bug !

$
0
0

Hi,
I'm evaluating products SoapUI NG (pro) and LoadUI NG (pro) under Ready! API 1.2.2 by following below references -


http://readyapi.smartbear.com/loadui_ng/getting_started/creating_soapui_project
http://readyapi.smartbear.com/loadui_ng/getting_started/creating_load_test
http://readyapi.smartbear.com/loadui_ng/getting_started/running_load_test

 

I have a datasource (excel file with a list (say 5k) of order numbers) and using a data-source loop I'm calling a webservice which prints the orderID passed to it in runtime in server log.
While I execute the test case (Datasource,webserviceCall,Datasource loop) directly in SoapUI NG (pro) tab (same as portrayed in above urls), I see the order numbers are printed correctly in server log.

 

However, while I create the 'New LoadUITest' by following above urls from this SoapUI NG (pro) test case and execute it, I find only '?' getting printed in server log (irrespective of values I set for Load Type, Arriving Users, Time period etc)

Can someone share whether you have face this issue ?


Server Log - Test Case while run from SoapUI NG (pro) -

 

2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 10
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 11
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 12
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 13
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 14
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: 15

 

Server Log - Same Test Case while executed under LoadUI NG (pro) -

 

2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: ?
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: ?
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: ?
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: ?
2015-04-28 10:22:48 AST [ISC.0039.0001D] POST /ws/services.WS:smileytongue:rintWS/services_WS_printWS_Port
2015-04-28 10:22:48 AST [ISP.0090.0003E] Param: ?

 

Thanks for your input.

 

BR

/AD


open directory from scripts

$
0
0

Hi All,

 

How to open directory from scripts in Test complete. For Example if i have folder structure like this "D:/Testing/Automation/" & i  need to open this folder from scripts. Is it possible to do in test complete

 

 

Thanks

Bala

I'm trying to use a scrollbar (VScroll) for a TListView: the recorded script doesn't playback

$
0
0

Hi,

I recorded this:

  listView = Aliases["ISSReportingSuite"]["GALAFListe"]["Seitenauswahl"];
  listView["HScroll"]["Pos"] = 0;
  listView["VScroll"]["Pos"] = 842;

 

When I try to play it back I get

Failed to set position 842 for the scroll bar. 14838 was set instead.    

 

What's going on? Why doesn't it work?

Thanks for your help

Seretta 

At what spot,we can say that"this is the Crash point".

$
0
0

Crash point basically mean when no or less response,error starts coming along with the warning,but say"at one time no response is coming,and little errors are also starting coming,but in a bit,again response comes,passed request but along with errors and warning(Continuously)

So at first point where there is no response,that is crashing point?or again when the response has come,errors are also coming ,overall fluctuating results are coming,So the question is again"Where is the crash point".

 

Thanks.

Getting Started with the Collaborator API

$
0
0

We're having a contest! Whoever builds the coolest integration, plugin, or anything that hits the Collaborator API could win a drone. We'll be announcing this today, and I'll update this with a link to the official rules soon.

 

For those of you interested in competing for a new Parrot AR Drone, or if you are just looking to build something cool around your peer review infrastructure, here's a getting started guide for the Collaborator API.

 

The first step would likely be the installation of a Collaborator server for you to test against.

 

the latest version of Collaborator is available here: http://support.smartbear.com/downloads/collaborator/installers-for-collaborator-9

 

Both the server and client pieces require Oracle Java 1.7+, and should run on any modern operating system. We don’t officially support OSX for the server installation, so I recommend that you avoid attempting that.

 

Installation is simple:

  1. Install a Java JRE/JDK 1.7 or 1.8
  2. Run the server installer, the default options should be fine across the board.
  3. Setup and configure your Collaborator client if you want to see how we currently integrate with SCMs.

 

Assuming that you selected the default installation options, the Collaborator server should be listening on port 8080. You’ll need to login to the web portal with the user name admin, and a blank password. You’ll be prompted to fill out the first run screen, and you should automatically get a 30 day, 100-seat trial. If the server was unable to contact our licensing server, then you’ll need to send us (support@smartbear.com) the NodeID from the licensing page, and we will send you a license.

 

Developers can install the server on their local workstations using the embedded database, and then test locally. The server will not use many system resources with only a single user accessing it. If you near the end of your 30-day trial, you can stop the service, and delete the database.* files from the tomcat subdirectory in the installation folder. That will effectively DELETE ALL DATA IN COLLABORATOR. This may be an efficient way for you to test the server on different workstations without having to contact us for a license.

 

Alternatively, you can send us the NodeIDs for any instances that you have, and we will generate extended trial licenses for you. A trial server works exactly as a licensed server does, it just stops working when the trial ends, although the admin account will still work. Send the Node ID’s to me, or reply on this e-mail chain, and we’ll get the licenses back to your promptly

 

Detailed instructions for installing the server: http://codecollaborator.smartbear.com/docs/manual/9.0/quickstart_systemadmin.html

 

Detailed instructions for installing and configuring the client: http://codecollaborator.smartbear.com/docs/manual/9.0/clients_overview.html

 

Once you’ve gone through that, the server will be online and ready to review code. Now the fun can begin, and the JSON/RPC service will be located at http://your.collab.server/services/json/v1

 

If you open that URL in a web browser, then you’ll get an input form with some sample JSON, feel free to click submit and see what happens. From an integration standpoint, requests would be sent to that same URL as an HTTP POST request.

 

Here’s our API documentation: http://codecollaborator.smartbear.com/docs/manual/9.0/json_api_web_services.html

 

It has a few examples, and explains how to do some basic things, such as authenticate yourself to the server.

 

The JSON API Reference section there will show you how to access the API JavaDoc. The JavaDoc describes every available server side method for the particular version of the server that you have installed. If you find something is missing or nor working correctly, then please let me know. The API is new, and the base implementation is designed to perform all functions required by our current client software.

 

Regarding differences and file versioning: Collaborator supports 8 distinct diff formats, and you should strive to use the Unified diff format if at all possible. The diffs should have as many lines of context as possible, essentially giving you the full content of both the before and after versions of a change list or file. That’s discussed here: http://codecollaborator.smartbear.com/docs/manual/9.0/cmdline_upload_diffs.html

 

That page also provides a command line example for uploading diff files stored on a local disk. Uploading a diff essentially creates two different version records in the Collaborator database using the diff context to generate both files. When you use the JSON API to create a review, you will likely want to just upload the full content of the two versions of a file, and Collaborator will generate the diff internally when the review is displayed. Instructions for adding content via the API: http://codecollaborator.smartbear.com/docs/manual/9.0/json_upload_review_materials.html

 

Just in case that wasn’t enough information to give you a running start, here’s some example code in C#: https://github.com/SmartBear/msword-collaborator-addin

 

Check out the CollabAPI folder there. Some documentation around that example is available here: http://smartbear.com/smartbear-developer-network/microsoft-word-plugin-for-collaborator/

 

Happy coding,

Rick

how to print out messages from a sql script in the event log using jscript

$
0
0

Is there a way to print a message out from a sql script using the log.message?

 

For example, if the sql script ran correctly  it would print out "@User submitted the form successfully "

 

I have code to do this in sql but i cant duplicate this in test complete 10.40? Can anyone give me some hints on how to do this using jscript?

 

code example:

 

declare @user

 

SELECT'The user '+ @User+' has submitted a successful submission '

end

else

begin

SELECT'The user '+ @User +' didn't submit the form '

end

 

Object browser : Path to the desired object in the mapping tree changed

$
0
0

Web application

 

Object browser : Path to the desired object in the mapping tree changed
Earlier test complete was recognizing the objects in my application as flex content , now test complete recognizes the objects as flash content.  I am unable to run the automated script as the aliases name has changed for the objects in the application

 

After creating a new assertion and then attempting to move Assertions SoapUI doesn't respond. Help!

$
0
0

After creating a new assertion (displays at bottom of all the other assertions) and then attempting to move the Assertions up SoapUI doesn't respond. Help!

 

Using the PRO version, 5.1.2.  Anyone had the same problem and is their a wirkaround?


Problems with Checkpoints (Region and Property Checkpoints)

$
0
0

Hi guys

 

I'm learning about checkpoints and I've been performed some tests, but when I performed some tests using checkpoints, I got errors with property checkpoints and region checkpoints, and those errors were:

 

Property Checkpoint:

When I used the finder tool to find the component, I was able to find the component correctly (a textfield with value), but during the running, the finder tool cannot find the value that I typed on the textfield, the property checkpoint just does not identify the value that I typed during the run.

 

 

Region Checkpoint:

I record the test on Internet Explorer and when I perform the test on Internet Explorer, everything goes ok, but if I change the browser, chrome for example, due to the size of the area of the browser be different, the region checkpoint is not able to validate the picture on other browser. I tried to define a greater value of the pixel tolerance, but it did not work also.

 

 

 

Could you guys please help me? I really appreciate it!

 

 

 

Thank you very much!

Theoretical question - How does work the way that TestComplete emulates the VirtualBrowsers?

$
0
0

Guys, 

 

We know that TestComplete emulate the virtual browsers, but I would like to know what differs the virtual browsers from the web browsers? just the resolution? or, when we emulate a virtual browser, some dlls change are created also? So, could you guys help me with this? Could you guys explain to me ? How is the way that testcomplete emulates a virtual browser? Which differs a virtual browser from a web browser?

Assertions

$
0
0

How to move assertions up the list of assertions?

Does SoapUI NG XQuery assertions support fn: calls?

$
0
0

<Results>
{
for $x in //System/Response/Genie/GenieRows/GenieRow
order by $x/@Column1, $x/@Column2, $x/@Column3, $x/@Column4, $x/@Column5, $x/@Column6
return <GenieRow>{$x/@Column1} {$x/@Column2} {fn:lower-case($x/@Column3)} {$x/@Column4} {$x/@Column5} {$x/@Column6}</GenieRow>
}
</Results>

 

The fn:lower-case call keeps returning "RuntimeException:Error binding this".

 

Thanks in advance

Custom Properties not updating in Panel

$
0
0

I am trying to build a custom TestStep with two simple properties. I can double click the step and get the Panel to display. However, when I update the property values using the small Properties pane on the bottom left, changes do not get applied to the text fields on my panel. I'm assuming I am not hooking my listener correctly. If I close the panel and re-open it, I do see the changes. So I know that the property changes are being saved correctly. Any suggestions? Tips?

 

 

Viewing all 26529 articles
Browse latest View live