473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

i don't know how to write the test cases in programming languages

1 New Member
how to apply the test cases in any of the language.tell them in breif explination and explain each of the test case
Jan 3 '20 #1
2 11159
dev7060
639 Recognized Expert Contributor
For questions that demand theoretical/descriptive answers, I always suggest the OP to go through the web for articles and content. Those can indeed explain and provide the information in a more better and detailed way. Software testing is a broad topic. Companies recruit Software Testing Engineers for this job.

how to apply the test cases in any of the language.tell them in breif explination and explain each of the test case
It all depends on many factors I would say. First, on language. Say for example, Java can handle exceptions like divide by zero. But in C, there is no concept for the same. It may crash the program while running.
Secondly, it depends on how you plan to provide and check for the test cases. Here are some ways:
- Storing the test cases in a 2D array and passing each row to the method (the one having the functionality to be tested).
e.g. int arr[2][3]={{input1, input2, result1}, {input3, input4, result}};
- Storing the test cases in a file and reading from the same.
- Testing with command line arguments. (I would write a batch script to automate the whole task).
Also there are things called as Test Automation Frameworks. Like TestNG for Java.

i don't know how to write the test cases in programming languages
Test cases can be formed keeping these points in mind:
- check for valid data type values
- check for boundary/extreme/edge case values
- passing inputs of different data type (e.g. passing a character when a float value is expected)
- check for other invalid values like special characters etc.
Jan 3 '20 #2
kaseymiddle
3 New Member
I, too, find it incredibly difficult to understand how to write test cases, although I know that it is incredibly important in high-quality software or website creation.
Dec 5 '21 #3

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

Similar topics

0
by: Precious | last post by:
I have been asked to write test plan/cases for a windows based vb/sql server application. I am able to see many sample test plans/cases in the net, which gives a good startup of how to write a...
27
by: Josh | last post by:
We have a program written in VB6 (over 100,000 lines of code and 230 UI screens) that we want to get out of VB and into a better language. The program is over 10 years old and has already been...
3
by: Water Cooler v2 | last post by:
Here's my understanding as of now. If I were writing a function bool IsValidContact(Offerer objOfferer, Accepter objAccepter, TermsAndConditions objTermsAndConditions); Before writing the...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
0
by: kanch | last post by:
hai we need to get some data from a logfiles and populate into database .to check this we need to write test cases .how to write test case for this scenario
0
by: Raghunandan24 | last post by:
Hi, Does anyone know how to write cactus test cases to test this servlet. public class HelloServlet extends HttpServlet { public void doGet(HttpServletRequest request, ...
151
by: istillshine | last post by:
There are many languages around: C++, JAVA, PASCAL, and so on. I tried to learn C++ and JAVA, but ended up criticizing them. Is it because C was my first programming language? I like C...
4
by: radha gogia | last post by:
I referred this link ,but I am unable to get the logic behind using %%*c or % as format specifier . http://stackoverflow.com/questions/14494309/reading-multiple-lines-of-input-with-scanf And...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.