Test Script for Event driven function

Hi,
i m new to this product. i have one doubt , is it possible to write test scripts for event driven functions ?
if possible, could you please share some samples.?
Thnk you.
Bala.

Yes.
At the simplest, you could have a test like this:
[Test]
public function shouldThrowEvent():void {
  var eventCalled:Boolean = false;
  var someEventDispatcher:SomeEventDispatcher = new SomeEventDispatcher();
  someEventDispatcher.addEventListener( "someEvent",
          function ( event:Event ) {
               eventCalled = true;
  assertTrue( eventCalled );
I would recommend looking at docs.flexunit.org for more information.
Mike

Similar Messages

  • Test script for functional tesitng

    Hi all,
    i need to create test scripts for Non sap screens( z-transaction). In that i m adding new fields. since Thsoe fields are new, i dont have any data to test the screens. From where i can get the data to perform the testing?
    some of the fields are like export country code and container number etc..?
    Plz help me guys its urgent for me
    Edited by: anil kumar on Jul 25, 2008 1:03 PM

    Yes i got the asnwer after analysing myself

  • Do we have any Event Driven functionality in Biztalk

    Hi,
    Do we have any in-build event driven functionality in Biztalk? time-bound like.
    Few scenarios:
    1. If orchestration is running more then 5 mints then it should be alerted to admin.
    2. Alert need to be raised if bulk of messages are suspended.
    Thanks

    Hi Narasaiah,
    If you don't have resource to go for SCOM/BizTalk360, then
    You can consider using some operation scripts using WMI/Operations DL/SQL query which can be executed periodically using a schedule task (or as service).
    This script can check for the condition as you have specified and send a notification.
    Following scripts can give you some idea. Note: These scripts are just to give you an idea and get started, they are not tested.
    WMI for an orchestration which is Active state for 5 minutes:
    strComputer = "."
    Dim dtCurretTime, dt5Mins
    dtCurretTime = Now ()
    dt5Mins = DateAdd("h",-5,dtCurretTime)
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftBizTalkServer")
    Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM MSBTS_ServiceInstance WHERE ServiceStatus = 4 AND ActivationTime >= dt5Mins",,48)
    If colItems.Count >0
    Wscript.Echo "Instance" & colItems.ServiceName" has been in Active state"
    End If
    Here the "MSBTS_ServiceInstance" would give you the details about the orchestration
    And SQL query to get the count of suspended message:
    SELECT
    count(InstancesSuspended.)uidInstanceID
    FROM InstancesSuspended
    LEFT OUTER JOIN [Services]
    on InstancesSuspended.uidServiceID = [Services].uidServiceID
    LEFT OUTER JOIN Modules
    on Modules.nModuleID = [Services].nModuleID
    LEFT OUTER JOIN Instances
    on Instances.uidInstanceId = InstancesSuspended.uidInstanceID
    WHERE InstancesSuspended.DtCreated between DATEADD(dd,-7,GETUTCDATE()) and GETUTCDATE()
    and InstancesSuspended.nErrorCategory=0
    Instances.nState = 4 or Instances.nState = 32
    //Instances.nState as State -- 4 = Suspended (resumable), 32 = Suspended (not resumable)
    ORDER BY InstancesSuspended.dtCreated desc
    As mentioned, fine-tune these scripts, run them in periodically and send notification if the condition matches.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Test scripts for oracle applications using qtp testing tool

    hi
    i want some test scripts for oracle applications using qtp testing tool
    regards

    You will need to create separate scripts for Load testing. The functional scripts cannot be used in OLT. The exceptions to this would be the "General" items (Java Code Script & Web Services) which can also be used in OLT.
    e.g. Instead of selecting "Functional Testing - Oracle EBS/Forms"
    select "Load Testing (Protocol Automation) - Oracle EBS/Forms"
    Once you get into load testing you'll realise that you want to create very specific scripts and won't want to try re-using functional scripts. I know a lot of such tools are 'sold' on the fact that functional scripts can be re-used for load, but when it comes down to it you'll want to design your load scripts seperately anyway!

  • Test Script for Billing

    Hello Experts,
    I would like create test script for Billing.Since i have no clue about test script coz in my previous organization we have not made any script for testing.Now i would like to create testing for Billing.
    Could you all explain me what are the pre - requisites for testing only for Billing.
    What are the different ways for testing to perform since i have never worked on testing on documentations.
    Your reply would appreciate.
    Thanks
    Shri...

    Test script is nothing but unit testing through which you list down the steps that are needed to execute a test case and record the results.
    In your case, since you wanted a test script for billing, first you need to identify the different types of billing documents configured in production client.  For each and every billing document type, you need to create a test document and record in the following format
    Test Scenario No.
    Scenario:::Billing
    No.::TCode:::Description:::Input Data:::Output Data:::Remarks (OK/Error)
    We call this process as ASAP Methodology.  The prescribed format you can get in service market place.
    thanks
    G. Lakshmipathi

  • Test script for 4.6c to 4.7

    hi,
        can any one help me out to get test script for comparisons between 4.6c to 4.7

    HI,
    For 4.7  Try this link
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/e3003deddfae4de10000000a114084/frameset.htm
    Regards,
    Sachendra Singh

  • Test scripts for controlling

    Can any one explain me what the test script contains for testing out transcation codes in controlling . can anyone provide me a sample of test script for testing transcations in controlling.
    Thanks
    Monica

    Hi,
    Before the configuration settings / Reports are moved to Production it needs to be tested by Consultants as well as Business Users.
    Business Users will specify their requirements during Blue Print phase - basically how the system should work. After completing the configuration, testing is done based on the requirements. For testing this Test scripts are prepared for different Business scenarios covering various Transaction codes. This sequence of testing different transaction codes is known as Test script.
    For example for a Sales Cycle testing - a Sales Order is created - Delivery document is created - a Billing document is created. Accounting documents are checked whether it is posted to correct GL Accounts / Profit Centers etc. All these steps should be included in Test script.
    Thanks
    Murali.

  • Test scripts , for upgrade project

    hi
    i am doing upgrade project, its my first experience ,
    can someone tell me what is the test scripts for testing, how to prepare it, and what's importance of this for fico side?
    offcourse points to all.
    thanx

    hi plz refer at
    http://www.thespot4sap.com/upgrade_guide_v2.pdf
    asign points if useful
    thanks
    Srilakshmi

  • Test Script for HR Off Cycle Process Model

    Hi,
    Does any one have the Test Script for Off cycle Process Model?
    Regards,
    Srini.

    Do you have any conditional breakpoint between second and third step?
    The red error is coming out of conditional breakpoint and it will work if you re-run the step. Generally, we put conditional breakpoint to make sure that we will start next process only after verfiying the result of the last step and thats why if you start manually it turns green.
    You can delete conditional breakpoint if you dont want.
    Arti

  • Rational Robot Test Scripts for Oracle Application Vanilla Instance

    Hi,
    Does anybody have Rational Robot Test Scripts for Oracle Applications Vanilla Instance. We are in the process of automating testing. But for the same, we need to have the test scripts for the standard functionalities/flows.
    Any help would be highly appreciated.
    kanjurm

    Hi;
    I belive there is no sch a script as you mention. Please log a SR for your request
    Regard
    Helios

  • Including a test script for other scripts in OpenScript

    Hi all,
    I am a newbie in OpenScript. I had created a "myfunctions" test script which have all the common functions for my scripts. I found out that, for the script to be called, we need to add it to the script assets. This will not be feasible in my case because there are many scripts that calls these functions and I cant add them to all. Is there any other method to include it (eg. Making it in a jar file and using import? or something of that sort?). Couldnot get any help from the net or the documentation. Please let me know a way to handle this.
    Thanks.

    Hi,
       Looks like the relative path information is not being properly resolved during Replay. Is the application URL being properly loaded in the Replay view? By "properly" I mean does it have the entire URL of the application with the protocol, server & port number?
    Regards,
    Satyajit

  • Test Scripts for Oracle Account Recievable app using QTP tool

    Hi
    Please send me some QTP sample Script for testing Oracle AR application
    Thanks

    You will need to create separate scripts for Load testing. The functional scripts cannot be used in OLT. The exceptions to this would be the "General" items (Java Code Script & Web Services) which can also be used in OLT.
    e.g. Instead of selecting "Functional Testing - Oracle EBS/Forms"
    select "Load Testing (Protocol Automation) - Oracle EBS/Forms"
    Once you get into load testing you'll realise that you want to create very specific scripts and won't want to try re-using functional scripts. I know a lot of such tools are 'sold' on the fact that functional scripts can be re-used for load, but when it comes down to it you'll want to design your load scripts seperately anyway!

  • Test Scripts for financials modules

    Hi,
    I am looking for detailed test scripts covering all test scenarios for system testing in financials modules. I am interested in Purchasing, Payables, Cash Management, Projects and Fixed Assets. I also need for Receivables and Order Management.
    Do some body have this please let me know. If there is any website or download place where I can get this. Please let me know.
    I am looking for a test script to show the purpose and results clearly including the gl accounts involved and the results in debiting and crediting the accounts in various transactions while doing the test. For ex. when you validate a PO matched invoice in Payables which accounts get affected and how etc.
    Thanks in advance
    Regards,

    Pl do a search for "financials test scripts" in the forum search - this has been discussed and responded to many times before :-)
    HTH
    Srini

  • Best / most popular software or scripts for adding search function to website?

    I'm trying to find a good piece of software or script for implementing a site search function into our website.  I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding.  Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down.  I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that.  These are the primary needs of the website:
    --Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages.  The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc.  The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
    --We are trying to keep the price under about $50, or use a free solution
    --The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago).  We self-host both sites.
    --Our server can't run PHP
    --The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site.  It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
    --I do have a sitemap page already on it, if that matters or helps
    Some of the ones I've found so far that looked the most promising include:  Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
    Forgive me if there is a better area to post this, if so let me know.

    For a static site, your options are:
    Google ~  http://www.google.com/sitesearch/
    Freefind ~ http://www.freefind.com/
    Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Sample test scripts for Enhancements

    I need your inputs on some standard Test Scripts that should always be tested for Enhancements(User Exits etc...) Points will be rewarded.

    These are the table is the order in which you need to papoluate data from 10.7 instance for the conversion of customers:
    ·     RA_CUSTOMER_INTERFACE
    ·     RA_CUSTOMER_PROFILES_INTERFACE
    ·     RA_CUSTOMER_BANKS_INTERFACE
    ·     RA_CONTACT_PHONES_INTERFACE
    ·     RA_CUST_PAY_METHOD_INTERFACE
    Once data is there, you need to call custmer import programe.
    You have also number of API's for TCA, and process is same.
    Regards
    sanjit

Maybe you are looking for

  • Mini-DVI to HDMI Problem

    Hi, I bought a Mini-DVI to HDMI adapter like this one: http://www.hdtvsupply.com/mini-dvi-to-hdmi.html to be able to hook up my macbook (2007 white version) to my HDTV. However, since HDMI is traditionally for both video AND audio, the HDMI channel o

  • Add a new column into repository

    hi In BI11g, how to add a new column into repository? Thanks kavi

  • Is there a fast way to transfer data with Migration Asst. from MacBook Pro to MacBook Air?

    MacBook in its final death throes. Bought a MacBook Air through a recommendation. Looking stupid right now since the ports are incompatible. Wireless Airport will do it in about six hours. Looks like I would have to go through an elaborate system of

  • WS TO IDOC STILL not resolved

    HI all, This question remains unresolved I have Provided the trace contents as asked by XIans. I am Again sending the contents of the trace.   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Response   --> - <SAP:Trace xmlns:SAP="htt

  • Sync contact, calendar, massage. etc from iPhone to iTunes?

    My old computer died and i got new one so, I synced apps, music and ringtoon  everything goes fine, but I want to update my iPhone but the problem,  if I update my iPhone all my massages, contacts, notes and calendar will removed, please help!