Ask a Question

Testing across applications

DavidRedmayne
Occasional Contributor

Testing across applications

Interesting little conundrum!

 

We have a web app (Neon) which feeds a desktop app (DRS) via some middleware. What I need to do is change some data in the web app and check that it's updated the desktop app. Is it possible to have a 'mixed economy' test where by the test starts in a web app, kicks off the desktop app for assertion purposes and then closes both things?

 

An alternative is that we have an old Desktop version of Neon, so in theory we could test two desktop apps...if that's any easier!!

 

Any ideas?

 

Thanks

 

David

 

4 REPLIES 4
baxatob
Community Hero

Hi,

 

You can do it if you have installed both TC modules - Desktop and Web.

 

DavidRedmayne
Occasional Contributor

OK thanks - that's promising. Yes we have both of those modules installed. What's the process please?

 

Thanks

 

David

No real "process"... just create your test, calling the functions, methods, etc., against the appropriate applications in the appropriate order.

 

Prime example from my own work history: eCommerce website + Windows Service to "poll" the site for new orders + desktop application for order fulfillment, all in the same TestComplete project.  Basically, created a test to place an order on the website, check the SQL database for the order retrieval by the web service, then go through the fulfillment process.  Now, I modularized each piece but I just called them in sequence in the same automation project and it worked just fine.

 

Perhaps you can tell us what you've tried and we can give pointers on how to make it work?

 


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Hi David,

 

As Robert replied - no real process, just scripting as usual 🙂

TestComplete references tested objects using the Sys.Process.Object1.Object2... hierarchy.

So, for your desktop application you will have something like Sys.desktopApp.mainForm.textBox1 call and for the web application this will be the Sys.Browser("chrome/ie/firefox/...").page.form.panel1.textBox1 call. And there is no problem to use both these objects within one test in TestComplete.

So, no problem with your scenario.

I would suggest you to record some sample test scenario for both your applications with TestComplete to get an idea of how test code will look like.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: