This document proposes optimizing test patterns for testing SRAM using genetic algorithms. The genetic algorithm approach generates a compact set of test vectors requiring fewer configurations while detecting all stuck-at, open, and bridging faults. It reduces redundancy and optimizes the test patterns, resulting in reduced testing time and power consumption compared to previous methods. The optimized test patterns are generated using a linear feedback shift register and genetic operations including selection, crossover and mutation. Results show the proposed method achieves fault detection with a minimum time constraint of 1.5-2 ns and low power consumption of 220-230 mW.