The invention relates to a
black box code analysis and
test case generation method and device and a storage medium, which are applied to the technical field of
software testing, and the method comprises the following steps: transparentizing an originally invisible
internal logic state by non-intrusively obtaining a variable change track and an execution path in a
black box code; therefore, testers can accurately position
intermediate logic errors, and the problem that the internal state cannot be observed in a traditional
black box test is solved. And secondly, by systematically restoring the
logic structure and the execution path of the code, the uncovered logic branches can be accurately identified, and the complementary
test case can be intelligently and reversely deduced and generated, so that the defects that the traditional black box test depends on experience and is incomplete in coverage are overcome, and the test depth and efficiency are remarkably improved. And thirdly, a
system tracking interface is adopted for monitoring,
byte codes of target codes do not need to be modified, and the possible influence of an intrusive method on the program performance and stability is avoided.