How can i execute codedui scripts by using dll
how Can I Execute Coded UI scripts by using the DLL from anywhere after creating the build
Hi yellesh,
If you mean that you want to run your test with bat file, as far as I know, we could call the MSTEST command line.
set mstestPath="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
%mstestpath%\mstest /testcontainer:AutomatedUITest.dll /resultsfile:TestOutput.trx
Reference:
https://social.msdn.microsoft.com/Forums/en-US/29af65b3-598b-4205-80e6-35b942113f3b/how-to-run-coded-ui-scripts-trhu-bat-file?forum=vsautotest
https://social.msdn.microsoft.com/Forums/en-US/42a5d8f2-fe58-4133-b09d-28fa0553ab1a/run-coded-ui-test-in-certain-moment-in-future?forum=vsautotest
Best Regards,
Jack
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.
Similar Messages
-
How can i execute vb scripts in java program
hi
how can i execute any batch files or any other exe files (vb scripts) from java programs
thanksHi,
You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
/Kaj -
How can I execute a script before connection?.
Hi ,
I want to execute a script before retrieving the data.How can I do this?.
Thanks...When you say create a command line, what exactly are you referring to? I assume you have a logical schema mapped to the ebs instance you want to run the fnd_global function in (the same one you will have reverse engineered the models from etc), just set that as the schema on the step parameters and ODI will connect through for you as a SQL session.
Technology set to Oracle ?
What does the error actually say in the operator log?
ETA : might be worth checking a few of these links as the refer to EBS with ODI : Oracle EBS and ODI
Some of the pre-shipped KM's must do something similar to what you are trying to achieve for the apps security. -
How can i execute multiple database operations using multiple objects
i have data in files which i need to read/parse and insert/update the database. can someone tell me how can i read multiple statements at a time and process using multiple objects.
This doesn't seem like too much of a JDBC question or at least the answer as I see it isn't unique or specific to JDBC.
If you want to run multiple processes within your single program then you need to use Java threads. I would recommend you read up on how to properly code Java threads and if you have questions unique to your multi-threaded JDBC implementation come back and ask those questions.
You may also want tot take advantage of a transaction manager that includes a database connection pool that will handle most of the complexity for you. Depending on the flexibility of your architecture you may not have to do any thread coding at all when using a transaction manager. -
How Can I execute a java program using java code?
{color:#000000}Hello,
i am in great trouble someone please help me. i want to execute java program through java code i have compiled the java class using Compiler API now i want to execute this Class file through java code please help me, thanks in advance
{color}Thanks Manko.
i think my question was not clear enough.. actually i want to run this class using some java code . like any IDE would do i am making a text editor for java, as my term project i have been able to complie the code usign compiler api and it genertaes the class file but now i want to run this class file "THROUGH JAVA CODE" instead of using Java command. I want to achive it programatically. do you have any idea about it.. thanks in advance -
How can I execute program after using F4_Filename function?
Hi all,
I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
This is simple program for example:
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
f_name = p_file.
write:/ f_name.
This program works correctly. There is a field for parameter. I can change the default name for a file.
After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
Now I added a function F4_Filename
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
write:/ f_name.
I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
What do I do wrong?
Could anyone suggest me a solution? How can I executed the code after using this function?
Thanks in advance.
Regards,
Arek.Hi arkadiusz,
1. simple
2.
<b>start-of-selection.</b>
f_name = p_file.
write:/ f_name.
regards,
amit m. -
How can I execute a bash script by double clicking in finder
Hello!
How can I execute a bash script using finder? Or better: How can I create an alias, which executes my bash script?
Thanks JohannAdd the suffix command in your script name. E.g. Script.command.
-
How can i execute a workflow using a bapi/wapi??
Hi All,
How can i execute a workflow using a bapi/wapi??
pls advice
thanksHi Hrus,
it's not as simple as a single BAPI to approve a workflow.
Workflow comes with a Workflow API (WAPI) that you can use to programmatically interact with the workflow system. The WAPI is implemented as a group of RFC-enabled function modules that are prefixed with "SAP_WAPI_".
Approving a workflow is simply taking a decision path for a workflow item. It is logically no different to rejecting the same workflow item or any other workflow decision.
As part of NetWeaver workflow is tightly coupled to the WAS platform you are running on so you may need to perform WAPI operations slightly differently on older releases.
Some of the WAPI calls you might need to use include: -
SAP_WAPI_GET_HEADER to get the workitem header
SAP_WAPI_READ_CONTAINER to get the workitem container
SAP_WAPI_GET_OBJECTS to get the attached objects
SAP_WAPI_DECISION_READ to get a list of possible decisions
SAP_WAPI_SET_WORKITEM_STATUS to set the workitem status
SAP_WAPI_WRITE_CONTAINER to write to the workitem container
SAP_WAPI_EXECUTE_WORKITEM to execute the workitem
I usually do what you are trying to do by adding the decision to the workflow container and then executing the workflow.
Be warned, you can really stuff things up if you get this wrong! Make sure you know what you are doing.
Quoting from Practical Workflow for SAP by Alan Rickayzen, et al from SAP Press...
Writing directly to the workflow container is dangerous because it can compromise the integrity of the process.
...be careful that you do not waste time duplicating existing ad hoc features of SAP's Workflow Engine.
For example you can use events (combined with wait steps), instead of container modifications to force the workflow to restart.
Cheers
Graham Robbo -
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
Hi
I have a stored procedure. It can be executed like this
exec test @p = 1;
exec test @p = 2
exec test @p = n;
n can be hundred.
I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time.
If I know the number in advance, say 3, I can create 3 different Execution SQL Tasks. They can be run in parallel.
However, the n is not static. It is coming from a table.
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
I think about using script task. In the script, I get the value of n, and the list of p, from the table, then running a loop with. In the loop, I create a threat and in the threat, I execute the sp like : exec test @p = p. So the exec test may
be run parallel. But I am not sure if it works.
Any idea is really appreciated.Hi nam_man,
According to your description, you want to call stored procedures in parallel, right?
In SSIS, we can create separate jobs with different stored procedures, then set the same schedule to kick the jobs off at the same time. In this way, we should be careful to monitor blocking and deadlocking depending on what the jobs are doing.
We can also put all stored procedures in SSIS Sequence container, then they will be run in parallel.
For more information about SSIS job and Sequence container, please refer to the following documents:
http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
https://msdn.microsoft.com/en-us/library/ms139855(v=sql.110).aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
How can I execute external application?
Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
Thanks
Mehmet
P.S. I have been writing this message with details may be somebody can give me a simple way for thisWell, I can suggest you following steps. May be it works for you .
-Create an external OS command in SM69
-Test OS command in SM49 ( <u><i>about OS command if you search in SDN youll get lot of material</i></u> )
-Create a Script at your OS level, Im assuming you might have some UNIX flavor or Sun solarias.
-Create a Shell script , which execute the printer job from OS .
-Shell script will have parameters . ( e.g. printer name, destination etc )
-set the path of shell script directory in SM69 ( the command you just created )
-Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
In the ABAP program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
FYI
For UNIX script, if you search in www.google.com ( UNIX forums) . youll get shell script .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
hi all,
i have one script for indd which convert a user selected table as JPG (1276 px width, height varies). Second photoshop script which ask user to select jpg file and then check if pixel height is less than 1018 pixel, then it enlarge canvas size(height) to 1018 px.
how can i combine both script, any tip or how to start would be helpful? The workflow should be:
user select the table in indd document
table export as jpg
script will ask to select table jpg file or if it can be automated too that would be good.
enlarge canvas height to 1018 px
thanks
virender
PS: i already read the Java scirpt tool guide pdf but unable to understoodHi,
I see two possible approaches here. The most logical would be to use a BridgeTalk Object that let you execute another app js code inside yoru primary app. In your case, you start your script from within InDesign and at some point the Photoshop specific script is executed thanks to the BridgeTalk Object.
Other option is to use either AppleScrip or VB to execute the codes while targeting the specific app.
Eventually, you may have your PS code in some external file and call $.evalFile when of course the file has a target instuction as Peter exposed.
Once again, I think what you need is BridgeTalk.
FWIW,
Loic
http://www.ozalto.com -
How can I execute a Procedure with OUT variable is %ROWTYPE on SQL Prompt
Hi,
I have a procedure with OUT variable is %ROWTYPE
How can I execute the following procedure on SQL prompt.
(without creating anonymous block)
CREATE OR REPLACE PROCEDURE zz_sp_EMP(VEMPNO IN EMP.EMPNO%TYPE,
V_REC IN OUT EMP%ROWTYPE)
AS
BEGIN
SELECT * INTO V_REC FROM EMP WHERE EMPNO = VEMPNO;
END;
Thanks & Regards,
Nareshas previous posters said: it's not possible to do this without declaring a variable in the anonymous block.
With anonymous block it would look like this (had to change it a bit, since i'm using hr-schema on oracle XE):
declare
l_rec EMPLOYEES%ROWTYPE;
begin
zz_sp_EMP(VEMPNO => 100, V_REC => l_rec);
DBMS_OUTPUT.PUT_LINE ( 'first_name = ' || l_rec.first_name );
DBMS_OUTPUT.PUT_LINE ( 'last_name = ' || l_rec.last_name );
end;
first_name = Steven
last_name = King -
How can I execute an .app remotely in a server via internet?
Hi,
Using PHP, or something like it, how can I execute a MAC OSX app but have it run remotely in the server?
I know this may sound like a simple question but I have almost no experience with Web apps.
Thanks,
Juan DentAll you need is a trigger that starts the execution. A simple HTML link to the file will do.
-
How can I execute a statement before a VO is running
JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
I use ADF BC
how can I execute a statement before a VO is runningthanks for the answer
i use a logon function before I run a VO
after a certain time will be disconnected
and I have to call the function again
sorry for my English
public String logon(String username, String password){
CallableStatement st = null;
this.username = username;
this.password = password;
try {
st = getDBTransaction().createCallableStatement("begin ep_security.LogOn(?,?); end;",0);
st.setObject(1, username);
st.setObject(2, password);
st.executeUpdate();
this.getDBTransaction().commit();
} catch (SQLException e) {
System.out.println("ERROR "+e.getMessage());
this.addWarning(new JboWarning("Quote retrieved successfully"));
System.out.println("...RETURN ERROR");
return "error";
} finally {
if (st != null) {
try {
// 7. Close the statement
st.close();
} catch (SQLException e) {
e.printStackTrace();
} -
How can I execute a method on a specified time?
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?
BilgeTonyukuk99 wrote:
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?As a simple example, take a look at http://www.javapractices.com/topic/TopicAction.do?Id=54.
As an alternative (and looks like better approach), you could use the ScheduledThreadPoolExecutor.
Maybe you are looking for
-
Adobe media encoder hangs using macbook pro yosemitie & CS6
i cannot crunch a premiere pro project using adobe media encoder....the media encoder starts crunching normally but hangs at random .... i get the following clue in the activity monitor....PProheadless (not responding) also unable to create ISO image
-
Opening Safari pdf documents automatically in Preview
With Lion, Safari opens pdf documents in a Safari tab by default (as it did in OS X 10.6). I want pdfs to open automatically in Preview (or Acrobat depending on what I have set as the default pdf reader) without having to Cmd-Click/Open in Preview.
-
Installing Problems with VS2003 and VS2005
I have both Versions of VS (2003 and 2005) on my PC. The automtic Installation always finds VS 2003. How can I install the ODT for VS 2005 too. Klaus
-
Bookmarks in Bookmarks Bar Disappeared Since Firefox Update
Recently updated to Firefox 2.0.0.13 and since then, an odd thing happens. My initial window is okay, but if I open a new window - or a new tab - my bookmarks don't show up in my bookmarks bar. If I look under "View" I can see that "Bookmarks Toolbar
-
Is it possible to somehow make a script that changes all texts (in a PDF) of a form to other languages? Perhaps through the standard language used on the computer or a multi select button?? I thought to put everything into subforms and hide it, appea