White box testing strategy deals with the internal logic
and, structure of the code. White box testing is also called
as glass, structural, open box or clears box testing. In white
box testing strategy the tests written is based on coverage of
the code written, branches, paths, statements and internal,
logic of the code etc.
In case of implementation a white box testing, the tester
has to, deal with the written code and hence is needed to
possess knowledge of coding and their logic i.e. internal
working of the code. In White box testing tester also needs
to look into the code and find out which unit, statement,
chunk of the code is malfunctioning. There are six basic
types of testing like unit testing, integration testing,
function/system testing, acceptance testing, regression
testing and beta testing. White-box testing is used three out
of these six types:
• Unit testing, which is testing of individual hardware or
software units or groups of related units.
• Integration testing, which is testing in which
software
components, hardware components, or both
are
combined and tested to evaluate the interaction between
them.
• Regression testing, which is selective retesting of
a
system or component to verify that modifications
have
not caused unintended effects and that the
system or
component still complies with its specified requirements.
Advantages of White box testing are:
• As the knowledge of internal coding
structure is
prerequisite, it becomes very easy to find out which type
of input/data can help in testing the
application
effectively.
• The other advantage of white box testing is that it helps
in optimizing the code.
• It helps in removing the extra lines of code, which
can
bring in hidden defects.
Disadvantages of white box testing are:
• As knowledge of code and internal structure
is a
prerequisite , a skilled tester is needed to carry out
this
type of testing, which increases the cost.
• It is approximately impossible to look-up every bit
of
code, to find out the hidden errors, which may be creates
a problem, resulting in failure of the application.
กลยุทธ์การทดสอบกล่องสีขาวเกี่ยวข้องกับ
ตรรกะภายในและโครงสร้างของรหัส การทดสอบกล่องสีขาวจะเรียกว่า
เป็นแก้ว , โครงสร้าง , กล่องเปิดทดสอบหรือล้างกล่อง ในกลยุทธ์การทดสอบกล่องสีขาวการทดสอบเขียน
ตามความครอบคลุมของโค้ดที่เขียน , สาขา , เส้นทาง , งบ และภายใน ตรรกะของรหัส ฯลฯ
ในกรณีการปฏิบัติงานของการทดสอบกล่องสีขาว , tester
ต้องการจัดการกับเขียนรหัสและด้วยเหตุนี้จะต้องมีความรู้ในการเขียนโปรแกรมและ
คือตรรกะของพวกเขาภายในการทำงานของรหัส ในกล่องสีขาวการทดสอบยังต้องการ
เข้าไปดูโค้ดและหาหน่วย ซึ่งงบ
ก้อนรหัสทำงานผิดปกติ มีหกชนิดพื้นฐาน
ทดสอบเหมือนการทดสอบหน่วยการทดสอบการรวม , การทดสอบ , การทดสอบการยอมรับระบบ /
ฟังก์ชันการถดถอยการทดสอบและการทดสอบเบต้า การทดสอบกล่องสีขาวใช้ 3
ของเหล่านี้หกประเภท :
- หน่วยทดสอบ ซึ่งการทดสอบฮาร์ดแวร์บุคคลหรือหน่วยหรือกลุ่มของหน่วยงานที่เกี่ยวข้อง
บริการรวมซอฟต์แวร์ การทดสอบ ซึ่งการทดสอบที่
ส่วนประกอบซอฟต์แวร์ส่วนประกอบฮาร์ดแวร์หรือทั้งสองอย่าง
จะรวมและทดสอบเพื่อศึกษาปฏิสัมพันธ์ ระหว่าง
.
- ขั้นตอนการทดสอบซึ่งเป็น retesting เลือก
เป็นระบบหรือส่วนประกอบเพื่อตรวจสอบว่า มีการปรับเปลี่ยน
ไม่ก่อให้เกิดผลกระทบที่ไม่ได้ตั้งใจและ
ยังสอดคล้องกับระบบหรือส่วนประกอบของความต้องการที่ระบุ .
ข้อดีของการทดสอบกล่องสีขาว :
- เป็นความรู้ของโครงสร้างนะครับ
มีภายใน มันก็จะง่ายมาก ดูที่ประเภทของอินพุต /
ข้อมูลสามารถช่วยในการทดสอบโปรแกรม
ได้อย่างมีประสิทธิภาพ .
- ประโยชน์อื่น ๆของการทดสอบกล่องสีขาวที่ช่วยในการเพิ่มประสิทธิภาพรหัส
.
- ช่วยในการลบเส้นพิเศษของรหัส ซึ่งสามารถนำข้อบกพร่องที่ซ่อนอยู่
.
ข้อเสียของการทดสอบกล่องสีขาว :
- ความรู้ของรหัสและ
มีโครงสร้างภายในเป็น , เครื่องทดสอบทักษะจำเป็นเพื่อดำเนินการชนิดของการทดสอบนี้
ซึ่งเพิ่มต้นทุน- มันเป็นประมาณเป็นไปไม่ได้ที่จะค้นหาทุกบิตของรหัส
เพื่อหาข้อผิดพลาดที่ซ่อนอยู่ ซึ่งอาจจะสร้าง
ปัญหาส่งผลให้ความล้มเหลวของโปรแกรม
การแปล กรุณารอสักครู่..
