Hot answers tagged

3

This was surprisingly difficult to track down. VBScript does not allow a variable to be declared and assigned in the same statement. You need to change your code to Dim plus plus = 10


3

ReadyAPI/SoapUI Pros GUI based so non-technical members can use it fairly easily Assertions are built in so validations are available for the most part Majority of use cases can be implemented without customizations You can leverage functional tests for load/performance with additional LoadUI license Cons Cost - yearly license fee per user, per SmartBear ...


3

I would recommend Apache JMeter as it is: free open source can be used for load testing as well can be used for both RESTful and SOAP web services provides JSON Path Extractor and JSON Path Assertion for correlation and conditionally setting pass/fail criteria can be integrated with Selenium WebDriver so it will be a swiss-army-knife solution for all your ...


2

POSTMAN is the defacto standard when it comes to REST API testing. Its pretty intutive GUI makes REST API testing pretty simple even for the novice testers. The only drawback for this tool is that you would have to do visual validation of your headers, response code, response body etc. There is no automated, batch type interface for creating batch tests. If ...


2

So you need real-world examples of LOC metrics in a software sources and a test suite LOC volume, right? I can share some rough metrics for one real-world project. Never heard about representative figures. It highly depends on technologies and tools you're using. The applications are written in C++ (Windows only though). Metrics were done with simple Python ...


2

I don't think this will happen because HP has their own test management tool and don't seem to want to support others.


2

Since you're dealing with client-server architecture, you're also dealing with network latency, spin-up times, disk latency on the server and the client system, potential I/O bottlenecks (and the testing tool itself is not exactly lightweight in I/O terms), network traffic, and numerous other factors. Your first priority should be to limit/minimize as many ...


2

I don't use uft and they seem to hide a lot of their documentation, but per http://uft-help.saas.hpe.com/en/14.00/UFT_Help/Content/User_Guide/Und_Chkpt_Statements.htm it looks like you should just pass a Checkpoint to the Check without the = true. Otherwise you're actually passing a boolean comparison to Check rather than the actual result of a Checkpoint ...


2

They should be marked as succeeding, not failing. The test itself is to validate that low privilege users can't access things that they aren't permitted to, so a successful test is one in which they are unable to access the resource, and a failing test is one where they can access the resource. The test case should be written as such, and not rely on the ...


2

SoftwareTestingHelp.com now has a Free QTP / UFT training series comprised of 27 detailed videos Last Updated: "February 7, 2018". This online free QTP training article series is designed for beginners as well as advanced users. Check it out: 27 HP Quick Test Professional (QTP) Training Tutorials by SoftwareTestingHelp.com QTP Introduction: Tutorial #1 – ...


1

How can I start a black box test? It sounds like you might already be doing black box testing, as black box tests can be manual or automated. If you don't have manual black box tests, then you'll have to create them, and then perform the test steps. I want automated. If you're question is actually How can I automate tests, then I would agree with ...


1

Sometimes there is not a single property which will uniquely identify the object and we have to use a number of properties to identify the one we are looking for. In my experience, you keep adding properties/attributes in your descriptive code until you find the object. I always start with "html id"or "name" if there is one available as most of the times ...


1

There is a logic error in this line of code: If ((testObjProperty(obj,"exist") = true) And (testObjProperty(obj,"visible") = true) And (testObjProperty(obj,"enabled") = true)) Then There is a logic statement A And B And C, and VBScript is computing each parameter A, B, C; regardless of the value of A, B and C, even if A and B is False, C is still evaluated....


1

GetItemProperty([item], [property]) method is used to check property of JavaToolbar item. E.g.: enabledProp = JavaWindow("label:=WinTitle").JavaToolbar("attached text:=ToolbarName").GetItemProperty("logout", "enabled")


1

Yes as LeanFT does not include the record and playback functionality that full UFT does. Saying that all of these tools will require programming skills to some degree to get the most out of them. If you Google LeanFT C# there are a number of resources and tutorials avaliable unless I'm missing something?


1

After reopening the object in application UFT object should be reinitialized: workersJavaTree.init() And then all actions under the object are performed well. Hierarchical structure while initializing If there are several objects that are reloaded/reopened (e.g. reload a form with several fields & controls) you should init() the top-most one. And all ...


1

Not clear from your question, but it sounds like you don't track which objects you've already counted, so when the popup is reopened, you're counting the previously selected list elements for the second time.


1

The next code solves the problem: Set cellRender = jTableObj.Object.getCellRenderer(0,1) ' background color ' cellRender.getBackground().toString() ' returns: "javax.swing.plaf.ColorUIResource[r=255,g=255,b=255]" ' ' font color ' cellRender.getForeground().toString() ' returns: "java.awt.Color[r=255,g=255,b=180]" ' ' font name, style, size ' ...


1

Ctrl key is used to temporary disable spying, so one could perform preparatory operations. So you sould do the next steps: Click the Object Spy button Hold Ctrl key Expand the menu Release the Ctrl key Spy menu Then you can check here how to code select action for drop-down menu in UFT.


1

Wow... you're making this much harder than it has to be. QTP actually DOES have a timing system built in, you can set and check MANY timers as needed. Here's how I wait for something that could take forever: Seconds_to_Wait = 60 'one minute timer (Messages_Displayed = 0 'optional MercuryTimers("simple timer").Start Do 'check for success if ...


1

The solution that works for me now is set of properties: toolkit class & attached text. Till now I tested this set of descriptors with toolkit class of JavaObject: JEllipsisTextField JRootPane Even some objects in sequence could be omitted.


1

The solution is to access menu items on drop-down pane with descriptive programming and use Select function without arguments: JavaWindow("File: Test.java").JavaMenu("File").JavaMenu("label:=Open").Select This works fine, but finally I came to the usage of pure descriptive programming (DP) to avoid usage of object repository: JavaWindow("label:=File: Test....


1

Late answer here, but I'm the dev of a new open-source framework called Karate. Karate was created out of my frustration with the existing options for automating REST/JSON API tests. I'm glad to say that Karate has comprehensive support for all kinds of HTTP, including SOAP+XML and multi-part file-uploads. One of the key features of Karate is being able to ...


1

This is coming from a .NET background but the concepts apply to any language/environment. I write my tests in Gherkin/SpecFlow which has a good syntax for viewing what the test is at a high level. Scenario: GET /recipes Given I've set my authentication token When I get "/recipes" Then only my recipes should be downloaded Once I've made the ...


1

SoapUI (or SoapUI Pro if the extra features appeal to you) would suffice. You can create a test suite, that has all the test calls you want to make under it and execute the entire test suite and save reports from it. You can use groovy scripts to automate parameterisation, etc. From a Performance testing point of view, I've used both HP Loadrunner and ...


1

For that you can write descriptive or directly drag and drop that link from OR and add event in the last for click. For example: Browser("Google").Page("Google Search").Link("Help").Click


1

Here is proposition of the test automation architecture I use. Link to git (Sorry, I was asked by my employer to delete this repo). Tests are created with uft-12.52, each build is deployed and/or tested under control of IBM UrbanCode Deploy. My project is separated into modules (as the product to be tested) so tests are placed in dir tests\moduleXX\... ...


1

Here is how I solved this. Would love to hear better solutions: Set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys("+{TAB}") 'shift + tab wait(1) WshShell.SendKeys("{RIGHT}")'right arrow wait(1) WshShell.SendKeys("{RIGHT}")'right arrow wait(1) WshShell.SendKeys(Chr(13)) 'enter wait(1) WshShell.SendKeys("o") 'o


Only top voted, non community-wiki answers of a minimum length are eligible