After running the test in Selenium 'Extent report' generate, but would like to know how to save that extent report for future reference.
The simplest is to generate new report with each run (name like ExtentReport_10_01_2022_09_30_30_30 - ExtentReport_DATE_TIME)
With this approach you will have new report
Related
First of all let me clear you all what am trying to achieve.
I have an exe which gives me some information when I supply the required data.
I cannot make any changes to the UI of that exe.
Now here are the first parameters that I set:
Electric Parameters
After setting the parameters I give some command through text box and receive the reply in the text area.
Here's how:Input Commands
I will then read each data and write into an excel manually.
Can I automate this whole process?
If so how?
I have thought of Inter Process Communication, but not finding any start.
Also got some guidance on using QTP (a testing tool).
Any help would be very appreciated.
The question is regarding how to automate through QTP, which is a very basic level query. Can't explain each and every concept. However, would try to give some important steps.
Load the required addin...
1) Select all the addins at the start in QTP. Try Tools==> Object spy. Then you would understand which technology the exe is built on. Once this is identified, you need to select only that addin whenever you want to automate that application
2) Launch exe through QTP ==>
SystemUtil.Run (PathOfExe)
3) Read Fields==>
Window("Window").Field("Field").GetROProperty("Value") OR
Window("Window").Field("Field").Set "Command"
4) Read the output ==>
Dim Var
Var == Window("Window").Field("Field").GetROProperty("Value")
5) Write the values in excel ==>
Set objExcel = CreateObject("Excel.Application")
Hope this helps for a start. You should try solutions of different sorts. Let us know if you come across any specific code related issues.
How can I start transaction in SAP easy access using jScript with code which contains /dsd/, like /DSD/DE_ENTRY? In other cases it seems like
session.StartTransaction("VT01N");
But it won't work with /dsd/ tCodes.
Since you appear to be remote-controlling the SAP GUI client, you have to specify the transaction code as you would in the GUI: session.StartTransaction("/n/DSD/DE_ENTRY");
Here's what we'd like to do:
A build completes successfully in TFS 2012
Once complete a separate command line process runs tests via vstest.console.exe generating TRX files.
Once all tests have completed those tests/TRXs are published against the target build that just completed using mstest.exe
Once complete we are able to see those published results in Team Explorer - Builds - View Builds for the target build. Under Summary you can see 100 test runs completed for all 100 tests published against it.
At this point we want to open Excel, connect to the TFS Cube and create an Excel report showing a pass/fail pie chart for the target build.
Can someone advise what Cube data to use. We've already tried a few things without success.
Thank you.
We were able to find the target Cube data. Thank you.
Filters - ''
Columns - Outcome, Test Result Executed By
Rows - Build, Test Run ID, Test Run Title, Test Run State
Values - Result Count
I'm processing a data set and running into a problem - although I xlswrite all the relevant output variables to a big Excel file that is timestamped, I don't save the code that actually generated that result. So if I try to recreate a certain set of results, I can't do it without relying on memory (which is obviously not a good plan). I'd like to know if there's a command(s) that will help me save the m-files used to generate the output Excel file, as well as the Excel file itself, in a folder I can name and timestamp so I don't have to do this manually.
In my perfect world I would run the master code file that calls 4 or 5 other function m-files, then all those m-files would be saved along with the Excel output to a folder names results_YYYYMMDDTIME. Does this functionality exist? I can't seem to find it.
There's no such functionality built in.
You could build a dependency tree of your main function by using depfun with mfilename.
depfun(mfilename()) will return a list of all functions/m-files that are called by the currently executing m-file.
This will include all files that come as MATLAB builtins, you might want to remove those (and only record the MATLAB version in your excel sheet).
As pseudocode:
% get all files:
dependencies = depfun(mfilename());
for all dependencies:
if not a matlab-builtin:
copyfile(dependency, your_folder)
As a "long term" solution you might want to check if using a version control system like subversion, mercurial (or one of many others) would be applicable in your case.
In larger projects this is preferred way to record the version of source code used to produce a certain result.
I am using the Scriptom extension to Groovy 1.7.0 to automate some processing using Excel 2007 under Windows XP.
This always seems to leave an Excel process running despite my calling quit on the excel activeX object. (There is a passing reference to this phenomenon in the Scriptom example documentation too.)
Code looks like:
import org.codehaus.groovy.scriptom.ActiveXObject;
def xls = new ActiveXObject("Excel.Application")
xls.Visible = true
// do xls stuff
xls.Quit()
The visible excel window does disappear but an EXCEL process is left in the task manager (and more processes pile up with each run of the script).
There are no error message or exceptions.
Can anyone explain why the Excel process is left behind and is there any way to prevent it from happening?
This works:
xls.Quit()
Scriptom.releaseApartment()
The javadocs state:
In some cases, the JVM can close
before everything is cleaned up, which
can leave automation servers
(especially Excel) hanging. Call this
before your script exits to get
correct behavior from automation
servers.
Looks like you are missing
xls.release();
like it is done here.