Testing a Windows service, for an application with client-server architecture [closed] - testing

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am a software test engineer and want to test a new windows service for my application which has a client server architecture. The service keeps running on the background and checks for the database updates. It is developed by Delphi. The developers have debugged and tested the service. My question is what should be the testing approach to test a windows service, or what kind of test should a tester have to perform on a windows service? And how can this test be executed?

Based on the information provided, it's unclear whether you have access to the source code or not. Typically, testing against software is done with a testing framework against the source code using unit tests and integration tests.
If you do have access to the source code, the best course is to refactor any domain specific functionality out of the service project into a class library. You can then create a testing project which references the class library and write unit and integration tests against your classes.
If you do not have access to the source code, then you need to evaluate the software based on the task it is supposed to perform. You may have some specifications about what the software is expected to do. Compare the software's performance to any specifications that the software is supposed to meet.
The typical interface for a Windows service is Start and Stop. After you install the service and send those commands to the service, does it respond as expected?
Review the logs. Are there any exceptions being logged? Why are those exceptions occurring? Is there information that you need in the logs to evaluate performance that isn't there?

Related

Loopback or Restify? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Starting a new API, what gives the best security and speed? Loopback or Restify?
It seems that restify have more than 60,000 downloads last week, on the other hand Loopback is backed up by IBM and have plenty of plugins and security implemented by default.
Benchmark wise there is none to compare but I'm having issue installing Loopback on Nodejs 8 or 9 :
Command: sudo yarn global add loopback-cli
loopback-datasource-juggler#2.56.0: The engine "node" is incompatible
with this module. Expected version ">= 4 <= 6".
What platform should I start my API with? I could wait for Loopback to support node 8 or 9.
I hope I can get an answer even though it might be subjective. I really need some insight on this.
Edit: Added the command used to install loopback. Also thanks for providing insights even if this is not really a pure SO question.
Restify
Restify is a relatively old player in the Node.js API field, very stable and being actively developed. It is purpose-built to enable you to build correct REST web services and intentionally borrows heavily from Express.
The main advantages are :
Automatic DTrace support for all your handlers (if you’re running on a platform that supports DTrace).
Doesn’t have unnecessary functionality like templating and rendering.
Built in throttling.
Built in SPDY support.
The main disadvantage with Restify as they are with Express requireslots of manual work.
Loopback
Restify is a great starting point, but in the long run it might not be the right choice if you plan on investing heavily into APIs.LoopBack is a fully featured Node.js backend framework to connect your applications to data via APIs. It adopts the convention over configuration mantra popularized by Ruby on Rails.
The main advantages are :
Very quick RESTful API development.
Convention over configuration.
Built-in models ready to use.
RPC support.
Fully configurable when needed.
Extensive documentation.
Full-time team working on the project.
Online support support.
The main disadvantage is that learning curve can be pretty steep because there are so many moving parts.
You can now decide yourself according to your needs. I hope it helps

Web server running python. [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to create a web server that I can accesses over the internet (not just locally) and can run and execute python scripts. These scripts will be doing some querying on .db files and returning processed query results. I want to be able to run POST and GET methods on my web server. How should I go about doing this? This is for a school project. From my research, I would need a dedicated computer to be my web server and I don't have those resources.
Thank you.
I would recommend Flask. It will work as a simple web server that let's you run POST and GET against it as well as serving pages. Since it is a Python application, running Python scripts are just part of the code.
In addition to it accomplishing what you want, you could run this on just about any computer you could load Python on (Windows, Linux, Mac, Raspberry PI) thus eliminating the requirement for a dedicated computer.
http://flask.pocoo.org

Perfomance testing for XMPP Chat application with Jmeter & Blazemeter [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
We are trying to do a performance testing for a XMPP-based mobile chat application using Jmeter and Blazemeter.
As we are new to XMPP web-services.
Can anyone brief us how to use Jmeter or Blazemeter for XMPP and how to record the scripts using XMPP plugin?
Why not to try use tsung instead?
originally created for load-testing Jabber/XMPP servers although supports a lot of other protocols at the moment;
has better performance on the same load-generation servers amount than Jmeter: you will get instantly higher load on the same amount of hardware used;
ready for distributed load-generation.
Benchmark Approach: Jabber/XMPP
Load testing Ejabberd XMPP Server with Tsung
Load testing Tigase XMPP Server with Tsung
Introduction to Load Testing with Tsung
Tsung questions on SO

Antivirus API on Mac OS [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 3 years ago.
Improve this question
I want to get the information of antivirus product installed on my Mac-machine. I'm developing an app which will show all system information, and I'm able to get system basic info, but not able to the get the security details, like what all antivirus/antispyware products installed in that machine.
I'm developing my app using Obj-C, and trying to get the api in that only. I want to call that api on demand, so it could directly embedded within the app or can execute externally as well. If I could get that command also then I could use that.
Does anyone know what API I should be calling please?
OPSWAT maintains a commercial C++ library/api called OESIS Framework which enables the integrator to obtain information and manage common functions of 3rd party security applications installed on Mac OS devices.
The list of security applications that can be called is at- http://www.opswat.com/products/oesis-framework/supported-applications#!product=all&os=mac
Available API calls, by application type are at http://www.opswat.com/products/oesis-framework/available-apis
Disclaimer: I work for OPSWAT.

Anything better than P6Spy? [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 am planning to use P6Spy to intercept database statements within our architecture. However, I noticed on the P6Spy website that the last release of the software was back in 2003. Is there anything out there that is better or should I just stick with P6Spy?
Some other tools and libraries that are similiar to P6Spy.
Craftsman Spy appears to overlap quite a bit with the feature set in log4jdbc. This library hasn't been updated in 2 years and depends on Jakarta Commons Logging.
JAMon (Java Application Monitor) is a comprehensive application monitor and monitoring API which includes JDBC/SQL monitoring as part of it's very large feature set.
JdbcProxy The driver can also emulate another JDBC driver to test the application without a database.
LogDriver appears to be similiar to log4jdbc and the author has written a nice article on JDBC logging in general and his motivation and experience of writing LogDriver.
yet another JDBC logger
log4jdbc-remix an experimental fork of log4jdbc with some interesting features.
jdbcdslog Another new jdbc wrapper with a lot of crossover with log4jdbc features.
SqlRecorder A library that is a wrapper around a JDBC driver to record all executed queries to different locations like a file,console or any other remote server via plugins.
log4jdbc-log4j2 Another fork of log4jdbc that includes the log4jdbc-remix fork and other features of it's own.
Source: https://code.google.com/archive/p/log4jdbc/
P6Spy has been under active development ago for a while now. The 2.0 version has also just been released. It now supports use without any configuration file for some use cases. It has also been updated to the JDBC 4.0 API and is fully compatible is Java 6 & 7.
The project is also being developed on GitHub now. Updated documentation is available as well.
I started using log4jdbc when p6spy wouldn't work on a precompile project that did its own driver discovery. log4jdbc has you change the DB connection url which we found simpler to setup. It also doesn't require a separate configuration file (spy.properties) and it is actively worked on. I'm not going to touch p6spy again.
We still use P6Spy with our Weblogic 8.1.5 with EJB2.0 and it works charms. I'm about to try and integrate it with Weblogic 10.3 and EJB3.0