General ldtp functions. Based on your requirement, you can use any of these functions
appundertest - Application under test
bindtext - Bind text to the current application and current locale
generatekeyevent - Generate keyboard event on currently focused window
generatemouseevent - Generate mouse event based on x, y coordinates
getallstates - Get list of available states of an object
hasstate - Checks whether the object has a state
initappmap - Initialize application map
keypress - Generate keyboard press event
keyrelease - Generate keyboard press event
launchapp - Launch application
launchapp2 - Launch application
reinitldtp - Reinitialize LDTP
releasecontext - Release the context information
remap - Force remap the window information
setcontext - Set the context information
setlocale - Set locale to given locale
stopscriptengine - Stop LDTP script engine
wait - Suspend the operation for specified duration