Unable to fetch BasicReport.htm_source.xml in Openscript Test Result folder after execution - openscript

I'm trying to create a custom HTML report out of BasicReport.htm_source.xml in the Test Result folder.
I'm not able to access the xml file during script execution. Eventhough I used the XML rendering function in the finish() node.
Is their anyway I can use the BasicReport.htm_source.xml after script execution?

finish section is still execution, in short no way to do this.
if an Oracle customer, use official channel to create ER

Related

LoadRunner Controller XML File - Basic Scheduling mode

I want to create a LoadRunner scenario using XML file that I can execute through CLIControllerApp.exe and possibly in the Jenkins Pipeline. I found the XML structure here https://admhelp.microfocus.com/lr/en/12.60-12.63/help/WebHelp/Content/Controller/scenario-run-cli.htmis. My question is how to write a scheduler with Run Mode = Basic. The documentation says the tag should have <Data> and then a <Duration> tag with a positive integer value. In my case, I would like to run the VuGen script until it is complete just once. What should I write in the <Scheduler><Data><Duration> tag?
Thanks.

Any option to change the name of the file which is on disk during runtime to execute upload functionality in Jmeter

I have a scenario where one of the test REST API returns a transaction_Id, this transaction Id I need to pass in my next request(API Request), also upload the file as well. This upload file has name format like ${transaction_Id}_1_1_bkg.raw,without correct format backend server may not be able to analyze the data.
Since I have to run a load test, these transaction Ids will generate at run time and the same I have to change the file name and upload it as well.
Did any one had face this challenge before in Jmeter to change the file name at run time and upload it, if yes, what was the solution.
Thanks,
Akshat
You could copy the file to a new one with the desired name using JSR223 PreProcessor like
org.apache.commons.io.FileUtils.copyFile(new File('template_bkg.raw'), new File(vars.get('transaction_Id') + '_1_1_bkg.raw'))
where vars stands for JMeterVariables class instance, see the JavaDoc for more information on all existing functions and Top 8 JMeter Java Classes You Should Be Using with Groovy article to learn more about JMeter API shorthands available for the JSR223 Test Elements.
Once upload is finished you can delete the file using JSR223 PostProcessor

When I should use before report and when i should use after report in oracle xml publisher?

What is the difference between using a before report and after report in xml publisher?, I don't understand when i should use the specific trigger.
It is exactly as the name describes.
The beforeReport trigger is executed before the report is called. For example you might use this to set profile context that is required to call an API or interface program.
The afterReport trigger runs after the report is executed. This is useful, again as an example, to call to bursting program to email the report after it has been created.

Fetch robot framework results from outside

I want to run robot scripts from my own GUI(web page which i'm creating)when i click run it should start robot script execution at the background so to do this i want to know is there any Plugins or APIs in robot framework and also how to fetch results of robot scripts from outside
Thanks in advance
The first result I get on google for a search for "robot framework API" provides a link to this page: https://robot-framework.readthedocs.io/en/3.0.2/.
I don't know what you mean by "fetch results of robot scripts from outside". "outside" is a vague term. When robot runs, it generates a file named output.xml (unless you give it a different name). This xml file contains the results of the test run.
Results as the test is running can be obtained by using the listener interface.

Get XML Reports in TeamCity from Google Test

I am trying to figure out how to run unit tests, using Google Test, and send the results to TeamCity.
I have run my tests, and output the results to an xml, using a command-line argument --gtest_output="xml:test_results.xml".
I am trying to get this xml to be read in TeamCity. I don't see how I can get XML Reports passed to TeamCity during build/run...
Except through XML report Processing:
I added XML Report Processing, added Google Test, then...
it asks me to specify monitoring rules, and I added the path to the xml file... I don't understand what monitoring rules are, or how to create them...
[Still, I can see nowhere in the generated xml, the fact that it intends to talk to TeamCity...]
In the log, I have:
Google Test report watcher
[13:06:03][Google Test report watcher] No reports found for paths:
[13:06:03][Google Test report watcher] C:\path\test_results.xml
[13:06:03]Publishing internal artifacts
And, of course, no report results.
Can anyone please direct me to a proper way to import the xml test results file into TeamCity ? Thank you so much !
Edit: is it possible that XML Report Processing only processes reports that were created during build ? (which Google Test doesn't do?) And is ignoring the previously generated reports, as "out of date", while simply saying that it can't find them - or are in the wrong format, or... however I should read the message above ?
I found a bug report that shows that xml reports that are not generated during the build are ignored, making a newbie like me believe that they may not be generated correctly.
Two simple solutions:
1) Create a post build script
2) Add a build step that calls the command line executable with the command-line argument. Example:
Add build step
Add build feature - XML report processing
I had similar problems getting it to work. This is how I got it working.
When you call your google test executable from the command line, prepend %teamcity.build.checkoutDir% to the name of your xml file to set the path to it like this:
--gtest_output=xml:%teamcity.build.checkoutDir%test_results.xml
Then when configuring your additional build features on the build steps page, add this line to your monitoring rules:
%teamcity.build.checkoutDir%test_results.xml
Now the paths match and are in the build directory.

Resources