Ask a Question

Test complete not recognising Angular and ASP.net Core desktop application

SOLVED
shy_bt
Occasional Contributor

Test complete not recognising Angular and ASP.net Core desktop application

Hi Team,

 

Am working on an Desktop application(non web) which is embedding  Angular(Back end Angular and ASP.net Core at back end) objects.Using Test Complete 14  am unable to recognize the objects. The ClrFullClassName is CefSharp.Wpf.ChromiumWebBrowser . This article

https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/angular...

suggested Recording the scripts, but after recording the script looks like this

 

var chromiumWebBrowser = Aliases["Engineering_Workplace_Application"]["HwndSource_ContentWindow"]["ContentWindow"]["Browser"];

chromiumWebBrowser["Click"](95, 217);

chromiumWebBrowser["Keys"]("abc");

chromiumWebBrowser["Click"](78, 281);

chromiumWebBrowser["Keys"]("abc");

 

Any settings needs to be changed, please suggest

 

Shylaja

10 REPLIES 10
BenoitB
Community Hero

Do you have web licence or only desktop licence ?

Un sourire et ça repart

sonya_m
SmartBear Alumni (Retired)

@shy_bt Please answer directly inside the community site for your answers to make it to the forums, thank you 🙂

For this time, let me copy the answer you sent straight to email:

 

>>

I have desktop license.

<<


Sonya Mihaljova
Community and Education Specialist

shy_bt
Occasional Contributor

Hi BenoitB,

 

Right now I have only Desktop licence. Can we automate this application with existing licence. Please advise.

 

 

regards,

Shylaja

shy_bt
Occasional Contributor

Hi BenoitB,

 

Sorry by mistake I clicked accept as a solution, even with Desktop + Web licence, am unable to recognise objects inside Angular application.Please advise.

 

regards,

Shylaja

 

 

Hello,

 

To test chromium embedded content you need Web licence, the Desktop licence is not required.

 

Specifics of Web Testing in Embedded Browsers

TestComplete supports web testing in applications that use the Microsoft WebBrowser control or Chromium web browser (in CEF-based and Electron-based applications). Such applications are recognized as generic Windows applications, however, TestComplete uses its web testing abilities to expose the hierarchy of web pages displayed in the embedded browser.

To test web pages displayed in embedded browsers, you must have an active license for the TestComplete Web module. The Desktop module is not required.

 

More info here:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/considerations.html

 

Please follow all configuration settings in this article, like:

 

Common Considerations for Testing with Embedded Web Browsers

When testing in any embedded browser, take the following into account:

  • An application is recognized as an "ordinary" Process test object (rather than the Browser test object).

  • Page objects may be not immediate children of the respective process. They can be child objects of the window object that hosts the browser control.

  • Web tests created in applications with embedded browsers are not cross-browser tests (as they depend on the position of the embedded browser control within the object hierarchy). That is, for the same web page displayed in a standard and in an embedded browser, the path to the Page object varies, while the child objects are the same.

  • To add an application with an embedded browser as a Tested Application, you should add it as a Generic Windows Tested Application (rather than as a Web Application).

Specifics of Testing Applications with the Embedded Chromium Browser
  • For CEF-based applications: TestComplete can expose the page hierarchy only if JavaScript is enabled in the application. Enable JavaScript in your tested application through the settings of the CEF library.

  • Testing of Silverlight applications in CEF-based applications is not currently supported.

  • The hierarchy of web page elements in CEF-based and Electron-based applications is displayed as the Tree object model. If some other object model is chosen (not recommended), it is treated as the Tree model.

  • To test web applications created with EO.WebBrowser, set your system DPI to 100%.

 

Un sourire et ça repart

sonya_m
SmartBear Alumni (Retired)

@shy_bt Please answer on the forum, not to the email notification if you want community members to see your answer.


Sonya Mihaljova
Community and Education Specialist

shy_bt
Occasional Contributor

Hi Team,

I checked the File extensions, ChromiumEmbeddedFramework support is enabled. I tried Tested Apps with -InjectCefHook as command line parameter.Still am unable to recognise. Even added CefSharp.Wpf.ChromiumWebBrowser  under  Current / Default Project settings Any settings needs to be changed, please suggest. Please help, am held up for more than 15 days.

Am using Test complete  with

Version: 14.0.317.7 x86
License: Perpetual (Web, Desktop)

And the application is completely Desktop application not a web application.

 

Regards,

Shylaja

sonya_m
SmartBear Alumni (Retired)

Hi @shy_bt !

 

I would recommend updating TestComplete to the recent version - 14.50.

We are adding a lot of fixes and improvements with each new release.

If this doesn't help, please contact our Customer Care team since this might require additional investigation. Please post your results to the Community when you get them!


Sonya Mihaljova
Community and Education Specialist

shy_bt
Occasional Contributor

Hi Team,

 

By adding the application to the TestedApps collection with the -InjectCefHook command-line key,  TestCOmplete 14.50. is able to recognise the the elements in the application.

 

Thanks for the valuable suggestion!!!

 

regards,

Shylaja

cancel
Showing results for 
Search instead for 
Did you mean: