1. Scripts and Keyword are seperated tests?! Meaning if I did a change in keyword I allready converted to script, i need to reconvert? |
When you convert a keyword test to script code, there is no link preserved between the two. They are, as you noted, now two seperate tests. The purpose of keyword tests is to provide an interface to create automated tests via a visual UI for test developers that may have minimal or no experience writing code. Since you're a former QTP user, you may find working with script tests easier than keyword tests.
2. How to do a simple sync (E.g. wait for a window). I saw "exist" but without a time parameter?! |
If you're using a Keyword test, you can use the "If Object" operation (see
http://smartbear.com/support/viewarticle/14494/) to detect when an object exists. By default, the amount of time for the test is determined by the auto-wait timeout in the project properties (see
http://smartbear.com/support/viewarticle/11191/) but it can be over-ridden on a per-operation basis by right clicking on the desired operation and selecting the option from the context menu (see
http://smartbear.com/support/viewarticle/12921/)
If you're using script code, there are a variety of methods commonly designated as "WaitNNN" methods (examples are WaitChild, WaitVCLObject, WaitAliasChild, etc). This article describes the basics of waiting for an object to exist for both keyword tests and script code
http://smartbear.com/support/viewarticle/14496/. For the specific variety or object context that you are working on you'll need to make a determination of which Wait method to use.
3. When a checkpoint fails, the test stops. How can I control it? |
There are several settings that make this determination. Again, on project properties | playback there is a setting for "stop on error". Since a checkpoint failure logs an error, that fires this option and stops the test. The other setting is on the test item itself within your project test items list (see
http://smartbear.com/support/viewarticle/11001/). Judicial use of these options can control when your project stops and when it doesn't.
4. I added an ADO connection to keyword. Now... what to do with it? How to use it's methods etc? I know how to do it in scripting... |
When working with such objects in a keyword test, you'll need to set the result of the ADO.CreateConnection to a variable using the Set Variable operation and use the "Last Operation Result" as the value to which you'll set the variable.
Between you and me, I prefer to do these kinds of processes in script as it is more intuitive to someone who knows script programming code. You can call script code, then, within a keyword test.
5. Same with conditions added to Keyword. |
I'm not sure what you're asking here. Are you adding "If/then" logic to a keyword test? If so, what are you trying to do with it that is not working? Can you provide a screenshot to demonstrate what you've attempted?
Hopefully I've been able to answer most of your questions. Let me know if there is anything more I can do.