How to restart aut while recording? [message #1691700] |
Thu, 09 April 2015 03:54  |
Eclipse User |
|
|
|
I want to close the application which is under recording and restart again. The same script need to continue recording the application.
There is an ECL script like wait-until-eclipse-is-ready which is restarting the application automatically while recording. But after restarting, the recording is not continuing. Is there a way to do this?
|
|
|
|
|
|
Re: How to restart aut while recording? [message #1691729 is a reply to message #1691723] |
Thu, 09 April 2015 06:22   |
Eclipse User |
|
|
|
"Record a snippet" option always creates a new test case. It does not merge with already existing one. Even if I try to merge manually with the two lines you have given, the issue still exist.
How does RCPTT keep in track of which application it is now testing. When that application gets closed, how does the recorder know that the application has ended. If it starts again, how does the recorder gets back the control?
Every time when I run a project for testing a relevent aut-<Project_Name> gets created. Is it possible for the same project to have multiple aut-<project_name> ? How can I import them into different Tests?
My Scenario is this:
I have a lot of data in a nebula grid. I open and change that data. Then I close the application, start the application again and check if the data which I changed got changed or not. This is my test case. I think restarting is the only way of doing it. Is there any other way? Can context help me in saving the data and then we can start a new test case which execute consecutive to this one?
One more question:
Can I create a context of already preloaded data. In the same RCPTT project, I need to have two or more contexts. One with the preloaded data and another with empty workspace. When I import preloaded data context into my test, I need to get all the data loaded. If I import the empty context, then empty workspace need to appear. For each test, my type of context need to vary. Is this possible? How can I do this?
Thank you.
[Updated on: Thu, 09 April 2015 08:19] by Moderator
|
|
|
|
|
|
|
|
|
Re: How to restart aut while recording? [message #1693329 is a reply to message #1693305] |
Thu, 23 April 2015 05:14   |
Eclipse User |
|
|
|
Hi,
I have tried with eclipse framework, it did work and it doesn't work only for my AUT. I am attaching the files which you have asked for.
Attachment Details:
1_aut.ini - <your AUT>.ini
1_config.in - <your AUT>/configuration/config.in
1_bundles.info - <your AUT>/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
2_config.ini - <rcptt-workspace>/.metadata/.plugins/org.eclipse.pde.core/<your aut name>/config.ini
2_bundles.info - <rcptt-workspace>/.metadata/.plugins/org.eclipse.pde.core/<your aut name>/org.eclipse.equinox.simpleconfigurator/bundles.info
This code is the content of my - <rcptt-workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/<your aut name>.launch
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.rcptt.launching.ext">
<booleanAttribute key="append.args" value="true"/>
<stringAttribute key="application" value="com.company.qti.qsip.rcp.application"/>
<booleanAttribute key="askclear" value="true"/>
<stringAttribute key="aut-location" value="/prj/iceng/qsip1/workspaces/c_jrex/RCPTT/QSIP/linux"/>
<stringAttribute key="aut-target-platform" value="AUT QSIP (Target Platform)"/>
<booleanAttribute key="clearws" value="false"/>
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="com.xored.launching.common.attrArch" value="x86_64"/>
<stringAttribute key="location" value="${workspace_loc}/../aut-QSIP"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_APPEND_TO_FILE" value="true"/>
<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE" value="/prj/iceng/qsip1/workspaces/c_jrex/RCPTT/workspace_rcptt/.metadata/.plugins/org.eclipse.pde.core/QSIP/console.log"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-1.7.0-openjdk-1.7.0"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch x86_64 -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx1024m -XX:MaxPermSize=512m -Declipse.vm=qsip.bin"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/prj/iceng/qsip1/workspaces/c_jrex/RCPTT/QSIP/linux"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="com.company.qti.qsip.rcp.qsip_product"/>
<booleanAttribute key="useProduct" value="true"/>
</launchConfiguration>
Regarding AUT log, i have already attached all the important log in the previous conversations. Can you be particular which you need?
Thank you.
Attachment: 1_aut.ini
(Size: 0.27KB, Downloaded 156 times)
Attachment: 1_bundles.info
(Size: 33.89KB, Downloaded 129 times)
Attachment: 1_config.ini
(Size: 0.78KB, Downloaded 140 times)
Attachment: 2_bundles.info
(Size: 87.55KB, Downloaded 147 times)
Attachment: 2_config.ini
(Size: 1.06KB, Downloaded 133 times)
[Updated on: Thu, 23 April 2015 05:16] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.06801 seconds