Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 213979 - [Automation] [Regression] Script does not work correctly [0801]
Summary: [Automation] [Regression] Script does not work correctly [0801]
Status: CLOSED DUPLICATE of bug 213969
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.3.0 M4   Edit
Assignee: Wei Wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-28 05:59 EST by Xiaodan Wang CLA
Modified: 2008-01-02 00:24 EST (History)
1 user (show)

See Also:


Attachments
report design (12.30 KB, application/octet-stream)
2007-12-28 05:59 EST, Xiaodan Wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaodan Wang CLA 2007-12-28 05:59:35 EST
Created attachment 85908 [details]
report design

Description:
Script does not work correctly.

Build number: 
2.3.0.v20071228-1005

Steps to reproduce:
1. Preview the attached report and print out the value of p1 in the report.

Expected result:
p1=2.

Actual result:
p1=1.

Error log:
N/A
Comment 1 Wei Wang CLA 2007-12-28 20:51:50 EST
add target milestone to 2.3.0 M4
Comment 2 Wei Wang CLA 2007-12-29 01:59:04 EST
In the design, report user add a data item with expression "param[p1]" in the master page, p1 is a parameter on this report. And in OnCreate() script, user add "param[p1]++".

Engine first set value of the data item content, and then process the onCreate() script. So, engine's behavior now is correct, and will return 1.

notice that:
This testcase is modified at 07-8-9 by anonymous with unknown reason.

set INVALID first, and if there is anything wrong, let me know.

Thanks.
Comment 3 Wei Wang CLA 2007-12-29 04:02:19 EST
The script in the same master-page only be executed once.

So, the behavior of engine now is correct.

pls correct the related test case.

the bug is the same with bug#213969, set DUPLICATE.

*** This bug has been marked as a duplicate of bug 213969 ***
Comment 4 Xiaodan Wang CLA 2008-01-02 00:24:55 EST
Verified, closed.