Esempio n. 1
0
import module_CreateProject
import module_DeleteProject
import module_CreatePolygonInTexas
import module_CommonImagesSet
import module_PublishDrawing
import module_SaveProject
import module_ReopenSavedProject

nameOfProject = "Test Delete ZoomToFit And Save"

if(1):
    # First delete existing project if any.
    module_DeleteProject.deleteProject(nameOfProject)
    
    # Create new project.
    module_CreateProject.createProject(nameOfProject)
    
    # Create a polygon.
    module_CreatePolygonInTexas.createPolygonInTexas()
    
    # Polygon is done. Go to Forge.
    module_CommonImagesSet.clickOnMapModelSlider()
    wait(5)

module_CommonImagesSet.fitToView()

#confirm
if not exists(Pattern("twoTMsSideBySide.png").similar(0.35)):
    Debug.log("Something went wrong in Forge View")
    module_DeleteProject.deleteProject()
# Test SACLING BY UI.
Esempio n. 2
0
import os
import sys
import module_CreateProject

module_CreateProject.createProject("Test Automation Project")
Debug.log("TEST PASSED!!")