示例#1
0
          args.csc + " directory. Check the permissions on the " +
          working_dir + " folder.")
else:
    print("Created robotframework_" + args.csc + "/Library")

# Copy the variables resource file
print("Copying the GlobalVars.robot file")
shutil.copyfile("Resources/GlobalVars.robot",
                "robotframework_" + args.csc + "/GlobalVars.robot")

# Copy the common keywords file
print("Copying the common.robot file")
ifile = open("Resources/common.robot", "r")
ofile = open("robotframework_" + args.csc + "/common.robot", "w")
ofile.write(ifile.read().replace("FILLMEIN", str(args.csc)))

# Copy the Robot-Framework installation and usage instructions.
print("Copying the RobotFramework_Install_Setup_Usage_Instructions.txt file")
shutil.copyfile(
    "Resources/RobotFramework_Install_Setup_Usage_Instructions.txt",
    "robotframework_" + args.csc +
    "/RobotFramework_Install_Setup_Usage_Instructions.txt")
# Create the local variables file
Vars.CreateLocalVars(args.csc)

# Create the test suite
StateMachine.CreateTestSuite(args.csc)

# Create the Robot-Framework SAL Python Library
Library.CreateLibrary(args.csc)