Navigation

    SOFTWARE-TESTING.COM

    • Register
    • Login
    • Search
    • Jobs
    • Tools
    • Companies
    • Conferences
    • Courses
    1. Home
    2. Demir
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Demir

    @Demir

    3
    Reputation
    30043
    Posts
    9
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    Demir Follow

    Best posts made by Demir

    • RE: Correct way to check server response data (pytest)

      I usually make the expected and actual tuples, and I compare them.

      expected = ('john doe', '1111', 'something', True)
      actual = (
           response ["user"],
           response ["objects"] [0] ["id"],
           response ["objects"] [0] ["event"] [0] ["type"],
           response ["reached"]
      )
      assert expected == actual
      

      Run pytest with the -v switch, then it will clearly show which elements in the tuples are not equal.

      posted in API Testing
      Demir
      Demir
    • RE: Wait until a page with JQuery is loaded in Selenium WebDriver

      You can use ExecuteScript and javascript to handle JQuery:

      var driverWait = new WebDriverWait(Driver, TimeSpan.FromSeconds(5));
      driverWait.Until(d => (long)js.ExecuteScript("return jQuery.active") == 0);
      
      posted in Automated Testing
      Demir
      Demir

    Latest posts made by Demir

    • RE: Deploy A War/Ear To Container Marked build As failure When Deploying To Tomcat 9 Server

      You need to add the "manager-script" role in the roles section. I figured this out by googling:

      the username you used is not allowed to use the text based tomcat manager

      and the first result was this StackOverflow https://stackoverflow.com/questions/41675813/the-username-you-provided-is-not-allowed-to-use-the-text-based-tomcat-manager-e .

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • RE: Running this groovy jenkins script output this error "WorkflowScript: 17: expecting '}', found ':' @ line 17, column 11"

      According to the https://groovy-lang.org/syntax.html#_maps , when defining a map literal, the keys should not be surrounded by double quotes. I.e.:

      def payload = {
        data: {
          attributes: {
            some_key: "some_value"
          }
        }
      }
      
      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • How can I access additional services in my container?

      A decision was made by my company to containerise the entirety of a solution with multiple services into a single monolithic container (best practices aside please as I am well aware this goes against the microservice approach of 1 container = 1 service). In essence the following ports should in theory be listening for traffic:

      • Port 3000 (static React frontend)
      • Port 8081 (backend services)
      • Port 8545 (additional service) [can deal with this later as I feel illumination of the problem with the Port 8081 service will lead to a similar resolution for this one]

      When I host this container on an Azure Web App for Containers instance the frontend service comes up on it's own, no problem, (route is /). However, the backend service is mapped to /services/* (actually :8081/services/* as above) and contains a config file the frontend needs to be truly "functional". However, this appears to be inaccessible as the web app attempts to proxy to localhost:8081/services/* in order to get it (as it is localhost WITHIN the container itself).

      What it is the best approach to allow the web app to call out to the additional service(s) on these different ports?

      I initially thought I could place an Azure Application Gateway in front of the web app to act as a reverse proxy and do a hostname rewrite to rewrite requests on Port 8081 to (FQDN/IP):8081, but this doesn't seem to be working correctly (no difference in error codes or visually). I also thought about placing a reverse proxy like Nginx WITHIN the container, but was interested in seeing if I could do it outside first to stop increasing the size of this already large image or if this would even be an option.

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • How to hide/mask credentials stored at terraform state file

      In terraform, when we create a resourcekey for eg ibm_resource_key, all the credentials created are stored in plain text in state file. Question is how to hide/mask the credential section/ secret sections in state file.

      Options are to store the state file itself in some safe place like S3 , vault etc, but is there a way to hide the info in state file itself?

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • RE: How to write bash or shell script in SSM run command and execute in linux ec2 instance?

      First option using aws "CloudShell" service (available only in specific region).

      Alternately, you can execute shell script using AWS Systems Manager > Run Command > Run a command, Select the type of command that you want to run & Search by keyword " AWS-RunShellScript " (Linux platform only).

      In Command Parameters, specify a shell script or a command to run.

      PS : For both Windows & Linux platform, search by keyword " AWS-RunPowerShellScript "

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • When OnPrem with Kubernetes, what is the recommended way to do file storage buckets?

      When you are running kubernetes on GKS, AKS, etc, you use your cloud provider specific storage bucket such as Amazon S3, google cloud storage, azure blob storage, to store your raw binary content in a super fast, easy to use manner.

      But when you are deploying Kubernetes behind the firewall, you do not have a storage bucket SDK from your cloud provider.

      What is the alternative to this when you are using, for example, OpenShift? Do we have to just use persistent volumes?

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • RE: Docker cloud hosting with persistent storage

      I'm not aware of any cloud providers which do this as you describe. I'd wager that it's due to the simplicity of a user setting it up on their own, compared to the headache of them taking that task on themselves and lack of demand for non-kubernetes docker management.

      Docker setup is super simple and broadly documented, so I'd still recommend a VM of your choice from a reputable host. Once logged into the VM, you can have docker up and running in less than 1 minute.

      posted in Continuous Integration and Delivery (CI
      Demir
      Demir
    • RE: How do you not just drop the rock?

      The control scheme overlay that activates when interacting with a cairns challenge (see below) fails to indicate that you can raise and lower a stone simply by respectively pushing up and pulling down on the left analogue stick (without holding the square button) - if I remember correctly.

      enter image description here

      posted in Game Testing
      Demir
      Demir
    • RE: Can I open a specific version's mod?

      Yes, this is possible.

      You need a third-party launcher that can handle multiple instances of Minecraft seperately. One example is the open source project https://github.com/PrismLauncher/PrismLauncher which I will use for explaining.

      How it works is that each created instance has its own .minecraft folder, you log in with your Microsoft account like the Vanilla launcher and it fetches the required files automatically. The prism launcher menu, showing two instances of Minecraft.

      Once an instance is created, for which in your case you would need to create a 1.19 instance and a 1.12 instance, you can explore the instance files using the folders dropdown.

      A dropdown menu with two options, View Instance Folder and View Central Mods Folder.

      You can then freely explore both instances seperately, change settings seperately and install mods seperately in their respective mods folders. Windows File Explorer with two seperately named folders of Minecraft instances.

      As you can see, my Fabric 1.19.2 instance has its own .minecraft folder. An instance with the .minecraft folder visible

      Any launcher that offers multiple instancing will work, but always use caution when downloading files from the Internet. Third-Party launchers are not endorsed by Mojang.

      posted in Game Testing
      Demir
      Demir
    • How does saving work in Crash Bandicoot?

      I'm currently playing the original Crash Bandicoot on the PS1. It turns out I only had the second and third one when I was a kid and not the original. I have found out that you are only allowed to save the game when you complete a bonus round. So it appears to me that, if I play through the game casually then I will save on most levels because they seem to normally have bonus rounds. However, when I return to a level the bonus round tokens do not reappear, so I wouldn't for example be able to just keep playing the bonus round on Jungle Rollers when I want to save.

      Then it looks like if I want to return to a level and try and get the gem by smashing all the boxes, then I won't be able to save the game afterwards unless I beat the bonus round of a level I've not yet completed. Is this true? Maybe there is some other way of saving the game that comes later on that I'm not yet aware of?

      posted in Game Testing
      Demir
      Demir