The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> OpenSTA

Pages: 1
pawanr
Member


Reged: 10/03/11
Posts: 87
Does opensta support Ajax, Javascript, Soap, Flash
      #703303 - 04/03/12 05:41 AM

We have application developed on Ajax dynamic calls, Javascript, Flash, Javascript, Json, Soap request. Does opensta support this type of application.

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Bernie VelivisModerator
Moderator


Reged: 06/02/03
Posts: 1604
Loc: Hollis, NH, USA
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: pawanr]
      #703442 - 04/04/12 12:51 PM

Not easily. OpenSTA is an HTTP emulator. It is not highly automated and lacks features like automatic correlation (think viewstates, variables in posts, etc). I've used it for Ajax, Javascript, json, and Soap, but its not easy. I had to write a tool that automatically edits scripts to do correlation or it would take me days to get a script from its original state into a state where I could play it back.

The honest answer is, yeah, it can probably do all those things (well, not flash), but your productivity will suffer as it requires a LOT of manual effort vs commercial tools. On the plus side, its free... so depends on how much you value your time if its worthwhile using OpenSTA. Getting support these days is hard. I used to do support and training, but other parts of my business have gotten very busy and profitable... and its just not worth the effort for me to continue with training and support these days.

--------------------
Bernie Velivis, Performax Inc
Bernie's blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
pawanr
Member


Reged: 10/03/11
Posts: 87
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: Bernie Velivis]
      #703468 - 04/04/12 11:29 PM

Thanks Bernie for your valuable inputs. Please let me know how we validate the script if NO DOM structure is available although all settings are right in place. Like page verification, data parametrization and correlation.

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Bernie VelivisModerator
Moderator


Reged: 06/02/03
Posts: 1604
Loc: Hollis, NH, USA
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: pawanr]
      #703528 - 04/05/12 10:21 AM

DOM data is stored in a file with the same script name in the /captures directory (*.all files). Is it there and non-zero in size?

--------------------
Bernie Velivis, Performax Inc
Bernie's blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
pawanr
Member


Reged: 10/03/11
Posts: 87
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: Bernie Velivis]
      #703555 - 04/05/12 10:19 PM

Yes .ALL file is there and the size is 8.12 MB but how we interpret this file in script.

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Bernie VelivisModerator
Moderator


Reged: 06/02/03
Posts: 1604
Loc: Hollis, NH, USA
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: pawanr]
      #703642 - 04/08/12 10:13 AM

http://opensta.org/docs/ug/os-model.htm#49405

--------------------
Bernie Velivis, Performax Inc
Bernie's blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
pawanr
Member


Reged: 10/03/11
Posts: 87
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: Bernie Velivis]
      #703652 - 04/08/12 10:46 PM

Hi Bernie, This procedure i know but i am curious to know if by clicking url details there is no DOM structure shown so how we validate the script by using .ALL file.

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Bernie VelivisModerator
Moderator


Reged: 06/02/03
Posts: 1604
Loc: Hollis, NH, USA
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: pawanr]
      #703712 - 04/09/12 11:39 AM

Validating Scripts

You can validate that a request has returned expected results by looking at the http status code (if > 400, usually it did not work). Even if you get a 200 code back, there still could be an error. Only way to be sure is to search for a string in the response that indicates success.

for example;

PRIMARY GET URI "http://www.opensta.org/ HTTP/1.0" ON 2 &
HEADER DEFAULT_HEADERS &
,WITH {"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, " &
"application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, " &
"application/msword, */*", &
"Accept-Language: en-us", &
"Connection: Keep-Alive"} &
,WITHOUT {"Referer"}

load response_info body on 2 into buffer
log buffer ! This shows the HTML returned,

set successString = "OpenSTA Users Home Page"

set offset = ~locate(successString, buffer), CASE_BLIND
if (offset = -1) then
Log "VERIFY RESULTS FAILED! Couldnt find ",successString ," in ", buffer
exit
endif

This technique is somewhat limited by the maximum variable size (for the variable BUFFER in this example), which is 64Kb.

If you add logging to EVERY primary get/post, then paste the text into a file and open with a browser (I use chrome, seems fastest for this) you will see a partial rendering (minus frames, gifs, jpgs, etc of what came back. Its usually good enough to figure out whats happening.


Parameterizing scripts

http://www.iperformax.com/downloads/osta_correlation.pdf

--------------------
Bernie Velivis, Performax Inc
Bernie's blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
pawanr
Member


Reged: 10/03/11
Posts: 87
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: Bernie Velivis]
      #703756 - 04/09/12 10:48 PM

Thanks Bernie, this information is useful to me. You mean to say if DOM structure in not available in script modeler still we can continue to work on opensta by this method right??

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Bernie VelivisModerator
Moderator


Reged: 06/02/03
Posts: 1604
Loc: Hollis, NH, USA
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: pawanr]
      #703791 - 04/10/12 04:44 AM

Yes, I rarely use the DOM explorer. Its not in any way mandatory, and for complex applications where the structure of what is returned changes frequently, its useless.

--------------------
Bernie Velivis, Performax Inc
Bernie's blog


Post Extras: Print Post   Remind Me!   Notify Moderator  
pawanr
Member


Reged: 10/03/11
Posts: 87
Re: Does opensta support Ajax, Javascript, Soap, Flash [Re: Bernie Velivis]
      #703797 - 04/10/12 05:35 AM

Thanks Bernie for your valuable inputs.

--------------------
Cheers,
Pawan R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  SteveKay, AJ, dansut, Bernie Velivis 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 5792

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5