Simple test case with NL and table order .

Hi,
did some tests on my 9.2.0.8 and got few questions:
SQL> select count(*)  from p;
  COUNT(*)
      2000
SQL> select count(*)  from c;
  COUNT(*)
      1000
SQL> select count(*) , id from p group by id having count(*) > 1;
no rows selected
SQL> select count(*) , id from c group by id having count(*) > 1;
  COUNT(*)         ID
       100         10
SQL> desc p
           Name
    1      ID number
    2      FILLER varchar2(100)
SQL> desc c
           Name
    1      ID number
    2      FILLER varchar2(100)
Got 10046 traces:
case A
select /*+ use_nl(p) leading(c) */ *
from
p , c where p.id = c.id and c.id in (10)
Rows     Row Source Operation
    100  TABLE ACCESS BY INDEX ROWID P
    201   NESTED LOOPS
    100    TABLE ACCESS BY INDEX ROWID C
    100     INDEX RANGE SCAN C_ID (object id 411255)
    100    INDEX RANGE SCAN P_ID (object id 411256)
Case B optimal
select /*+ use_nl(c) leading(p) */ *
from
p , c where p.id = c.id and c.id in (10)
Rows     Row Source Operation
    100  TABLE ACCESS BY INDEX ROWID C
    102   NESTED LOOPS
      1    TABLE ACCESS BY INDEX ROWID P
      1     INDEX RANGE SCAN P_ID (object id 411256)
    100    INDEX RANGE SCAN C_ID (object id 411255)So its simple nested loop with postponed inner table access .
Why in row source operation we have got 102 rows (NL level) ? (It means NL was executed 102 times ?)
And why 201 in other case ?
Regards
GregG

I am not sure about the calculation/reason for those A-ROWS figures but the NL operation executes only once (but accesses inner rowsource 100 times in case one and once in second case) in both cases (which is as expected).
A closer test case (to OP) is
SQL> select * from v$version ;
BANNER                                                                                                                                                                    
Oracle Database 10g Release 10.2.0.5.0 - Production                                                                                                                       
PL/SQL Release 10.2.0.5.0 - Production                                                                                                                                    
CORE     10.2.0.5.0     Production                                                                                                                                                
TNS for Linux: Version 10.2.0.5.0 - Production                                                                                                                            
NLSRTL Version 10.2.0.5.0 - Production                                                                                                                                    
SQL> create table p nologging as select level as id, cast(dbms_random.string('a', 100) as varchar2(100)) as filler from dual connect by level <= 2000 ;
Table created.
SQL> exec dbms_stats.gather_table_stats(user, 'P') ;
PL/SQL procedure successfully completed.
SQL> create index p_id on p(id) nologging ;
Index created.
SQL> select count(*)  from p;
  COUNT(*)                                                                                                                                                                
      2000                                                                                                                                                                
SQL> select count(*) , id from p group by id having count(*) > 1;
no rows selected
SQL> create table c nologging as select level as id, cast(dbms_random.string('a', 100) as varchar2(100)) as filler from dual connect by level <= 900 union all select 10, cast(dbms_random.string('a', 100) as varchar2(100)) as filler from dual connect by level <= 99 ;
Table created.
SQL> select count(*) , id from c group by id having count(*) > 1;
  COUNT(*)         ID                                                                                                                                                     
       100         10                                                                                                                                                     
SQL> exec dbms_stats.gather_table_stats(user, 'C') ;
PL/SQL procedure successfully completed.
SQL> create index c_id on c(id) nologging ;
Index created.
SQL> select /*+ use_nl(p) leading(c) gather_plan_statistics */ * from p , c where p.id = c.id and c.id in (10) ;
        ID FILLER                                                                                                       ID                                                
FILLER                                                                                                                                                                    
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
zrGZSmUFXNyNMOViUYSvPDdfznSlMvaFnQakopPtcBvXQkWmMlWCnrPyeZLfhuLLeYyAEkcwZNSfoASLYpoAnpESqlQWkaEGatXV                                                                      
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
hKtrWPCfAmWWLGMXfwHCusSwVpehEnZdxYPLouIuBlMMiSKlIJWwklZCAXZaCbIxKlhzBVRhhTPdLcheyAdoYyfxwomqWRrMXuMk                                                                      
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
ncSqclZvOGgyXDPaaouGaUqXmJtFNbNyFzUalDknEMvTsBRwGmTxOCIalLvqMnuTFBZJGzNfBqaSVHUtvNDceVZqKQQyqeGKOUdz                                                                      
100 rows selected.
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST')) ;
PLAN_TABLE_OUTPUT                                                                                                                                                         
SQL_ID  1f55m4rabtu3h, child number 0                                                                                                                                     
select /*+ use_nl(p) leading(c) gather_plan_statistics */ * from p , c where p.id = c.id and                                                                              
c.id in (10)                                                                                                                                                              
Plan hash value: 2553281496                                                                                                                                               
| Id  | Operation                     | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |                                                                 
|   0 | SELECT STATEMENT              |      |      0 |        |      0 |00:00:00.01 |       0 |      0 |                                                                 
|   1 |  TABLE ACCESS BY INDEX ROWID  | P    |      1 |      1 |    100 |00:00:00.01 |     112 |      2 |                                                                 
|   2 |   NESTED LOOPS                |      |      1 |      1 |    201 |00:00:00.02 |     110 |      2 |                                                                 
|   3 |    TABLE ACCESS BY INDEX ROWID| C    |      1 |      1 |    100 |00:00:00.01 |       7 |      1 |                                                                 
|*  4 |     INDEX RANGE SCAN          | C_ID |      1 |      1 |    100 |00:00:00.01 |       3 |      1 |                                                                 
|*  5 |    INDEX RANGE SCAN           | P_ID |    100 |      1 |    100 |00:00:00.01 |     103 |      1 |                                                                 
Predicate Information (identified by operation id):                                                                                                                       
   4 - access("C"."ID"=10)                                                                                                                                                
   5 - access("P"."ID"=10)                                                                                                                                                
24 rows selected.
SQL> select /*+ use_nl(c) leading(p) gather_plan_statistics */ * from p , c where p.id = c.id and c.id in (10) ;
        ID FILLER                                                                                                       ID                                                
FILLER                                                                                                                                                                    
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
zrGZSmUFXNyNMOViUYSvPDdfznSlMvaFnQakopPtcBvXQkWmMlWCnrPyeZLfhuLLeYyAEkcwZNSfoASLYpoAnpESqlQWkaEGatXV                                                                      
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
hKtrWPCfAmWWLGMXfwHCusSwVpehEnZdxYPLouIuBlMMiSKlIJWwklZCAXZaCbIxKlhzBVRhhTPdLcheyAdoYyfxwomqWRrMXuMk                                                                      
        10 opKRJynLxjeCiOScvOklQBXfpnfgvlhHNLzlKKrFaNzQLODKSnKMxpzecqyFkVSLvdosZJhWckBcQbpIaqttahlqBxrugKQVrnIk         10                                                
ncSqclZvOGgyXDPaaouGaUqXmJtFNbNyFzUalDknEMvTsBRwGmTxOCIalLvqMnuTFBZJGzNfBqaSVHUtvNDceVZqKQQyqeGKOUdz                                                                      
100 rows selected.
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST')) ;
PLAN_TABLE_OUTPUT                                                                                                                                                         
SQL_ID  7hvf1zvsvfhdp, child number 0                                                                                                                                     
select /*+ use_nl(c) leading(p) gather_plan_statistics */ * from p , c where p.id =                                                                                       
c.id and c.id in (10)                                                                                                                                                     
Plan hash value: 2133717140                                                                                                                                               
| Id  | Operation                     | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |                                                                          
|   0 | SELECT STATEMENT              |      |      0 |        |      0 |00:00:00.01 |       0 |                                                                          
|   1 |  TABLE ACCESS BY INDEX ROWID  | C    |      1 |      1 |    100 |00:00:00.01 |      11 |                                                                          
|   2 |   NESTED LOOPS                |      |      1 |      1 |    102 |00:00:00.01 |       7 |                                                                          
|   3 |    TABLE ACCESS BY INDEX ROWID| P    |      1 |      1 |      1 |00:00:00.01 |       4 |                                                                          
|*  4 |     INDEX RANGE SCAN          | P_ID |      1 |      1 |      1 |00:00:00.01 |       3 |                                                                          
|*  5 |    INDEX RANGE SCAN           | C_ID |      1 |      1 |    100 |00:00:00.01 |       3 |                                                                          
Predicate Information (identified by operation id):                                                                                                                       
   4 - access("P"."ID"=10)                                                                                                                                                
   5 - access("C"."ID"=10)                                                                                                                                                
24 rows selected.
SQL> drop table p purge ;
Table dropped.
SQL> drop table c purge ;
Table dropped.
SQL> spool offEdited by: user503699 on Jan 18, 2012 11:49 PM

Similar Messages

  • SQLJ calling PL/SQL with records and tables as parameters

    Has anyone used sqlj to to call procedures with records and
    tables as IN, OUT, or INOUT as parameters? If so how do you
    assign values to the IN parameter in the record/tables, and get
    values out of the record/table when it is passed back? Might
    anyone have any syntax?
    null

    One thing I forgot to mention: If you're an 8i client, then in
    8.1.6 you'll be able to use JPublisher to solve this problem,
    since it'll generate these wrappers for you.
    Pierre
    Oracle Product Development Team wrote:
    : Hi,
    : The key issue is that no part of Oracle code except PL/SQL is
    : aware of the PL/SQL Record types and PL/SQL "index-by" table
    : types.
    : So the only way to call a PL/SQL procedure with args of a
    RECORD
    : or "index-by" table types is from another PL/SQL routine.
    : In most cases, it's possible to work-around this by wrappering
    : your PL/SQL method with another which doesn't have this issue.
    : For example, if you're trying to call procedure proc01 in:
    : package pack01 is
    : type rec01 is record(n1 number, d1 date);
    : procedure proc01 (r rec01);
    : end;
    : you can create a wrapper method:
    : package pack01_wrapper is
    : procedure proc01_wrapper (n1 number, d1 date);
    : end;
    : package body pack01_wrapper is
    : procedure proc01_wrapper (n1 number, d1 date) is
    : r pack01.rec01;
    : begin
    : r.n1 := n1;
    : r.d1 := d1;
    : pack01.proc01;
    : end;
    : end;
    : If you're a 7.3 client, that's about all you can do. The Fix
    was
    : introduced in 8.0, where new structured types (ADT's) and new
    : table types (VARRAY's and Nested tables) were introduced. So
    if
    : you're an 8.0 client, your 'wrapper' package could use an ADT
    : which has the same attributes as the record, rather than
    : 'exploding' the record into its individual components as I
    showed
    : above.
    : Hope this helps!
    : Pierre
    : Thomas Richardson (guest) wrote:
    : : Has anyone used sqlj to to call procedures with records and
    : : tables as IN, OUT, or INOUT as parameters? If so how do you
    : : assign values to the IN parameter in the record/tables, and
    get
    : : values out of the record/table when it is passed back? Might
    : : anyone have any syntax?
    : Oracle Technology Network
    : http://technet.oracle.com
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Move test case with referenced items to another project

    How can I move a test case with all referenced contexts and verifications from a project to another project? At the moment I have to move each single item. How can I do this more efficient?

    Hi Markus,
    You can Export/Import it in a Test Portable format.
    All contexts will be included.
    Kind regards,
    Ulyana.

  • Can I re-use a parameterized manual test case with different set of parameters in a different test plan?

    Can I re-use a parameterized manual test case with different set of parameters in a different test plan without impacting the parameters in the first test plan?

    Hi ssteele_1,
    Thank you for posting in MSDN forum.
    Generally, I know that if you want to re-use a parameterized manual test case and without impacting the parameters in the first test plan.
    I suggest you could try to right click this parameterized manual test case ->Select the Create copy and add to suite option like the following screen shot.
    Then the parameterized manual test case can be re-used as a new test case in this MTM and it will did not impact the original parameterized manual test case.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Printing with print() and table making

    [code
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class CarLoan {
    public static double p(double d, double i, double t) {
    return (d * (i / 12) * Math.pow( (1+(i/12)), t)) / (Math.pow((1+(i/12)), t) - 1);
    //computes balance b(m) at m months for simple interest loan
    // of d and annual interest i term of t months
    public static double b(double m, double d, double i, double t) {
    return (d * Math.pow((1+(i/12)), m)) - p(d,i,t) * (Math.pow((1+(i/12)), m) -1) / (i/12);
    public static double f(double m, double d, double i, double t) {
    return d - p(d,i,t) * m + c(m,d,i,t) * (m * (2 * t - m + 1) / (t * (t +1)));
    public static double c(double m, double d, double i, double t) {
    return d - p(d,i,t) * (m -1) + b(m,d,i,t);
    public static void main(String[] args) {
    System.out.println("Car Loan Calculator");
    Scanner stdin = new Scanner(System.in);
    System.out.println("Enter your amount to finance:");
    double d = stdin.nextDouble();
    System.out.println("Enter your annual interest rate (in decimals,ie 0.07 is 7%): ");
    double i = stdin.nextDouble();
    System.out.println("Enter your term (in months): ");
    double t = stdin.nextDouble();
    System.out.println();
    for(double m = 0;m <= t; m++) {
    double balanceSimple = b(m,d,i,t);
    double balancePrecomp = f(m,d,i,t);
    double monthlyPayment = p(d,i,t);
    double totalInterest = c(m,d,i,t);
    System.out.printf("%4d %4f\n",m , balanceSimple);
    //Enter totals in this line here
    //System.out.println("Totals " +
    Can someone help me print a table with printf() ? Or if you know another way to do it or HOW to do it, that'd help, thanks

    No need to: there are no formatting possibilities
    available using a PrintStream.
    There's just a bunch of overloaded methods for all
    the primitives and the
    print[ln](Object arg) method simply uses the
    toString() method on
    the object argument ...
    OTOH I don't like the printf() method much
    either ... I know what hoops the
    C version has to go through to get the job done. IMHO
    it doesn't justify the
    utility value in Java; but that's just me ;-)Thanks for the input.
    kind regards,And to you.
    Jos� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Question on rectangle with graph and table

    i inserted the graph chart and table in a rectangle for similar values... but when i see the preview of this scenario... its showing seperately.... its mean that first showing the rectangle and then graph and then table in the preview page. when i saved
    it into PDF; both chart and table are coming in same rectangle.
    can any one please give a quick response to this.

    Hi  Nagalinga,
    Based on my understanding, you create a chart and table with same values, then you use a rectangle to contain them. When previewing the report, rectangle, chart, table displays separately. However, when exporting to PDF, the chart and table display in a
    same rectangle.
    In Reporting Service, rectangles can be used as containers to help control the way data regions render in a report. However, a rectangle is only a container for items that you either create in the rectangle or drag into the rectangle. If you draw a rectangle
    around an item that already exists on the design surface, the rectangle will not act as its container. So in your scenario, I suppose you create a chart and table then draw a rectangle around them, rectangle, chart and table will display separately when previewing
    report. As we tested in our environment, we create a chart and table with same values, then drag them into a rectangle, the chart and table both display in a rectangle whether we preview the report or render the report as PDF. Please refer to the screenshots
    below:
    Reference:
    Rectangles and Lines (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • What is the difference between READ TABLE ITAB WITH KEY  and  TABLE KEY

    Hi Experts,
    what is the difference between
    READ TABLE <ITAB> WITH KEY <K1> = <C1>
                                                    <Kn> = <Cn> .
    and 
    READ TABLE <ITAB> WITH TABLE KEY <K1> = <C1>
                                                              <Kn> = <Cn> .
    Thanks
    Akash.

    Hi akashdeep,
    Nice question. I also tried to find out, but no much success. My opinion is that for practical purposes there is no difference.
    It may have difference in case of searching, especially sorted tables. (binary search or normal linear search).
    Case1: If our table is sorted table with defined key fields, and we give WITH TABLE KEY, then faster binary search is used.
    Case2 : If our table is sorted table with defined key fields, and we give WITH  KEY, (and no field contained in the keys), then normal linear search is used.
    regards,
    amit m.

  • I "upgraded" to FF4, now it doesnt work properly, wont open pages, will open blank tabs when i click on a link, tried to go back to the older one but that doesnt work now either, have tested it with Safari and it opens everything fine. Any ideas?

    After upgrading to firefox 4 im now having a lot of problems using the browser.
    if i try an open a link in a new tab it will just open up a blank tab, if i click on links or even type in the google search bar at the top it doesnt do anything, it just says "done" and the circle thing stops as if im on the page already, have tested it with Safari doing the same things and Safari works fine. I'd swap but all my bookmarks and passwords are in Firefox so id rather stay with that.
    I tried going back to the older version of firefox (3.5 or something) but seems the bugs are here to stay now.......so.......any ideas? because its really annoying, shouldn't have "upgraded".
    Is there a new patch coming out anytime soon or should i start getting used to Safari?
    Thanks for your help.
    Mark Lavery (Melbourne)

    I would copy over the entire thing if you have room.  With iTunes 10.4 though, you can download any previous iTunes purchases you have made in the past with your current iTunes account.  While in iTunes, look at the left hand side of your screen and select "Purchases" and look at the bottom right corner of the screen and select "Download Previous Purchases".  If you have an iPhone, iPod and/or iPad...you can do the same thing from each device.  Nice new feature...just remember that those ripped CDs need a back-up!!!  Enjoy...

  • CASE vs DECODE - CASE with SUM and All in Page Item is non aggregable

    Hi,
    I'm using Discoverer 9.0.4.
    After switching calculations from DECODE to CASE
    I found out that case gives a non aggregable result when using a Page Item and selecting <All>.
    The calculations
    (SUM x) / (SUM y)
    or
    (x SUM) / (y SUM)
    where x and y are variables, work fine with page item <All>.
    But for example:
    CASE WHEN 1=2 THEN 1 ELSE (SUM x) / (SUM y) END
    gives non-aggregable.
    The same code works with DECODE:
    DECODE(1,2,1,(SUM x) / (SUM y))
    and is aggregable.
    Does anyone know a reason or a way to make it work with CASE?
    Thanks,
    Joao Noronha
    P.S.: I wanted <= comparisons and CASE is the best in simplicity,
    but now I know I can do it with DECODE, still looking ok using LEAST instead of ABS of the difference.

    Hi there
    I think therefore you have answered your own question and determined that using CASE in aggregations is not a good idea. I only threw out the two CASE options as ideas not as solutions, just in case (pardon the pun) one of these worked in your situation.
    Your comment I must say that if it worked it would give a wrong result (the sum of the divisions is not the same as the division of the sums) may give the wrong answer in your case but may be correct in others. It just depends how the items in the folder have been set up. I agree though that SUM(x) / SUM(y) will more often than not give the right answer.
    This discussion about DECODE vs CASE has been going on ever since Oracle introduced CASE as a means of placating a younger breed of user who needed an IF..THEN...ELSE construct and could not get their minds around the intricacies of DECODE. The DECODE is a much more reliable function than CASE because it has been around for a long time allowing Oracle plenty of opportunity to iron the bugs out of it. If I get a chance I will always use a DECODE whenever aggregations are required. However, when no aggregations are in use then I'll use CASE, simply because it's easier for users to work with.
    Unfortunately, users need to work with aggregations and so I don't see any alternative to Plus users having to learn DECODE. Whenever I teach Plus I always teach the users both CASE and DECODE but point out that DECODE has fewer issues that CASE. Oh, and talking of issues, try getting the THEN and ELSE components to return a different datatype. CASE has a fit and will not compile.
    Best wishes and glad you got your issue solved - you did right?
    Regards
    Michael

  • Using expdp to export a mix of tables with data and tables without data

    Hi,
    I would like to create a .dmp file using expdp, exporting a set of tables with data and another set without data. Is there a way to do this in a single .dmp file? For example, I want all the tables in a schema with data, but for the fact tables in that schema, I only want the fact table objects, not the data. I thought it might be easier to create two separate .dmp files, one for each scenario, but would be nice to have one .dmp file that satisfies my requirement. Any help is appreciated.
    Thanks,
    -Rodolfo
    Edited by: user6902559 on May 11, 2010 12:05 PM

    You could do this with where clauses. Let's say you have 10 tables to export, 5 with data and 5 without data. I would do it like this
    tab1_w_data
    tab2_w_data
    tab3_w_data
    tab4_w_data
    tab5_w_data
    tab1_wo_data
    tab2_wo_data
    tab3_wo_data
    tab4_wo_data
    tab5_wo_data
    I would make one generic query
    query="where rownum = 0"
    and I would make 5 specific queries
    query=tab1_w_data:"where rownum > 0"
    query=tab2_w_data:"where rownum > 0"
    query=tab3_w_data:"where rownum > 0"
    query=tab4_w_data:"where rownum > 0"
    query=tab5_w_data:"where rownum > 0"
    The first query will be applied to all tables that don't have their own specific query and it will export no rows, the next 5 will apply to each of the corresponding table.
    Dean

  • Capture Characteristics with Material and Sales Order

    Dear All ,
    I have to capture the charecteristics alongwith the material, these characteristics also flow in the sales order, basically a class has been defined which holds a number of characteristics and this class is assigned to the material and I guess this is done using the variant configurator,
    1) How will be able to capture the same and display  
       those ?
    2) Does this characteristics flow in the standard
       extractors of the material and sales order or any
       other cube which can multicubed with those ?
    Plz do suggest me the an viable option.
    Thanks & Warm Regards,
    Fayak.

    Hi Anil,
    Thanks for your reply, I have checked up the material attributes it does not flow there and I was referrring to one note where you can enhance your datasource using CTBW to capture this characteritsics so I did enhance 0MATERIAL_ATTR, the other attributes are listed as an TEXT DataSource and If I check them using RSA3 data gets populated accordingly but the enhanced datasource 0MATERIAL_ATTR which become 1CL_MAT001 does not return any records shows zero records, I am looking for charcterictics which have been mapped using an Variant Configurator and as far as the note suggests it has to be done thru CTBW to capture this, I have done that but success still eludes me,
    Experts Plz help on this as I am on pressure to complete this.
    Thanks,
    Fayak.

  • Creating a chart in TFS showing test cases that pass and failed using lightweight chart in Team Web Access

    How to you build a chart in TFS that show test cases results.
    I'm using lightweight charts in Team Web Access.
    In Team Web Access I go into my project, then I create test cases under the TEST tab and then run my test manually.  Now I want to create a testing progress result chart.  I go into the TEST tab, then click on test plan and notice that
    there is no Chart tab.
    Is this tab configurable or am I missing something?

    To my knowledge, charts are only available for work item queries in TFS web access. If you want to generate test result charts, you can do that using the TFS reporting data in the data warehouse (if your administrator configured it when setting up TFS).
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • OTM  filter/query for the test cases with Test Steps seciton = Empty?

    Hi Folks,
    How to query/ fliter for all those test cases which does not have any test steps. They Test Step Section is empty. How to acheive this in OTM?

    this happens particularly when multiple people work on the same test case to update it from multiple machines.
    Edited by: OATS Explorer on Feb 22, 2012 4:10 AM

  • Importing existing test cases with multiple test steps into e-Manager

    When I import my excel-based test cases into e-Manager Enterprise, each test step appears as a separate test case. How can I correct this problem?

    Please try attached XLS. You need to blank out every column except for the test steps column for rows which are your test steps.

  • High Score Table: Writing a Simple Text File with Flash and PHP

    I am having a problem getting Flash to work with PHP as I need Flash to read and write to a text file on a server to store simple name/score data for a games hi score table. I can read from the text file into Flash easily enough but also need to write to the file when a new high score is reached, so I need to use PHP to do that. I can send the data from flash to the php file via POST but so far it is not working. The PHP file is confirmed as working as I added an echo to the file which displayed a message so I  could check that the server was running PHP - the files were also uploaded to a remote server so I  could test them properly. Flash code is as follows:
    //php filewriter
    var myLV = new LoadVars();
    function sendData() {
    //sets up variable 'hsdata' to send to php
    myLV.hsdata = myText;
    myLV.send("hiscores.php");
    I believe this sends the variable 'myText' to the php file as a variable called 'hsdata' which I want the php file to write into a text file. The mytext variable is just a long string that has all the scores and names in the hiscore. OK, XML would be better way of doing this but for speed I just want to get basic functionality working, so storing a simple text sting is adequate for now. The PHP code that reads the Flash 'hsdata' variable and writes it to the text file 'scores.txt' follows:
    <?php
    //assigns to variable the data POSTed from flash
    $flashdata = $_POST["hsdata"];
    //file handler opens file and erases all contents with w arg
    $fh = fopen("scores.txt","w");
    //adds data to file
    fwrite ($fh,$flashdata);
    //closes file
    fclose ($fh);
    echo 'php file is working';
    ?>
    Any help with this would be greatly appreciated - once I can get php to write simple text files I should be ok. Thanks.

    Thanks for your help.
    I have got Flash working to a certain extent with PHP using loadVars but have been unable to get flash to receive a variable declared in PHP. Here's my Flash code:
    var outLV = new LoadVars();
    var inLV = new LoadVars();
    function sendData() {
    outLV.hsdata = "Hello from Flash";
    outLV.sendAndLoad("http://www.mysite.com/hiscores/test23.php",inLV,"post");
    inLV.onLoad = function(success) {
    if (success) {
      //sets dynamic text box to show variable sent from php
      statusTxt.text = phpmess;
    } else {
      statusTxt.text = "No Data Received";
    This works ok and the inLV.onLoad function reports that it is receiving data but does not display the variable received from PHP. The PHP file is like this:
    <?php
    $mytxt =$_POST['hsdata'];
    $myfile = "test23.txt";
    $fh = fopen($myfile,'w');
    //adds data to file
    fwrite($fh, $mytxt);
    //closes file
    fclose ($fh);
    $mess = "hello there from php";
    echo ("&phpmess=$mess&");
    ?>
    The PHP file is correctly receiving the hsdata from flash and writing it to a text file, but there seems to be a problem with the final part of the code which is intended to send a variable called 'phpmess' back to Flash, this is the string "hello there from php". How do I set up Flash and PHP so that PHP can send a variable back to Flash using echo? Really have tried everything but am totally baffled. Online tutorials have given numerous different syntax configurations for how the PHP file should be written which has really confused me - any help would be greatly appreciated.

Maybe you are looking for

  • Shopping Cart not updated in bbp_pd.

    Hi Folks, We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart. Whenever we create a shopping cart using the portal interface, the shopping cart number is generated and we

  • OpenLdap Cisco ISE 1.2

    Is OpenLdap supported by Cisco ISE 1.2? When I try "Test bind to server" I get results so the connection seems fine. However when I set up the policies for a basic wlan with wpa2 authentication it says "Invalid password". When I put my username in th

  • Including js files in a jsp?

    I'm sure this is a pretty stupid question, but it's one I've been having trouble with anyway. The big picture problem is trying to include jquery into my website. I've downloaded it and added it to a folder (/scripts/jquery-1.3.2.js) What I've tried

  • Wordpress/CMS help...

    I'm trying to create a Content Management System for my latest site.. basically I have news to be updated all the time on this site, and would like to just use Wordpress as a CMS so all I need to do is post a new story, and it will become to the top

  • Late 2013 macbook pro retina battery question

    I just bought the new macbook pro retina 2013 (first macbook!) I wanted to know what I can do to extend the life of the battery. Right know, I start charging the battery once it gets to about 60%. I keep the charger plugged in when im at home and lef