cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Test flow execution between desktop, mobile, web and soap in TC

SOLVED
Highlighted
Contributor

Automation Test flow execution between desktop, mobile, web and soap in TC

Hi,

 

I am looking into doing some end to end verifications. This means getting some test up, where I need to get some scenarios tuning whitch will function with desktop, mobile, web and soap.

 

Do any one have experience with this? 

And how to handle the initial setup with the test distribution? 

I know these things are hard to manage, due to system complexity. But this is not what I asking 🙂

 

Br,
Christian
Personal notebook/Blog: www.testtech.dk
2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

Hi Christian,

 

If I got your question right: you are wondering if it is possible to do something in one (desktop) application and then do something else in another (mobile) application within the same (end-to-end) test, aren't you?

If my understanding is correct, then this is definitely possible in TestComplete, can be done even on the same test box and does not require any special setup.

Sample pseudocode test skeleton:

 

var desktopApp = TestedApps.DesktopApp.Run();

var mobileApp = TestedApps.MobileApp.Run();

Browsers.Item(btFirefox).Run('http://www.example.com/testedPage);

var webPage = Sys.Browser('firefox').Page('*tested page*');

 

desktopApp.mainMenu.Button('Create Demo Order').Click();

mobileApp.Layout('').List.Item('Create Demo Order').Button('Approve').Click();

webPage.Keys('[F5]');

webPage.Wait();

VerifyOrderSigned(webPage.ordersTable);

...

 

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
================================

View solution in original post

Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

The selection of "Generic Windows Application" in the project creation wizard does not lock you into only testing those kinds of applications.  That step in the wizard simply determines what components are added to the test project by default.  

So... short answer, yes, you can use Generic Windows Application


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

View solution in original post

7 REPLIES 7
Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

I'm not sure I understand what you're asking.  Do you mean that you want to be able to run the same test scenario in multiple platforms?  Or that you have tests that cross platforms that you want to run, end to end, in the same test scenario?  Can you give an example of what you're looking for?


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
Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

Hi Christian,

 

If I got your question right: you are wondering if it is possible to do something in one (desktop) application and then do something else in another (mobile) application within the same (end-to-end) test, aren't you?

If my understanding is correct, then this is definitely possible in TestComplete, can be done even on the same test box and does not require any special setup.

Sample pseudocode test skeleton:

 

var desktopApp = TestedApps.DesktopApp.Run();

var mobileApp = TestedApps.MobileApp.Run();

Browsers.Item(btFirefox).Run('http://www.example.com/testedPage);

var webPage = Sys.Browser('firefox').Page('*tested page*');

 

desktopApp.mainMenu.Button('Create Demo Order').Click();

mobileApp.Layout('').List.Item('Create Demo Order').Button('Approve').Click();

webPage.Keys('[F5]');

webPage.Wait();

VerifyOrderSigned(webPage.ordersTable);

...

 

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
================================

View solution in original post

Highlighted
Contributor

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

You've got it right Alex.

 

I have a possible scenario of doing some actions of: Doing some actions in a desktop app, which will save some settings to a device. The device will be hoocked up to an mobile app, which too can access these settings. And vice versa. Verifications using a web check, can also be an option in the future.

 

Which project type, would be recommended for this type of "End-toEnd" testing? Can a "Generic Windows Application" project handle everything well? With accessing the objects in detail too?

I have been solely testing desktop for the last few years. This is why I am asking.

 

Thanks 🙂

Christian

 

 

 

 

 

Br,
Christian
Personal notebook/Blog: www.testtech.dk
Highlighted
Contributor

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

Like Alex described 🙂

Br,
Christian
Personal notebook/Blog: www.testtech.dk
Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

The selection of "Generic Windows Application" in the project creation wizard does not lock you into only testing those kinds of applications.  That step in the wizard simply determines what components are added to the test project by default.  

So... short answer, yes, you can use Generic Windows Application


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

View solution in original post

Highlighted
Contributor

Re: Automation Test flow execution between desktop, mobile, web and soap in TC

Thanks Guys,

Really appreciate it 🙂

Br,
Christian
Personal notebook/Blog: www.testtech.dk
Highlighted
Community Hero

Re: Automation Test flow execution between desktop, mobile, web and soap in TC


@Christian_N_DK wrote:

Can a "Generic Windows Application" project handle everything well?

Yes, as Robert already explained.

The project type been suggested by the wizard just defines initial set of project items to be added to the project. But nothing prevents you from adding desktop and mobile applications to the TestedApps later and work with them from test code.

Obviously, you will need Mobile module to work with mobile devices and Web module to do web testing in TestComplete...

 

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
================================
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors