GUI test for an app written mainly with Tcl/Tk [closed] - user-interface

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Would really appreciate your help with Tcl/Tk testing framework. I am supposed to test a windows application written with Tcl/Tk, twapi, gdi 0.9.5.1. Do you know a black-box and/or white-box test framework that will help me with GUI testing (generate mouse event, etc etc, and drive the application)? What I expect from the test framework is something like what WindowsLicker allows you to do for Swing.

Tk can generate events with the event generate command, but it will only send these events to itself. You can combine these with the tcltest package to do such testing as you require.
That said, I actually advise splitting up your code so that there is a clear separation between the GUI and the functionality that powers it (the “business logic layer”, to borrow a phrase from server architectures). You can then test your baseline functionality thoroughly without having to fiddle around with testing GUIs, which is enormously easier. Once your BLL is working robustly, testing your GUI then becomes a matter of ensuring that actions in the GUI manipulate the view correctly or translate into appropriate BLL calls (which you know will either work correctly or fail in a way that is clear).

Related

Page Object Pattern for web testing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking into several javascript frameworks that can be used for e2e automated testing, mainly: Webdriver.io, theIntern and Nightwatch.
And I really want to get some feedback from developers on which framework could best support the page object pattern?
Intern supports that pattern (and it's a general enough pattern that I'd assume the other two do as well). There are a couple of ways to implement it with Intern.
One possibility is mentioned in the Intern Guide. The Command object used to control a remote browser is wrapped in another class that adds page-specific functionality.
A different style of implementation that's a bit more flexible is described here. Setting up a Command wrapper to allow more than one custom call to be chained can be tricky. The second implementation uses Command helper functions, which can be easier to work with.
Here are some of the main pain points I've experienced with various framework page object implementations:
must allow creation of elements/locators once and not repeat them elsewhere (DRY)
how it handles a basePage (ie. page elements/methods not specific to a single page (eg. hitEnter()))
how it handles repeated elements across pages (eg. a nav bar that exists on multiple pages)
does it allow for readable tests
Opinion will certainly factor into these... which is fine. Answer these questions for your framework of choice, and you'll have your answer.

How to test performance of software AG - Web methods implementation? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have a requirement to test the performance of an ESB implementation done using software SG - web methods 9.5.
Please let me know the tools that can be used and the approach to be followed for testing.
Thanks
I used SoapUI to performance test webMethods Integration Server a couple of years ago.
I set up requests, number of clients etc in SoapUI that represented different scenarios of usage in the live system.
After the tests I exported data from SoapUI, wrote some scripts to analyze it and used Excel to present it in a pretty way.
Since you don't specify exactly what kind of performance test you want to run this may or may not work for you as well.
It's hard to provide any suggestions because little is known from your "ESB implementation" and little is known from the performance requirements. For example, from which point in your architecture do you want to test performance.
As suggested by ellak, using SOAPUI is an option if your "ESB implementation" exposes a web services and if you want to start load testing at the ESB level.
If you want better advice then you need to provide more information.

Embedded GUI - Similar to GWEN? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I wrote a library to use different LCDs, such as TFT LCDs with TouchScreens with an existing RTOS.
The library does include all highlevel routines like drawing lines, circles, render fonts and so on.
Now, I would like to make the library more useful and give it a small GUI toolkit so the user can create buttons, sliders, radio buttons and all the other classical GUI elements.
There is GWEN which works pretty well.
My question: Are there free, opensource libraries like GWEN out there which are easy to use for my purpose?
I cannot take stuff like Qt because I'd need to implement the entire internals like event handling and stuff. Also, the RTOS would need to support POSIX. I really just want the GUI elements, nothing more. It must be very lightweight and only implement all the highlevel classes. It should be as lightweight as possible, because it's supposed to run on small microcontrollers like the STM32F1 (ARM Cortex-M3 with less than 100kB of RAM).
Well, at the end I decided to write my own: http://ugfx.io
Gwork is a fork of GWEN. You might try that.

Tool to generate GUI for command line program [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a program that semi-automatically builds a GUI for a Windows command line program.
That is, I want to give it an arbitrary command line program and somehow describe its usage ("It takes a list of filenames, and the --foo and --bar options followed by a string") and it will create a new GUI wrapper program that allows selection of files with a "Browse" dialog box and has text boxes for foo and bar.
I remember having tried a program like this before, but I don't remember what is was called and google fails to remind me.
Are you talking about Gumbie?
Gumbie highlights:
In theory at least, Gumbie allows you to build a GUI without ever using a GUI. It's the GUI hater's GUI builder...
Gumbie provides reasonable defaults for the handling of a number of events, such as windowClosing.
Gumbie comes with some features (e.g., layers) that facilitate the creation of GUIs for text-stream based command line software.
The main module of Gumbie offers support for building java applications that can also be run as java applets within netscape or MS IE.
Here's an example.

Any books on design website UI without referring to images? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm weak enough in art,so this kind of books will really help me lot,if there is.
Typically you don't want developers to design graphics and you don't want designers to write code. Assume you have someone else creating graphics for you (or use one of the many services on the web that do this sort of thing cheaply). Just use placeholder images while you are learning; i.e. load up mspaint (or gimp or whatever floats your boat) and just make something that you can recognize.
But it is unrealistic to try to do modern webdesign using zero images. Even with some of the advanced awesomeness of CSS.
You can start by reading this book: Don't Make Me Think: A Common Sense Approach to Web Usability
No offence, but you can't do website design without images, or even without having a strong creative/artistic streak. Now web development you can do without any creative talent, and minimal knowledge of CSS. Often the two roles blur, but you're going to have to either work with someone who does the design side, or learn how to do web design - images and all.

Resources