473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Automated test of Access application

5
Hi guys,

Have you created an application that provide Automated test for Access application. What I mean from the Automated test is The Access Form will be open, all text fields will be populated, automate button click event on the form that results to opening the second Access form, etc.

Any idea how to achieve this.

Thank you, any help will be very much appreciated.
May 15 '07 #1
6 3492
Rabbit
12,516 Expert Mod 8TB
Hi guys,

Have you created an application that provide Automated test for Access application. What I mean from the Automated test is The Access Form will be open, all text fields will be populated, automate button click event on the form that results to opening the second Access form, etc.

Any idea how to achieve this.

Thank you, any help will be very much appreciated.
I suppose you can use the On Load event. And then code whatever you want to automate. As for the button click, use a different sub and call it for the automation process and the button click.
May 17 '07 #2
JConsulting
603 Expert 512MB
Hi guys,

Have you created an application that provide Automated test for Access application. What I mean from the Automated test is The Access Form will be open, all text fields will be populated, automate button click event on the form that results to opening the second Access form, etc.

Any idea how to achieve this.

Thank you, any help will be very much appreciated.
Normally this kind of aumated testing is done using a large scale software package like WinRunner or TestDirector

These packages are geared to provide threshold testing and reporting.
J
May 19 '07 #3
trimba
5
Hi Rabbit,

Thanks for your input ...

This is one of the solution, but then I need to put the code on every onLoad event in the form. And To switch between test mode and live mode is very hard thing to do (when you have sequence of form to be tested.)
May 21 '07 #4
trimba
5
Normally this kind of aumated testing is done using a large scale software package like WinRunner or TestDirector

These packages are geared to provide threshold testing and reporting.
J
Hi JConsulting,

Ok, I'll look into it ... But if it cost alot then it wont be the solution :P
May 21 '07 #5
Rabbit
12,516 Expert Mod 8TB
Hi Rabbit,

Thanks for your input ...

This is one of the solution, but then I need to put the code on every onLoad event in the form. And To switch between test mode and live mode is very hard thing to do (when you have sequence of form to be tested.)
Switching between modes isn't hard at all. Just code everything in a normal module and have a global variable to switch between test mode and live mode.
May 21 '07 #6
NeoPa
32,556 Expert Mod 16PB
PW,
Probably the best way to switch between Debug & Live mode is to have a 'Conditional Compiler' definition. This way the code is only created for the version that matches your current needs. I've included some sample code (Excel VBA but same concept for Access)
Expand|Select|Wrap|Line Numbers
  1. '#Const conDebug = True     'Only when the project is still in development mode.
  2. ...
  3.             Select Case strType
  4.             Case "Refresh"
  5.                 If strMode = "Process" Then
  6.                     Call .Calculate
  7. #If conDebug Then
  8.                     .ScreenUpdating = True
  9.                     .ScreenUpdating = False
  10. #Else
  11.                     Set shtThis = ActiveSheet
  12.                     Worksheets("Data").Visible = xlSheetVeryHidden
  13.                     .ScreenUpdating = True
  14.                     .ScreenUpdating = False
  15.                     Worksheets("Data").Visible = xlSheetVisible
  16.                     Call shtThis.Select
  17. #End If
  18.                 End If
  19.             Case "Process"
  20. ...
If the {#Const conDebug = True} line is commented out, then the {#If conDebug Then} evaluates to FALSE.
Jun 2 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
2
by: Konstantin Zakharenko | last post by:
Hello, Our QA team have running a lot of test scripts (for automated regression testing), they run them on the different databases (Oracle/MS SQL). Several of those tests are dependent on the...
5
by: FoxRunner | last post by:
Hi folks, I got a script which restores a database. It works fine if it is running in my Query Analyzer. It fails when I put this script in an automated schedule using the SQL agent. This...
9
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access...
1
by: Alvin Bruney | last post by:
I'm looking for automated testing software much like rational robot which ideally, i want to point to a website and have it manipulate the webform (clicking, entering data etc) and reporting...
0
by: Steven Thomas | last post by:
I have a vb.net application that calls a sub in MSAccess. I have loaded the office interops and everything works fine if there are no errors. If the sub in Access produces an Error then my...
5
by: Salad | last post by:
I have a textbox for storing the URL to a web page. I figured the person could simply copy the URL from IE and paste it into the text box. The client would like to have a more automated process. ...
0
by: Benny | last post by:
I have an automated application to manipulate multiple Office documents. When the process is opening the documents, some of them run into security issues, macro errors, and anything else that...
9
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.