Generate two xml reports from same execution
I need to generate a summary report and detail report from the same execution.
Detail report will record all the steps marked as Record result
Summary report to record only the steps that are of type Pass/Fail, Numeric Limit Test, MultiNumeric Limit Test and String test.
So far I have been able to generate two detail report from same execution and can save each report in separate folder.
How to get the data for summary versus detail report from the running sequence?
CLD,CTD
Solved!
Go to Solution.
Attachments:
ReportFolders.JPG 115 KB
Thanks for the approach.
I have created a sequence which recursively looks through the Parameters.MainSequenceResults and if StepType is one of the Test Types then displays in summary report.
On the summary report I also wanted to get the name of the subsequcenCall if that subsequence call contained a valid TestType for summary report. For example if subsequenceCall step has a Action and String type. I wanted it to display as shown in Image1.jpg below. Currently it displays as shown in Image2.jpg.
Attached is the recursive sequence that I am using.
CLD,CTD
Attachments:
GenerateSummaryReport.seq 8 KB
Image1.jpg 35 KB
Image2.JPG 140 KB
Similar Messages
-
How can I Generate two different reports from single execution of Test cases in NI teststand
Hi,
My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
Solved!
Go to Solution.Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property.
Also, be aware that step's post-expression is not executed in case of error in the step.
Sergey Kolbunov
CLA, CTD
Attachments:
SequenceFilePostStepRuntimeError_Demo.seq 7 KB -
Generate XML report from the database and send EMail - BPEL 10g
Hello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very muchHello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very much -
How I could generate an XML file from a report in version 4.0B
Good morning,
How could I generate an XML file from a report? Please note that I am using version 4.0B
I don't have access to
Billy VitalHi,
In the Class CL_XML_DOCUMENT,
we have a method EXPORT_TO_FILE to download an XML file. -
Generate an XML file from a DOM tree
Hi,
I'm trying to generate an XML file from a DOM tree that I obtained from another XML file with the Xerces library. I used the following operation :
public static void writeXmlFile(Document doc, String filename) {
try {
Source source = new DOMSource(doc);
File file = new File(filename);
Result result = new StreamResult(file);
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
} catch (TransformerConfigurationException e) {
System.err.println(e);
System.exit(1);
} catch (TransformerException e) {
System.err.println(e);
System.exit(1);
But I have this Windows/Linux problem. When I execute this on Windows, everything is correct. But if I try on Linux (every distribution does the same thing), I obtain an XML file where everything is written on just ONE LINE : there is neither identation nor carriage return at the end of a line ... And that is pretty annoying 'cause I need to SEE what I generate ...
Thanks for your answer,
Blueberryfin.Actually I would think that no indents and no new-lines would be more correct, but maybe it's an option for parsers to do it either way if you don't specify it. If you want to specify it, look at this post from last month:
http://forum.java.sun.com/thread.jsp?forum=34&thread=383400 -
How to run an XML Report from Oracle Forms 10G
Hello Friends,
I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
Can this be achieved?
If so, Kindly advise as this is an immediate work.
Regards,
Badrul.Hi,
If I am not wrong the XML publisher is same as BI publisher ...
There is one document which explains how to integrate using web service
You want to check this
http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
or you can also try web.show_document .. -
Out put file is not genrated when calling xml reports from OAF page
Dear all
i am calling xml reports from OAF page
the out put file is not generated
i am writing this code
public int tradingrequest(String quoid, String costoder,int orgid)
try
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName =
"XXCRM"; //Application that contains the concurrent program
String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
String cpDesc =
"Trading Costsheet Report XXCRM"; // concurrent Program description
Number orgid1=new Number(orgid);
// Pass the Arguments using vector
Vector cpArgs = new Vector();
cpArgs.addElement(quoid);
cpArgs.addElement(costoder);
cpArgs.addElement(orgid1.toString());
// Calling the Concurrent Program
int requestId =
cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
System.out.println("Request ID is " + requestId);
return requestId;
} catch (RequestSubmissionException e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
in controller i am writing this code
OAMessageStyledTextBean y =
(OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
OAFormValueBean z =
(OAFormValueBean)webBean.findChildRecursive("costorder");
String quoid = y.getValue(pageContext).toString();
String costorder = z.getValue(pageContext).toString();
System.out.println("The quotation id and costing order are....." + quoid +
" " + costorder);
/*if click on run report button to run the report*/
if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
if (tsflag.equals("Y"))
int requestid = am.servicerequest(quoid, costorder, orgid);
String url =
"OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
requestid;
pageContext.setForwardURL(url, null,
OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
when i call the report from oaf page the request id is coming
when i click on view output i am getting this message
Error
The concurrent request 7335031 did not create an output file.
WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
Regards
Sreekanthjava.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
MY CO code
if("GenerateReport".equals(event))
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
// Hashtable hashtable = new Hashtable(1);
// hashtable.put("TruckBookingRefNum",trucknum);
// System.out.println("test"+trucknum);
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/HTML");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
//Generate the PDF Report.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"LFCUST",
"XXLFCARSUM_TARGET",
"English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
"US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_HTML,
null,
pdfFile);
// hashtable);
System.out.println(" TemplateHelper");
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
System.out.println(" byte"+b);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
pdfFile.flush();
pdfFile.close();
catch(Exception e)
System.out.println(" inside catch");
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(true);
Edited by: user9367919 on May 13, 2010 10:31 AM -
Emailing XML reports from EBUS
Hello.
I am trying to generate email version of the XML report from e-Business suite via concurrent program. Of course sending the report to email is extremely challenging. I tried to follow the steps in the blogs and is not reaching anywhere.
Just checking to see if any one was able to successfully email reports from concurrent programs.
Cheers,
ThomasI was able to use a pl/sql and a generic email program to send out reports generated from BI publisher.
This may look complicated but is easy if you break it out .
Requirement:- Sales order summary report need to be send to sales agents as a nightly run.
The process is simple
1) create a generic email program that will accept the directory and has the capability to read blob then attach to the email.
2) create a DIRECTORY in oracle database to point to APPLOUT
3) create a custom package that will submit the concurrent program that will create the pdf report.note make sure to add the layout before submitting the concurrent program sample
APPS.FND_REQUEST.ADD_LAYOUT('XBOL','XXCPD_OEXDRCAP','en-US','US','PDF');
4) Based on your environment the output pdf will be created in the APPLOUT location in the format SHORT_NAME_REQUESTID_1.pdf
5) call your generic email program to email this pdf.
This is only an alternative method instead of messing around with java code. What i have seen is if the pl/sql is generic this is a repeatable and transportable process.
Thank you,
Tom
WWW.CROOTPAD.COM -
Generat two signals at the same time and reading voltage
Hii
i have try to generate two signals at the same time and read voltage from another port on the board(not have to be at the same time), i have not alot of expriens in labview
and i based my code of example(http://zone.ni.com/devzone/cda/epd/p/id/5197) from yours site and try to suit to my needs
now my problem is when i generat the 2 signals(that work perfect) i canot read voltage from another port on my CB-68LP
i can not find the problem and make it over i hope there is away to figer out and fix it.
i have two cards 6229, and two CB-68LP board.
labview 8.5.
my code is look like this - http://img142.imageshack.us/my.php?image=scrennshot2no2.png
(this works perfect).
and this is my code after suit to my need - http://img183.imageshack.us/my.php?image=scrennshotfl5.png,there is error exception at the right side.
the exception-
Possible reason(s):
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: RefClk.Src
Source Device: Dev1
Source Terminal: 10MHzRefClock
Required Resources in Use by
Task Name: _unnamedTask<0>
Source Device: Dev1
Source Terminal: None
Destination Device: Dev1
Destination Terminal: RefClock
Task Name: _unnamedTask<1>
eyalsorry...
The AO tasks is very important they will be synchronize ,it is very importent the two tasks will start at the same time
and after it run at synchronize mode i will need to make reading of voltage
i gust try to make simulation of machin (i give that machin AO and reading from it voltage that all)
first of all i make the two signals(synchronize signals).
and after it i will need to reading voltage.
i can make two signals synchronize together.
i can make reading voltage
but i can't make two signals synchronize together with reading voltage
it throw to me this error message.
i am looking for away to figer this out.
thank's for any help
eyal
Attachments:
test11.vi 130 KB -
Error while generating an XML Document from XML Schema with JAXB
Hi,
I am following this OTN tutorial to generate the XML document from Java classes got from the XSD document.
http://www.oracle.com/technology/pub/notes/technote_jaxb.html
I am able to generate all the Java classes but getting error on compiling the XMLConstructor.java class which is use for generating the XML document :
I am using JDK 1.5 and
Oracle 10g XML Developer's Kit (XDK) Production for Java. xdk_nt_10_1_0_2_0_production
(though these are warnings I am not able to run it.)
Error
C:\Prototype\classes\jaxbderived\catalog>javac -Xlint XMLConstructor.java
warning: [path] bad path element "%CLASSPATH%": no such file or directory
XMLConstructor.java:42: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
journalList.add(journal);
^
XMLConstructor.java:46: warning: [unchecked] unchecked call to add(E) as a membe
r of the raw type java.util.List
articleList.add(article);
Thanks
Sanjeev ([email protected])Use JDK 1.4.
-
Is it possible in java 5 to generate a XML document from object?
Hi all ,
Is it possible in java 5 to generate a XML document from object?if yes, how do I implement this?
~Regards: /\ P:^P would look better. ;)
0 0
>
U -
hi,
i'm in need to merge two XML files from my java code please help me as soon......Rajesh42 wrote:
hi,
i'm in need to merge two XML files from my java code please help me as soon......Hello Rajesh42,
While it is wonderful that you have discovered the magically code tags, please consider if it is the right time to use them. Code tags should only go round code. Note used to make your posts "stand out", or used to quote other people. Just code.
As to your question, what have you tried, what are you stuck on?
Mike -
How can i call the xml report from oaf page
Dear all
i have oaf page in that page i need to call xml report from that oaf page
how is posible.
Regards
Sreekanthrefer this link http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
--Prasanna -
Creating an XML Report from OAF page
Hi All,
I have a requirement to create a PDF report from an OAF page. From the below code , I was able to print the XML with the values.
I know i should map this XML to RTF by creating the Data defiition through XML publisher responsibility.
My understanding :
1. Generate the XML from Conttroller
2. Load the XML to RTF and map the fields
3. Register as Data Definition and RTF
4. Output seen
MY QUESTION IS : If i load the values from the below XML to the RTF and register in the data definition , i will get the same values every time it is right . From my understanding, if the data has to change in the report, ,there should be a way which will directly send the generated xml from the controller to the RTF (Without step2)
I DEFINITELY BELIEVE, THAT I AM MISSING SOME THING HERE . PLEASE HELP ME
public void processRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processRequest(pageContext, webBean);
OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("colorVO1");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
//(XMLNode)vo.writeXML(4,"")
try {
((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS)).print(outputStream);
} catch (IOException e) {
// TODO
throw new OAException("The value of VO is " + vo,
OAException.CONFIRMATION);
System.out.println(outputStream.toString());
Generated XML :
<colorVOEx3Row>
<UserName>abc</UserName>
<UserId>33102</UserId>
<CreatedBy>27241</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>deg</UserName>
<UserId>33604</UserId>
<CreatedBy>1135</CreatedBy>
<Clr1>0</Clr1>
</colorVOEx3Row>
<colorVOEx3Row>
<UserName>****mno</UserName>
<UserId>33643</UserId>
<CreatedBy>24587</CreatedBy>
<Clr1>2</Clr1>
</colorVOEx3Row>
</colorVOEx3
Please let me know what should me my next steps to generate the report. if i load the XML above to the RTF , irresepscive of my data from teh page, i will always get the 3 rows.i..e..(abc,def,*** mno).
Hope i am clear.Hi Anand,
Thanks for your reply. I have gone through the link you provided . It gave me excellent information. But just one clarification , when we create the data definition, dont we have to add any of the files like 'XML Schema','Data Template','Preview Data','Bursting Control File'.
The reason, i am asking this question is, when i proviously worked with XML reports in 11.10.2, we used to attach a .xml file to the Data Template of the data definition ,which would populate the RTF.
Now here, if i dont attach that file in the data definition, will the XML data direclty mapped from contrlloer ?. I assume ,The only thing i need to do is to MAP the XML tags to RTF before registering ..
Please let me know if i am missing some thing
Thanks
Sunny -
Two earlywatch reports for same instance in one Solution manager
Hi
i am trying to create two solutons for early watch reports for same instance. let me explain here.
In SAP Solution Manager: Active Solutions >>> i have two solutions like this
Solution Early Watch Alert Reports
Avnet Global Solutions >>>> here i have configured the PR1, PB1 PCB instances
PR1 >>>>>here i configured the only PR1 instance.
so i have configured the same instance in two solutions.
i am not gettting the early watch report automatically after after configuring like this . but manually working fine.
when i kick of the report manually working fine.
here my question is ... do i can create two early watch reports in one solution manage for same instance or not. if yes then why i am not getting report automatically.
Thank you
VishDear Paul,
Thank you for your response
this is what i got from SAP.
Hello Vish,
You can have the same system in different solutions. With regards
to why the report is not generating automatically, please review
SDCCN on the satellite system.
I dialed into the system and found that the SDCCN for PB1 is not
downloading the sessions from Solution Manager.
I would recommend that you deactivate and then activate SDCCN.
Tcode SDCCN -> GoTo - Settings - Task Processor - Deactivate
Tcode SDCCN ->Utilities -> Activate
Then create a Refresh Session task and verify if the upcoming sessions
are getting pulled down to PB1.
If you need help with this, please let me know if it is fine with you
if I make the necessary changes to get the system working.
Thank you in advance and best regards,
Jared Singh
SAP Active Global Support - Netweaver Web Application Server
could i know your comment
Maybe you are looking for
-
Running BB DM on a Tablet PC - Portrait Orientation Restriction
Hi All - More of a 'headsup' than anything else, as i don't expect a resolution (pun not intended) to this one... Trying to run DM in portrait on a tablet PC gives the 'error' of it needing to be at least 800x600, and to change etc etc etc. (Win7) Wh
-
Acrobat 9 and Office 2010 pdfmaker ribbon
We are an adult training institution using the latest Microsoft Office Pro and Creative Suite Design Premium suites. (Currently 2010/CS5) Pdfmaker has been a key part of the PDF Basics syllabus for some time and to have to wait till the end of 2011 f
-
How do I get rid of an extra blank tab page that opens with each email
Since the last update - whenever I open an email - it opens the email - plus a new tab - it defaults to the new tab. In the new tab are the favorites icons - I have to close this in order to see the email How do I turn this tab off so just the email
-
What exactly is restored in RestoreView?
Does this phase restore both the structure of the page AND the data, or just the structure?
-
How & where to get Javadoc for CRM ISA 5.0?
Hi, SDN Fellows. I read a forum blog, knowing that to get the javadocs of CRM ISA applications, I should perform this step: when building the internet-sales-ear-file, the sources are included as zip-file within the ear-file. after unzipping the sourc