SlideShare ist ein Scribd-Unternehmen logo
1 von 21
AUTOMATION TESTING
WITH TESTCOMPLETE
Ionela Ursu & Adrian Apostolache
How to Create a New Project
→ Click File->New->Project->Generic Windows Application->Next
->Next->JScript->Next->Finish
Add Application on the TestedApps
→Double click on Tested Apps
→Right click on the TestedApps area. Select Add application and
choose your exe file
Create or Rename the Script File
→Right Click Add -> New Item
Open PrcView Application
//Step_1:Launch PrcView application
function test()
{
TestedApps.PrcView.Run();
}
Right click on the work area and click Run application. The exe file
should start and a report will be created with pass/failed output
The Launched Application
Show All Processes in the Process List
//Step_2:Click on "Show all processes in the Process list" checkbox from Tools-->Options
//Step_2_1:Click on the Tool button
var principalMenu=Sys.Process("PrcView").Window("PrcView", "Process Viewer",
1).MainMenu;
principalMenu.Click("Tools");
//Step_2_2:Click on the Options button
var toolButton=principalMenu.Items("Tools");
toolButton.SubMenu.Click("Options...");
//Step_2_3:Set to true the "Show all processes in the Process list" checkbox if is false
Sys.Process("PrcView").Window("PVIEW95DLG", "Application Options",
1).Window("Button", "Show all processes in the Process list", 13).wState=1;
//Step_2_4:Click on the Ok button
var okButton=Sys.Process("PrcView").Window("PVIEW95DLG", "Application Options",
1).Window("Button", "OK", 1);
okButton.Click(1,1);
Show All Processes in the Process List
Exercise
//Step_2_5:Exercise - Check the "Thread Count" checkbox from Tools--
>Select columns and check the Thread Count checkbox
Number of Processes
//Step_3:Get the number of processes
//Step_3_1: Count the number of processes and log them
var count = Sys.Process("PrcView").Window("PrcView", "Process Viewer",
1).Window("SysListView32", "", 1).wItemCount;
Log.Message(count);
//Step_3_2: Verify if the PrcView is in the list
var prcViewProcess = Sys.Process("PrcView").Window("PrcView", "Process
Viewer", 1).Window("SysListView32", "", 1).wItem("PrcView.exe", 0)
for(i=0;i<count;i++)
{
var checkProcess =Sys.Process("PrcView").Window("PrcView", "Process Viewer",
1).Window("SysListView32", "", 1).wItem(i, 0)
if(prcViewProcess==checkProcess)
Log.Message("The process PrcView was found"+ prcViewProcess);
}
Exercise
// Step_3_3:Exercise - Verify if the "TestComplete.exe" process is in the
list
Verify Description of a Process
// Step_4: Verify description of a process
// Step_4_1:Open the View->Module Usage form
principalMenu.Click("View|Module Usage");
var gridModule = Sys.Process("PrcView").Window("PVIEW95DLG", "Modules", 1).Window("SysListView32", "List1", 1);
// Step_4_2:Double click on the "7z.DLL" process
gridModule.DblClickItem("ADVAPI32.dll", 0);
// Step_4_3: Get the actual name of a company and verify if it is as the expected one
var expectedDescription="Advanced Windows 32 Base API";
var actualDescription=Sys.Process("PrcView").Window("PVIEW95DLG", "Version", 1).Window("Static", "Advanced Windows 32 Base API",
18).WndCaption;
equals(actualDescription,expectedDescription, "The value should be Advanced Windows 32 Base API, but is" +actualDescription);
// Step_4_4:Close the Version form
var closeButtonForVersion = Sys.Process("PrcView").Window("PVIEW95DLG", "Version", 1).SystemMenu
closeButtonForVersion.Click("Close");
// Step_4_5:Close the Modules form
closeButtonModules=Sys.Process("PrcView").Window("PVIEW95DLG", "Modules", 1).SystemMenu;
closeButtonModules.Click("Close");
Verify Description of a Process
Assert Function
//Assert function - for a text
function equals
(actualDescription,expectedDescription,error_message)
{
if(actualDescription!=expectedDescription)
Log.Error(error_message);
}
Exercise
// Step_4_6: Exercise - Verify Product Version for the next module
from the list
//...
Number of Applications
//Step_5: Verify the number of opened applications
//Step_5_1: Count the launched applications
principalMenu.Click("View|Applications");
var noOfOpenedApplications =Sys.Process("PrcView").Window("PVIEW95DLG", "Applications",
1).Window("SysListView32", "", 1).wItemCount
//Step_5_2: Close the Applications form
var closeButtonForApplication=Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).SystemMenu;
closeButtonForApplication.Click("Close");
//Step_5_3:Launch a new application (e.g. Calc.exe)
TestedApps.calc.Run();
//Step_5_4:Count once again the launched applications
principalMenu.Click("View|Applications");
var increaseNoOfOpenedApplications =Sys.Process("PrcView").Window("PVIEW95DLG", "Applications",
1).Window("SysListView32", "", 1).wItemCount
//Step_5_5: Verify if the number of opened application was increased after launching "Calc.exe"
compareNoOfProcesses(noOfOpenedApplications,increaseNoOfOpenedApplications,"No of processed were not
increased");
//Step_5_6: Close the Applications form
var closeButtonForApplication=Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).SystemMenu;
closeButtonForApplication.Click("Close");
Number of Applications
Assert Function
//Assert function - for processes
function
compareNoOfProcesses(noOfOpenedApplications,increaseNoOfOpen
edApplications,error_message)
{
if (noOfOpenedApplications>=increaseNoOfOpenedApplications)
Log.Error(error_message);
}
Exercise
//Step_5_7: Exercise - Launch new application and verify that the
number of processes was increased by one
//...
Save the Process List
//Step_6: Save the process list into a file using File --> Save As
//Step_6_1:Click on File --> Save As
principalMenu.Click("File|Save as...");
//Step_6_2: Enter the name of file
var nameofFile=Aliases.PrcView.Window("#32770", "Save As",
1).Window("DUIViewWndClassName", "", 1).Window("DirectUIHWND", "",
1).Window("FloatNotifySink", "", 1).Window("ComboBox", "", 1)
nameofFile.Keys("ISTC_File");
//Step_6_2:Click on the Save button
var saveButton = Sys.Process("PrcView").Window("#32770", "Save As",
1).Window("Button", "&Save", 1)
saveButton.Click(1,1);
Log.Message("The ISTC file was saved");
principalMenu["Click"]("File|Exit");
Save the Process List

Weitere ähnliche Inhalte

Was ist angesagt?

Lab Management with TFS 2010
Lab Management with TFS 2010Lab Management with TFS 2010
Lab Management with TFS 2010Ed Blankenship
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012Abhimanyu Singhal
 
Test Case Creation in Katalon Studio
Test Case Creation in Katalon StudioTest Case Creation in Katalon Studio
Test Case Creation in Katalon StudioRapidValue
 
Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Yudep Apoi
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorCoded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorOmer Karpas
 
Automation Testing with KATALON Cucumber BDD
Automation Testing with KATALON Cucumber BDDAutomation Testing with KATALON Cucumber BDD
Automation Testing with KATALON Cucumber BDDRapidValue
 
Qtp Training
Qtp TrainingQtp Training
Qtp Trainingmehramit
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSmartBear
 
Coded ui - lesson 6 - manual coding
Coded ui - lesson 6 - manual codingCoded ui - lesson 6 - manual coding
Coded ui - lesson 6 - manual codingOmer Karpas
 
Data driven testing
Data driven testingData driven testing
Data driven testingĐăng Minh
 
Advanced Coded UI Testing
Advanced Coded UI TestingAdvanced Coded UI Testing
Advanced Coded UI TestingShai Raiten
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test CompleteVartika Saxena
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorialsasidhar
 
Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)Allen Mathias
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point PresentationSVRTechnologies
 

Was ist angesagt? (20)

Lab Management with TFS 2010
Lab Management with TFS 2010Lab Management with TFS 2010
Lab Management with TFS 2010
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Unit testing with visual studio 2012
Unit testing with visual studio 2012Unit testing with visual studio 2012
Unit testing with visual studio 2012
 
Test Case Creation in Katalon Studio
Test Case Creation in Katalon StudioTest Case Creation in Katalon Studio
Test Case Creation in Katalon Studio
 
Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorCoded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculator
 
Automation Testing with KATALON Cucumber BDD
Automation Testing with KATALON Cucumber BDDAutomation Testing with KATALON Cucumber BDD
Automation Testing with KATALON Cucumber BDD
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPlugins
 
Coded ui - lesson 6 - manual coding
Coded ui - lesson 6 - manual codingCoded ui - lesson 6 - manual coding
Coded ui - lesson 6 - manual coding
 
Data driven testing
Data driven testingData driven testing
Data driven testing
 
Advanced Coded UI Testing
Advanced Coded UI TestingAdvanced Coded UI Testing
Advanced Coded UI Testing
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)Remote Test Execution using TFS 2015 (RC2 and beyond)
Remote Test Execution using TFS 2015 (RC2 and beyond)
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point Presentation
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
 
Active x
Active xActive x
Active x
 
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
Deep Dive Modern Apps Lifecycle with Visual Studio 2012: How to create cross ...
 

Andere mochten auch

Script Driven Testing using TestComplete
Script Driven Testing using TestCompleteScript Driven Testing using TestComplete
Script Driven Testing using TestCompletesrivinayak
 
Coding using jscript test complete
Coding using jscript test completeCoding using jscript test complete
Coding using jscript test completeViresh Doshi
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompletesrivinayak
 
Automation Testing
Automation TestingAutomation Testing
Automation TestingRomSoft SRL
 
TestComplete 7.50 New Features
TestComplete 7.50 New FeaturesTestComplete 7.50 New Features
TestComplete 7.50 New FeaturesVlad Kuznetsov
 
social prez - mpcc - mholterhaus
social prez - mpcc - mholterhaussocial prez - mpcc - mholterhaus
social prez - mpcc - mholterhausmholterhaus
 
Keyword Driven Testing
Keyword Driven TestingKeyword Driven Testing
Keyword Driven TestingMaveryx
 
Web Service Testing using TestComplete
Web Service Testing using TestCompleteWeb Service Testing using TestComplete
Web Service Testing using TestCompletesrivinayak
 
CppUnit using introduction
CppUnit using introductionCppUnit using introduction
CppUnit using introductionIurii Kyian
 
Automated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and ValidationAutomated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and ValidationBarbara Jones
 
Automated hardware testing using python
Automated hardware testing using pythonAutomated hardware testing using python
Automated hardware testing using pythonYuvaraja Ravi
 
Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Lars Thorup
 
Automated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAutomated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAANDTech
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkMikhail Subach
 

Andere mochten auch (16)

Script Driven Testing using TestComplete
Script Driven Testing using TestCompleteScript Driven Testing using TestComplete
Script Driven Testing using TestComplete
 
Test complete, work done so far
Test complete, work done so farTest complete, work done so far
Test complete, work done so far
 
Coding using jscript test complete
Coding using jscript test completeCoding using jscript test complete
Coding using jscript test complete
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestComplete
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
TestComplete 7.50 New Features
TestComplete 7.50 New FeaturesTestComplete 7.50 New Features
TestComplete 7.50 New Features
 
social prez - mpcc - mholterhaus
social prez - mpcc - mholterhaussocial prez - mpcc - mholterhaus
social prez - mpcc - mholterhaus
 
Keyword Driven Testing
Keyword Driven TestingKeyword Driven Testing
Keyword Driven Testing
 
Web Service Testing using TestComplete
Web Service Testing using TestCompleteWeb Service Testing using TestComplete
Web Service Testing using TestComplete
 
CppUnit using introduction
CppUnit using introductionCppUnit using introduction
CppUnit using introduction
 
Automated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and ValidationAutomated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and Validation
 
Embedded System Test Automation
Embedded System Test AutomationEmbedded System Test Automation
Embedded System Test Automation
 
Automated hardware testing using python
Automated hardware testing using pythonAutomated hardware testing using python
Automated hardware testing using python
 
Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++
 
Automated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAutomated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in Action
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 

Ähnlich wie Automation Testing with TestComplete

OpenWhisk Lab
OpenWhisk Lab OpenWhisk Lab
OpenWhisk Lab Dev_Events
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletMitchinson
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner jayc8586
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Frédéric Harper
 
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdfIGedeArieYogantaraSu
 
The Ring programming language version 1.5.4 book - Part 71 of 185
The Ring programming language version 1.5.4 book - Part 71 of 185The Ring programming language version 1.5.4 book - Part 71 of 185
The Ring programming language version 1.5.4 book - Part 71 of 185Mahmoud Samir Fayed
 
Web application to keep track of time spent on projects
Web application to keep track of time spent on projectsWeb application to keep track of time spent on projects
Web application to keep track of time spent on projectsravi yadav
 
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...ShepHertz
 
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands On
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands OnjBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands On
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands OnMauricio (Salaboy) Salatino
 
MegaScriptSample - Released x-x-15
MegaScriptSample - Released x-x-15MegaScriptSample - Released x-x-15
MegaScriptSample - Released x-x-15Bob Powers
 
Some good Intellij IDEA plugin for developer
Some good Intellij IDEA plugin for developerSome good Intellij IDEA plugin for developer
Some good Intellij IDEA plugin for developerNguyen Tuan
 
Visual Studio tool windows
Visual Studio tool windowsVisual Studio tool windows
Visual Studio tool windowsPVS-Studio
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
HoneySpider Network: a Java based system to hunt down malicious websites
HoneySpider Network: a Java based system to hunt down malicious websitesHoneySpider Network: a Java based system to hunt down malicious websites
HoneySpider Network: a Java based system to hunt down malicious websitesNLJUG
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copyDeepa Rani
 

Ähnlich wie Automation Testing with TestComplete (20)

OpenWhisk Lab
OpenWhisk Lab OpenWhisk Lab
OpenWhisk Lab
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutlet
 
Winrunner
WinrunnerWinrunner
Winrunner
 
Soa lab
Soa lab   Soa lab
Soa lab
 
Dot net guide for beginner
Dot net guide for beginner Dot net guide for beginner
Dot net guide for beginner
 
UIAutomator
UIAutomatorUIAutomator
UIAutomator
 
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
Windows 8 Pure Imagination - 2012-11-25 - Extending Your Game with Windows 8 ...
 
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 2 -Kelas C - Kelompok 3.pdf
 
The Ring programming language version 1.5.4 book - Part 71 of 185
The Ring programming language version 1.5.4 book - Part 71 of 185The Ring programming language version 1.5.4 book - Part 71 of 185
The Ring programming language version 1.5.4 book - Part 71 of 185
 
Appium
AppiumAppium
Appium
 
Web application to keep track of time spent on projects
Web application to keep track of time spent on projectsWeb application to keep track of time spent on projects
Web application to keep track of time spent on projects
 
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
Complete steps to Integrate Push Notification for Your Cocos2dx App with Push...
 
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands On
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands OnjBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands On
jBPM5 Community Training Module 4: jBPM5 APIs Overview + Hands On
 
MegaScriptSample - Released x-x-15
MegaScriptSample - Released x-x-15MegaScriptSample - Released x-x-15
MegaScriptSample - Released x-x-15
 
Some good Intellij IDEA plugin for developer
Some good Intellij IDEA plugin for developerSome good Intellij IDEA plugin for developer
Some good Intellij IDEA plugin for developer
 
Visual Studio tool windows
Visual Studio tool windowsVisual Studio tool windows
Visual Studio tool windows
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
HoneySpider Network: a Java based system to hunt down malicious websites
HoneySpider Network: a Java based system to hunt down malicious websitesHoneySpider Network: a Java based system to hunt down malicious websites
HoneySpider Network: a Java based system to hunt down malicious websites
 
Appdomains
AppdomainsAppdomains
Appdomains
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copy
 

Kürzlich hochgeladen

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...kalichargn70th171
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 

Kürzlich hochgeladen (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 

Automation Testing with TestComplete

  • 2. How to Create a New Project → Click File->New->Project->Generic Windows Application->Next ->Next->JScript->Next->Finish
  • 3. Add Application on the TestedApps →Double click on Tested Apps →Right click on the TestedApps area. Select Add application and choose your exe file
  • 4. Create or Rename the Script File →Right Click Add -> New Item
  • 5. Open PrcView Application //Step_1:Launch PrcView application function test() { TestedApps.PrcView.Run(); } Right click on the work area and click Run application. The exe file should start and a report will be created with pass/failed output
  • 7. Show All Processes in the Process List //Step_2:Click on "Show all processes in the Process list" checkbox from Tools-->Options //Step_2_1:Click on the Tool button var principalMenu=Sys.Process("PrcView").Window("PrcView", "Process Viewer", 1).MainMenu; principalMenu.Click("Tools"); //Step_2_2:Click on the Options button var toolButton=principalMenu.Items("Tools"); toolButton.SubMenu.Click("Options..."); //Step_2_3:Set to true the "Show all processes in the Process list" checkbox if is false Sys.Process("PrcView").Window("PVIEW95DLG", "Application Options", 1).Window("Button", "Show all processes in the Process list", 13).wState=1; //Step_2_4:Click on the Ok button var okButton=Sys.Process("PrcView").Window("PVIEW95DLG", "Application Options", 1).Window("Button", "OK", 1); okButton.Click(1,1);
  • 8. Show All Processes in the Process List
  • 9. Exercise //Step_2_5:Exercise - Check the "Thread Count" checkbox from Tools-- >Select columns and check the Thread Count checkbox
  • 10. Number of Processes //Step_3:Get the number of processes //Step_3_1: Count the number of processes and log them var count = Sys.Process("PrcView").Window("PrcView", "Process Viewer", 1).Window("SysListView32", "", 1).wItemCount; Log.Message(count); //Step_3_2: Verify if the PrcView is in the list var prcViewProcess = Sys.Process("PrcView").Window("PrcView", "Process Viewer", 1).Window("SysListView32", "", 1).wItem("PrcView.exe", 0) for(i=0;i<count;i++) { var checkProcess =Sys.Process("PrcView").Window("PrcView", "Process Viewer", 1).Window("SysListView32", "", 1).wItem(i, 0) if(prcViewProcess==checkProcess) Log.Message("The process PrcView was found"+ prcViewProcess); }
  • 11. Exercise // Step_3_3:Exercise - Verify if the "TestComplete.exe" process is in the list
  • 12. Verify Description of a Process // Step_4: Verify description of a process // Step_4_1:Open the View->Module Usage form principalMenu.Click("View|Module Usage"); var gridModule = Sys.Process("PrcView").Window("PVIEW95DLG", "Modules", 1).Window("SysListView32", "List1", 1); // Step_4_2:Double click on the "7z.DLL" process gridModule.DblClickItem("ADVAPI32.dll", 0); // Step_4_3: Get the actual name of a company and verify if it is as the expected one var expectedDescription="Advanced Windows 32 Base API"; var actualDescription=Sys.Process("PrcView").Window("PVIEW95DLG", "Version", 1).Window("Static", "Advanced Windows 32 Base API", 18).WndCaption; equals(actualDescription,expectedDescription, "The value should be Advanced Windows 32 Base API, but is" +actualDescription); // Step_4_4:Close the Version form var closeButtonForVersion = Sys.Process("PrcView").Window("PVIEW95DLG", "Version", 1).SystemMenu closeButtonForVersion.Click("Close"); // Step_4_5:Close the Modules form closeButtonModules=Sys.Process("PrcView").Window("PVIEW95DLG", "Modules", 1).SystemMenu; closeButtonModules.Click("Close");
  • 14. Assert Function //Assert function - for a text function equals (actualDescription,expectedDescription,error_message) { if(actualDescription!=expectedDescription) Log.Error(error_message); }
  • 15. Exercise // Step_4_6: Exercise - Verify Product Version for the next module from the list //...
  • 16. Number of Applications //Step_5: Verify the number of opened applications //Step_5_1: Count the launched applications principalMenu.Click("View|Applications"); var noOfOpenedApplications =Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).Window("SysListView32", "", 1).wItemCount //Step_5_2: Close the Applications form var closeButtonForApplication=Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).SystemMenu; closeButtonForApplication.Click("Close"); //Step_5_3:Launch a new application (e.g. Calc.exe) TestedApps.calc.Run(); //Step_5_4:Count once again the launched applications principalMenu.Click("View|Applications"); var increaseNoOfOpenedApplications =Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).Window("SysListView32", "", 1).wItemCount //Step_5_5: Verify if the number of opened application was increased after launching "Calc.exe" compareNoOfProcesses(noOfOpenedApplications,increaseNoOfOpenedApplications,"No of processed were not increased"); //Step_5_6: Close the Applications form var closeButtonForApplication=Sys.Process("PrcView").Window("PVIEW95DLG", "Applications", 1).SystemMenu; closeButtonForApplication.Click("Close");
  • 18. Assert Function //Assert function - for processes function compareNoOfProcesses(noOfOpenedApplications,increaseNoOfOpen edApplications,error_message) { if (noOfOpenedApplications>=increaseNoOfOpenedApplications) Log.Error(error_message); }
  • 19. Exercise //Step_5_7: Exercise - Launch new application and verify that the number of processes was increased by one //...
  • 20. Save the Process List //Step_6: Save the process list into a file using File --> Save As //Step_6_1:Click on File --> Save As principalMenu.Click("File|Save as..."); //Step_6_2: Enter the name of file var nameofFile=Aliases.PrcView.Window("#32770", "Save As", 1).Window("DUIViewWndClassName", "", 1).Window("DirectUIHWND", "", 1).Window("FloatNotifySink", "", 1).Window("ComboBox", "", 1) nameofFile.Keys("ISTC_File"); //Step_6_2:Click on the Save button var saveButton = Sys.Process("PrcView").Window("#32770", "Save As", 1).Window("Button", "&Save", 1) saveButton.Click(1,1); Log.Message("The ISTC file was saved"); principalMenu["Click"]("File|Exit");