How to map silk 4j script to the test case in Silk Central - silktest

Please suggest on how to map/link silk 4j script to the manual test case written in Silk Central.
Like for 4Test script we select .t file and then the testcase under silk test classic properties in silk central for each test case.

The test type can be changed in the Tests unit from the context menu of a node. Use the action "Automate with ...". Choose the appropriate type, e.g. "Silk Test Classic Test" for .t-files or "JUnit Test" if you use silk4j.
Regards,
Hubert

If your Silk4J tests are in JUnit format, you need to change the manual test case in Silk Central to JUnit type instead of manual. Then specify the fully qualified name (including package) of your JUnit test as Test class. In the classpath you need to specify all jar files that are needed for executing the test.

Related

How to setup unit tests with DejaGnu

I'm trying to learn DejaGnu (https://www.gnu.org/software/dejagnu/) and would like to use it as a framework for unit tests for a C API. My build system is based on the Autotools.
In a subdirectory of ./testsuite, I have a number of C files, each of which includes dejagnu.h and uses its procedures to report passes and failures of some tests.
In ./testsuite, my Makefile.am has the line AUTOMAKE_OPTIONS=dejagnu, which causes make check to call DejaGnu's runtest.
What I am missing now is some glue code (probably some Expect files) that lets runtest find my C files with the unit tests, executes them and collects the result.
I'm looking for an explanation better than DejaGnu's description in its manual, an example setup or a link to some open source project that actually implements what I have in mind in its build system.
(I am not asking for alternative tools. This is a question especially about DejaGnu.)
Using the pass/fail functions defined in dejagnu.h is only valid for batch tools for unit testing. What you need is a simple xx.exp file like the below:
load_lib dejagnu.exp
host_execute $srcdir/unit-code/unittest

Trigger selenium project without human intervention

I have completed automation script of my project. Now client wants to run selenium test case using URL or API. Client is not interested in Jenkins as well since they should need access for my project.
Overall client wants to trigger selenium without human intervention.
Any other idea than above is also welcome.
Thanks in Advance!!
You can provide command line or batch file depends on TestFramework(TestNg, Nunit, MsTest).
For e.g. You can use Mstest/TestContainer:Dll_Name ......some more parameters.
For TestNg, You can use Java "Jar file path" org.testing.TestNG testconfig.xml
Here i am just giving hints to you. Correct way to do it will depend on test framework used.

How to run multiple SpecFlow scenarios using batch script?

I have visual studio 2015 professional edition and in my project there are many feature files and they contain several scenarios of specflow.
I want to run some specific scenarios(having same tag name) of different features using a batch script. So, How do i do that?
It depends which test runner you are using and which flavour Specflow generates your tests in. Basically you write a batch script to call a console tool of your test runner to run the tests. Assuming you are using NUnit you can run them with NUnits runner as described in the documentation other runners will require other stuff
I got the solution, to run specific scenarios we will use common tag name for those scenarios and use the tag in the batch file.
Ex: Features /include:
And after that we use the tag on another batch file(Ex: set arg1=%1). There you initialize the variable for the project. Set the packages for the project and debugger-location.
Then use it in the nunit console and run the .dll file
Ex: nunit-console "%DebuggerLocation%\%Namespace%.dll" %arg1%

Can we run TestNG test cases via bat file on a independent machine? (machine which does not have the Eclipse project of the test being run)

I want to create a .bat file to run my TestNG test cases. I should be able to transfer the file to any computer and execute the test cases.
Is it possible to do the above in any way. If yes how?
Thanks
See 4 - Running TestNG on TestNG's documentation page. There you will find information on how to run TestNG from the command line (the same commands can be used in a batch file).
Note that batch files are specific to Windows. If you want to be able to run this on any platform that supports Java and TestNG then I recommend that instead of a batch file you run TestNG programmatically from Java.

command line support for KIF for running tests on real device

I am using KIF to test my application. I want to start my tests from command line, I looked into the tool WaxSim, looks like it's for running the tests on a simulator. But is there a way to use KIF tests in continous Integration with the real device. It would be helpful if I can invoke the tests from command line which run in a real device.
I know it is possible to do this with apple UI automation on ios5 beta version, but let me know if there is a way to do this in ios4.
Your help will be much appreciated.
-Teja
From the KIF google group
Right now, no, there isn't. Are there any particular device-only needs you have, or is it just on general principle? We're looking in to a way of doing device tests in CI, but it's a tough nut to crack. All of the frameworks for controlling devices are private.

Resources