How to lock the PC after automatically running Quick Test Professional scripts?
Being a graphical interface record-playback automation tool, Quick Test Professional makes wonders enabling the professionals to work with any web, java or windows client application. Ranging from testing standard web pages, web objects, and ActiveX controls. Quick Test Professional (Quick Test Professional) also enables to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and .NET framework applications…
Interactive Testing tool
Quick Test Professional is a revolutionary testing tool that is powered with Mercury Interactive Functional Testing. For instance, Mercury QTP provides the industry’s best solution for functional test and regression test automation – addressing every major software application and the environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QTP’s Keyword-driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View.
The most important advantage of Automation Testing is that Scripts are run in an unattended mode. It allows the tester to prepare the batch of scripts and leave their homes. Once the batch scripts are successfully completed running, no matter even if it passes or even get failed, the PC is unlocked inviting others to view your secret project related data. Sometimes, this could pose a security issue or efficiently issue in an organization. However, it can become an extremely devastating issue in a case of a company having Finance or Banking related projects, having top most concern for the security of its data. Here are some simple tricks to lock the PC once the scripts are over.
You can use the following Quick Test Professional Script to Lock your PC :
Set obj = CreateObject("WScript.Shell")
sCmnd = "%windir%\SYSTEM32\rundll32.exe user32.dll,LockWorkStation"
obj.Run sCmnd, 0, False
The above Quick Test Professional Script will lock your PC automatically. Moreover, I will suggest you create this Script as a separate Script and call this Script lastly in your batch. This will solve the purpose.
Find a course provider to learn QTP
Java training | J2EE training | J2EE Jboss training | Apache JMeter trainingTake the next step towards your professional goals in QTP
Don't hesitate to talk with our course advisor right now
Receive a call
Contact NowMake a call
+1-732-338-7323Enroll for the next batch
QTP Online Training with Placement
- Jun 9 2025
- Online
QTP Online Training with Placement
- Jun 10 2025
- Online
QTP Online Training with Placement
- Jun 11 2025
- Online
QTP Training coures and Certification
- Jun 12 2025
- Online
QTP Training coures and Certification
- Jun 13 2025
- Online
Related blogs on QTP to learn more

Why QTP is the best functional/regression testing tool?
Quick Test Professional (QTP) is nothing but a simple and Windows based software application that is used as a testing tool to check the applications developed for web and desktops. Software testers learn QTP

Seamless testing with the help of QTP!
QTP (Quick Test Professional) is a tool for testing the functionality of software as an automated process. As soon the script is developed, software tester can seamlessly perform this automated functionality testing and generate the report.

QTP- Is It The Right Choice For You?
QTP is the acronym of Quick Test Professional. It is a product of Hewlett Packard (HP). QTP helps testers to execute an automated functional testing flawlessly without examining after the completion of script development.

How To Manage Test Data in QTP Test Scripts?
Well, QTP is the acronym of Quick Test Professional. It is an automation testing tool. In 2011, QTP was released as a product under the UFT (Unified functional Test Software). QTP is one of the popular automation tools available in the market. The be
Latest blogs on technology to explore

What Does a Cybersecurity Analyst Do? 2025
Discover the vital role of a Cybersecurity Analyst in 2025, protecting organizations from evolving cyber threats through monitoring, threat assessment, and incident response. Learn about career paths, key skills, certifications, and why now is the be

Artificial intelligence in healthcare: Medical and Diagnosis field
Artificial intelligence in healthcare: Medical and Diagnosis field

iOS 18.5 Is Here: 7 Reasons You Should Update Right Now
In this blog, we shall discuss Apple releases iOS 18.5 with new features and bug fixes

iOS 18.4.1 Update: Why Now is the Perfect Time to Master iPhone App Development
Discover how Apple’s iOS 18.4.1 update (April 2025) enhances security and stability—and why mastering iPhone app development now is key to building future-ready apps.

What is network security Monitoring? A complete guide
In the digital world, we have been using the cloud to store our confidential data to register our details; it can be forms, applications, or product purchasing platforms like e-commerce sites. Though digital platforms have various advantages, one pri

How to Handle Complex and Challenging Projects with Management Skills
Discover actionable strategies and essential management skills to effectively navigate the intricacies of challenging projects. From strategic planning to adaptive problem-solving, learn how to lead your team and achieve exceptional outcomes in compl

What are the 5 phases of project management?
A streamlined approach to ensure project success by breaking it into five essential stages: Initiation, Planning, Execution, Monitoring & Controlling, and Closing. Each phase builds on the other, guiding the team from concept to completion with clear

About Microsoft Job Openings and Certification Pathway to Explore Job Vacancies
Explore exciting Microsoft job openings across the USA in fields like software engineering, data science, cybersecurity, and more. Enhance your career with specialized certifications and land top roles at Microsoft with Sulekha's expert courses.