Highlighted
Absent Member.
Absent Member.
3029 views

VuGen Compatibility with single page applications (AngularJS)

We are in the process of building a new single page application using AngularJS for one of our clients.  They currenlty use LoadRunner (Web - Http/Html) protocol for their performance testing and they would like to continue using that protocol with the new application.  I've been successfull at creating TruClient scripts but I havent been able to create scripts using the Web protocol (user actions are not recorded).  Is there a way to record Web protocol scripts against a AngularJS single page application?

0 Likes
4 Replies
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: VuGen Compatibility with single page applications (AngularJS)

Hello,

If the backend communication is based on http protocol, it can be record with the web/http protocol. it do not depend on which js framework you are using. 

Is the application using https? 

and you can post detailed recording log for analysis. 

Regards,

Bingle(LoadRunner R&D)

 

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: VuGen Compatibility with single page applications (AngularJS)

has there been any update on this thread?  We have same issue using 12.53 where we can only use TruClient IE due to the nature of our scripts and the browser compatability.   

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: VuGen Compatibility with single page applications (AngularJS)

I have experience in testing Angular JS like applications. 

When you use HTTP/HTML protocol, only the web services calls will be captured. This can be used to validate the server side metrics.

You need to use TruClient scripts to capture the end-to-end metrics. 

Here is my approach:

  • Create scripts in both TruClient and Web HTTP/HTML.
  • Name the transactions for HTTP/HTML protocol as below.

01_Login_HTTP

02_Launch_HTTP

Name the transactions for TruClient protocol as below.

01_Login_TruClient

02_Launch_TruClient

 

Simultaneously run both the scripts with only 1 Vuser of TruClient and the actual number of vusers in HTTP/HTML. 

Capture the metrics.

Now to get the client-side metrics use the below formula.

01_Login Client Side metric = 01_Login_TruClient - 01_Login_HTTP

and so on.

 

 


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: VuGen Compatibility with single page applications (AngularJS)

@NaveenKumar, I like your approach.

@Lisa, please use the latest patch level. TruClient IE works well with AngularJS which is lower than version 2.0. AngularJS 2.0 was not tested as it was released after LoadRunner was released.

Regards,

Shlomi

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.